From 2f2bfcb1098155c1968521d948abeed59e8b0da1 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Fri, 2 Feb 2018 00:02:37 -0800 Subject: [PATCH 1/3] Adding method missing to profiles --- .../individual/module_template.template | 50 +++++++++++++++---- .../templates/rollup/module_template.template | 50 +++++++++++++++---- 2 files changed, 78 insertions(+), 22 deletions(-) diff --git a/generators/profilegen/src/resources/templates/individual/module_template.template b/generators/profilegen/src/resources/templates/individual/module_template.template index aaced54f7..ef2699ed3 100644 --- a/generators/profilegen/src/resources/templates/individual/module_template.template +++ b/generators/profilegen/src/resources/templates/individual/module_template.template @@ -43,14 +43,14 @@ module Azure::<%= @module_name %>::Profiles::<%= @profile_name %> @options = options[:options].nil? ? nil:options[:options] <%- @management_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 + @client_<%= index %> = <%= key %>.new(configurable.credentials, base_url, options) + if(@client_<%= index %>.respond_to?(:subscription_id)) + @client_<%= index %>.subscription_id = configurable.subscription_id end - add_telemetry(client_<%= index %>) + add_telemetry(@client_<%= index %>) <%- 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] %> + @<%= operation_type[:operation_name_ruby] %> = @client_<%= index %>.<%= operation_type[:operation_name_ruby] %> <%- end -%> <%- end -%> @@ -63,6 +63,20 @@ module Azure::<%= @module_name %>::Profiles::<%= @profile_name %> client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + <%- (@management_clients_ops_mapper.length - 1).downto(0) do |i| -%> + <%- if i == (@management_clients_ops_mapper.length - 1) -%> + if @client_<%= i %>.respond_to?method + <%- else -%> + elsif @client_<%= i %>.respond_to?method + <%- end -%> + @client_<%= i %>.send(method, *args) + <%- end -%> + else + super + end + end + end class ModelClasses @@ -109,17 +123,17 @@ module Azure::<%= @module_name %>::Profiles::<%= @profile_name %> <%- @data_clients_ops_mapper.each_with_index do |(key, value), index| -%> <%- if(@base_url_to_be_included) -%> - client_<%= index %> = <%= key %>.new(configurable.credentials, base_url, options) + @client_<%= index %> = <%= key %>.new(configurable.credentials, base_url, options) <%- else -%> - client_<%= index %> = <%= key %>.new(configurable.credentials, options) + @client_<%= index %> = <%= key %>.new(configurable.credentials, options) <%- end -%> - if(client_<%= index %>.respond_to?(:subscription_id)) - client_<%= index %>.subscription_id = configurable.subscription_id + if(@client_<%= index %>.respond_to?(:subscription_id)) + @client_<%= index %>.subscription_id = configurable.subscription_id end - add_telemetry(client_<%= index %>) + add_telemetry(@client_<%= index %>) <%- 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] %> + @<%= operation_type[:operation_name_ruby] %> = @client_<%= index %>.<%= operation_type[:operation_name_ruby] %> <%- end -%> <%- end -%> @@ -132,6 +146,20 @@ module Azure::<%= @module_name %>::Profiles::<%= @profile_name %> client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + <%- (@data_clients_ops_mapper.length - 1).downto(0) do |i| -%> + <%- if i == (@data_clients_ops_mapper.length - 1) -%> + if @client_<%= i %>.respond_to?method + <%- else -%> + elsif @client_<%= i %>.respond_to?method + <%- end -%> + @client_<%= i %>.send(method, *args) + <%- end -%> + else + super + end + end + end class ModelClasses diff --git a/generators/profilegen/src/resources/templates/rollup/module_template.template b/generators/profilegen/src/resources/templates/rollup/module_template.template index 346a1417f..1ccc664d7 100644 --- a/generators/profilegen/src/resources/templates/rollup/module_template.template +++ b/generators/profilegen/src/resources/templates/rollup/module_template.template @@ -29,17 +29,17 @@ module Azure::Profiles::<%= @profile_name %> <%- @data_clients_ops_mapper.each_with_index do |(key, value), index| -%> <%- if(@base_url_to_be_included) -%> - client_<%= index %> = <%= key %>.new(configurable.credentials, base_url, options) + @client_<%= index %> = <%= key %>.new(configurable.credentials, base_url, options) <%- else -%> - client_<%= index %> = <%= key %>.new(configurable.credentials, options) + @client_<%= index %> = <%= key %>.new(configurable.credentials, options) <%- end -%> - if(client_<%= index %>.respond_to?(:subscription_id)) - client_<%= index %>.subscription_id = configurable.subscription_id + if(@client_<%= index %>.respond_to?(:subscription_id)) + @client_<%= index %>.subscription_id = configurable.subscription_id end - add_telemetry(client_<%= index %>) + add_telemetry(@client_<%= index %>) <%- 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] %> + @<%= operation_type[:operation_name_ruby] %> = @client_<%= index %>.<%= operation_type[:operation_name_ruby] %> <%- end -%> <%- end -%> @@ -52,6 +52,20 @@ module Azure::Profiles::<%= @profile_name %> client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + <%- (@data_clients_ops_mapper.length - 1).downto(0) do |i| -%> + <%- if i == (@data_clients_ops_mapper.length - 1) -%> + if @client_<%= i %>.respond_to?method + <%- else -%> + elsif @client_<%= i %>.respond_to?method + <%- end -%> + @client_<%= i %>.send(method, *args) + <%- end -%> + else + super + end + end + class ModelClasses <%- @data_model_types.each do |model_type| -%> def <%= model_type[:method_name] %> @@ -82,14 +96,14 @@ module Azure::Profiles::<%= @profile_name %> @configurable, @base_url, @options = configurable, base_url, options <%- @management_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 + @client_<%= index %> = <%= key %>.new(configurable.credentials, base_url, options) + if(@client_<%= index %>.respond_to?(:subscription_id)) + @client_<%= index %>.subscription_id = configurable.subscription_id end - add_telemetry(client_<%= index %>) + add_telemetry(@client_<%= index %>) <%- 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] %> + @<%= operation_type[:operation_name_ruby] %> = @client_<%= index %>.<%= operation_type[:operation_name_ruby] %> <%- end -%> <%- end -%> @@ -102,6 +116,20 @@ module Azure::Profiles::<%= @profile_name %> client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + <%- (@management_clients_ops_mapper.length - 1).downto(0) do |i| -%> + <%- if i == (@management_clients_ops_mapper.length - 1) -%> + if @client_<%= i %>.respond_to?method + <%- else -%> + elsif @client_<%= i %>.respond_to?method + <%- end -%> + @client_<%= i %>.send(method, *args) + <%- end -%> + else + super + end + end + class ModelClasses <%- @management_model_types.each do |model_type| -%> def <%= model_type[:method_name] %> From cbb338cc5026e9c68170b787d66d7d2d1b7ff6cd Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Fri, 2 Feb 2018 00:11:14 -0800 Subject: [PATCH 2/3] Remove subscription id check --- runtime/ms_rest_azure/lib/ms_rest_azure/common/configurable.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/runtime/ms_rest_azure/lib/ms_rest_azure/common/configurable.rb b/runtime/ms_rest_azure/lib/ms_rest_azure/common/configurable.rb index 0b3e9ed3f..914726f1e 100644 --- a/runtime/ms_rest_azure/lib/ms_rest_azure/common/configurable.rb +++ b/runtime/ms_rest_azure/lib/ms_rest_azure/common/configurable.rb @@ -50,8 +50,6 @@ module MsRestAzure::Common instance_variable_set(:"@#{key}", options.fetch(key, default_value)) end - fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil? - if(options[:credentials].nil?) # The user has not passed in the credentials. So, the SDK has to # build the credentials itself. From d3518ca9109afc6caf87df1e42a77356cf803adf Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Sat, 3 Feb 2018 00:09:48 -0800 Subject: [PATCH 3/3] Regen all SDKs and profiles --- .../analysisservices_profile_module.rb | 18 +- .../modules/authorization_profile_module.rb | 26 +- .../modules/automation_profile_module.rb | 74 +- .../latest/modules/batch_profile_module.rb | 26 +- .../latest/modules/billing_profile_module.rb | 22 +- .../lib/latest/modules/cdn_profile_module.rb | 30 +- .../cognitiveservices_profile_module.rb | 22 +- .../latest/modules/commerce_profile_module.rb | 20 +- .../latest/modules/compute_profile_module.rb | 68 +- .../modules/computervision_profile_module.rb | 16 +- .../modules/consumption_profile_module.rb | 20 +- .../containerinstance_profile_module.rb | 20 +- .../containerregistry_profile_module.rb | 24 +- .../containerservice_profile_module.rb | 18 +- .../contentmoderator_profile_module.rb | 30 +- .../customerinsights_profile_module.rb | 50 +- .../modules/customsearch_profile_module.rb | 18 +- .../datalakeanalytics_profile_module.rb | 26 +- .../modules/datalakestore_profile_module.rb | 22 +- .../modules/devtestlabs_profile_module.rb | 58 +- .../lib/latest/modules/dns_profile_module.rb | 20 +- .../modules/entitysearch_profile_module.rb | 18 +- .../modules/eventgrid_profile_module.rb | 16 +- .../latest/modules/eventhub_profile_module.rb | 26 +- .../lib/latest/modules/face_profile_module.rb | 24 +- .../latest/modules/features_profile_module.rb | 18 +- .../modules/graphrbac_profile_module.rb | 28 +- .../modules/imagesearch_profile_module.rb | 18 +- .../latest/modules/iothub_profile_module.rb | 22 +- .../latest/modules/keyvault_profile_module.rb | 18 +- .../latest/modules/links_profile_module.rb | 18 +- .../latest/modules/locks_profile_module.rb | 18 +- .../latest/modules/logic_profile_module.rb | 42 +- .../modules/machinelearning_profile_module.rb | 18 +- .../managedapplications_profile_module.rb | 20 +- .../managedserviceidentity_profile_module.rb | 20 +- .../marketplaceordering_profile_module.rb | 20 +- .../modules/mediaservices_profile_module.rb | 20 +- .../mobileengagement_profile_module.rb | 30 +- .../latest/modules/monitor_profile_module.rb | 64 +- .../latest/modules/network_profile_module.rb | 86 +- .../modules/newssearch_profile_module.rb | 18 +- .../notificationhubs_profile_module.rb | 24 +- .../operationalinsights_profile_module.rb | 36 +- .../latest/modules/policy_profile_module.rb | 32 +- .../modules/powerbiembedded_profile_module.rb | 20 +- .../recoveryservices_profile_module.rb | 44 +- .../recoveryservicesbackup_profile_module.rb | 98 +- ...veryservicessiterecovery_profile_module.rb | 56 +- .../latest/modules/redis_profile_module.rb | 26 +- .../latest/modules/relay_profile_module.rb | 24 +- .../modules/resources_profile_module.rb | 28 +- .../resourcesmanagement_profile_module.rb | 20 +- .../modules/scheduler_profile_module.rb | 20 +- .../latest/modules/search_profile_module.rb | 22 +- .../servermanagement_profile_module.rb | 24 +- .../modules/servicebus_profile_module.rb | 36 +- .../modules/servicefabric_profile_module.rb | 22 +- .../modules/spellcheck_profile_module.rb | 16 +- .../lib/latest/modules/sql_profile_module.rb | 128 +- .../latest/modules/storage_profile_module.rb | 24 +- .../storsimple8000series_profile_module.rb | 48 +- .../modules/streamanalytics_profile_module.rb | 30 +- .../modules/subscriptions_profile_module.rb | 20 +- .../modules/textanalytics_profile_module.rb | 16 +- .../modules/trafficmanager_profile_module.rb | 36 +- .../modules/videosearch_profile_module.rb | 18 +- .../lib/latest/modules/web_profile_module.rb | 76 +- .../modules/websearch_profile_module.rb | 18 +- .../modules/compute_profile_module.rb | 34 +- .../modules/features_profile_module.rb | 18 +- .../modules/links_profile_module.rb | 18 +- .../modules/locks_profile_module.rb | 18 +- .../modules/network_profile_module.rb | 52 +- .../modules/policy_profile_module.rb | 20 +- .../modules/resources_profile_module.rb | 28 +- .../modules/storage_profile_module.rb | 20 +- .../modules/subscriptions_profile_module.rb | 20 +- .../computer_vision_client.rb | 176 +- .../modules/computervision_profile_module.rb | 16 +- .../image_moderation.rb | 132 +- .../list_management_image.rb | 66 +- .../list_management_image_lists.rb | 66 +- .../list_management_term.rb | 44 +- .../list_management_term_lists.rb | 66 +- .../reviews.rb | 139 +- .../text_moderation.rb | 22 +- .../contentmoderator_profile_module.rb | 30 +- .../custom_instance.rb | 11 +- .../modules/customsearch_profile_module.rb | 18 +- .../entities_operations.rb | 11 +- .../modules/entitysearch_profile_module.rb | 18 +- .../azure_cognitiveservices_face/face.rb | 77 +- .../azure_cognitiveservices_face/face_list.rb | 88 +- .../azure_cognitiveservices_face/person.rb | 110 +- .../person_group.rb | 77 +- .../latest/modules/face_profile_module.rb | 24 +- .../images_operations.rb | 33 +- .../modules/imagesearch_profile_module.rb | 18 +- .../news_operations.rb | 33 +- .../modules/newssearch_profile_module.rb | 18 +- .../spell_check_client.rb | 20 +- .../modules/spellcheck_profile_module.rb | 16 +- .../modules/textanalytics_profile_module.rb | 16 +- .../text_analytics_client.rb | 33 +- .../videos_operations.rb | 33 +- .../modules/videosearch_profile_module.rb | 18 +- .../azure_cognitiveservices_websearch/web.rb | 11 +- .../modules/websearch_profile_module.rb | 18 +- .../azure_event_grid/event_grid_client.rb | 11 +- .../modules/eventgrid_profile_module.rb | 16 +- .../azure_graph_rbac/applications.rb | 116 +- .../1.6/generated/azure_graph_rbac/domains.rb | 22 +- .../1.6/generated/azure_graph_rbac/groups.rb | 133 +- .../1.6/generated/azure_graph_rbac/objects.rb | 39 +- .../azure_graph_rbac/service_principals.rb | 105 +- .../1.6/generated/azure_graph_rbac/users.rb | 83 +- .../modules/graphrbac_profile_module.rb | 28 +- data/azure_graph_rbac/spec/1.6/graph_spec.rb | 4 +- .../azure_mgmt_analysis_services/servers.rb | 150 +- .../azure_mgmt_analysis_services/servers.rb | 172 +- .../analysisservices_profile_module.rb | 18 +- .../classic_administrators.rb | 28 +- .../azure_mgmt_authorization/permissions.rb | 56 +- ...provider_operations_metadata_operations.rb | 39 +- .../role_assignments.rb | 178 +- .../role_definitions.rb | 72 +- .../modules/authorization_profile_module.rb | 26 +- .../activity_operations.rb | 39 +- .../agent_registration_information.rb | 22 +- .../automation_account_operations.rb | 100 +- .../certificate_operations.rb | 72 +- .../connection_operations.rb | 72 +- .../connection_type_operations.rb | 61 +- .../credential_operations.rb | 72 +- .../dsc_compilation_job_operations.rb | 61 +- .../dsc_configuration_operations.rb | 72 +- .../dsc_node_configuration_operations.rb | 61 +- .../dsc_node_operations.rb | 61 +- .../generated/azure_mgmt_automation/fields.rb | 11 +- .../hybrid_runbook_worker_group_operations.rb | 61 +- .../azure_mgmt_automation/job_operations.rb | 105 +- .../job_schedule_operations.rb | 61 +- .../job_stream_operations.rb | 39 +- .../module_model_operations.rb | 72 +- .../azure_mgmt_automation/node_reports.rb | 50 +- .../object_data_types.rb | 22 +- .../azure_mgmt_automation/operations.rb | 11 +- .../runbook_draft_operations.rb | 71 +- .../runbook_operations.rb | 83 +- .../schedule_operations.rb | 72 +- .../statistics_operations.rb | 11 +- .../azure_mgmt_automation/test_job_streams.rb | 39 +- .../azure_mgmt_automation/test_jobs.rb | 55 +- .../generated/azure_mgmt_automation/usages.rb | 11 +- .../variable_operations.rb | 72 +- .../webhook_operations.rb | 83 +- .../modules/automation_profile_module.rb | 74 +- .../application_operations.rb | 72 +- .../application_package_operations.rb | 44 +- .../batch_account_operations.rb | 149 +- .../generated/azure_mgmt_batch/location.rb | 11 +- .../application_operations.rb | 72 +- .../application_package_operations.rb | 44 +- .../batch_account_operations.rb | 149 +- .../generated/azure_mgmt_batch/location.rb | 22 +- .../generated/azure_mgmt_batch/operations.rb | 28 +- .../latest/modules/batch_profile_module.rb | 26 +- .../azure_mgmt_billing/billing_periods.rb | 39 +- .../generated/azure_mgmt_billing/invoices.rb | 50 +- .../azure_mgmt_billing/operations.rb | 28 +- .../latest/modules/billing_profile_module.rb | 22 +- .../azure_mgmt_cdn/custom_domains.rb | 71 +- .../generated/azure_mgmt_cdn/endpoints.rb | 166 +- .../azure_mgmt_cdn/name_availability.rb | 11 +- .../generated/azure_mgmt_cdn/operations.rb | 11 +- .../generated/azure_mgmt_cdn/origins.rb | 79 +- .../generated/azure_mgmt_cdn/profiles.rb | 101 +- .../azure_mgmt_cdn/cdn_management_client.rb | 77 +- .../azure_mgmt_cdn/custom_domains.rb | 99 +- .../generated/azure_mgmt_cdn/edge_nodes.rb | 28 +- .../generated/azure_mgmt_cdn/endpoints.rb | 211 +- .../generated/azure_mgmt_cdn/origins.rb | 58 +- .../generated/azure_mgmt_cdn/profiles.rb | 174 +- .../azure_mgmt_cdn/cdn_management_client.rb | 22 +- .../azure_mgmt_cdn/custom_domains.rb | 99 +- .../generated/azure_mgmt_cdn/edge_nodes.rb | 28 +- .../generated/azure_mgmt_cdn/endpoints.rb | 211 +- .../generated/azure_mgmt_cdn/operations.rb | 28 +- .../generated/azure_mgmt_cdn/origins.rb | 58 +- .../generated/azure_mgmt_cdn/profiles.rb | 174 +- .../resource_usage_operations.rb | 28 +- .../latest/modules/cdn_profile_module.rb | 30 +- .../azure_mgmt_cognitive_services/accounts.rb | 133 +- .../check_sku_availability.rb | 11 +- .../operations.rb | 28 +- .../cognitiveservices_profile_module.rb | 22 +- .../azure_mgmt_commerce/rate_card.rb | 11 +- .../azure_mgmt_commerce/usage_aggregates.rb | 28 +- .../latest/modules/commerce_profile_module.rb | 20 +- .../azure_mgmt_compute/availability_sets.rb | 55 +- .../azure_mgmt_compute/usage_operations.rb | 28 +- .../virtual_machine_extension_images.rb | 33 +- .../virtual_machine_extensions.rb | 49 +- .../virtual_machine_images.rb | 55 +- .../virtual_machine_scale_set_vms.rb | 164 +- .../virtual_machine_scale_sets.rb | 277 +- .../virtual_machine_sizes.rb | 11 +- .../azure_mgmt_compute/virtual_machines.rb | 241 +- .../azure_mgmt_compute/availability_sets.rb | 55 +- .../azure_mgmt_compute/usage_operations.rb | 28 +- .../virtual_machine_extension_images.rb | 33 +- .../virtual_machine_extensions.rb | 49 +- .../virtual_machine_images.rb | 55 +- .../virtual_machine_scale_set_vms.rb | 164 +- .../virtual_machine_scale_sets.rb | 277 +- .../virtual_machine_sizes.rb | 11 +- .../azure_mgmt_compute/virtual_machines.rb | 241 +- .../azure_mgmt_compute/availability_sets.rb | 55 +- .../generated/azure_mgmt_compute/disks.rb | 162 +- .../generated/azure_mgmt_compute/images.rb | 105 +- .../generated/azure_mgmt_compute/snapshots.rb | 162 +- .../azure_mgmt_compute/usage_operations.rb | 28 +- .../virtual_machine_extension_images.rb | 33 +- .../virtual_machine_extensions.rb | 49 +- .../virtual_machine_images.rb | 55 +- .../virtual_machine_scale_set_vms.rb | 183 +- .../virtual_machine_scale_sets.rb | 296 +- .../virtual_machine_sizes.rb | 11 +- .../azure_mgmt_compute/virtual_machines.rb | 260 +- .../azure_mgmt_compute/availability_sets.rb | 55 +- .../generated/azure_mgmt_compute/disks.rb | 162 +- .../generated/azure_mgmt_compute/images.rb | 105 +- .../azure_mgmt_compute/resource_skus.rb | 28 +- .../generated/azure_mgmt_compute/snapshots.rb | 162 +- .../azure_mgmt_compute/usage_operations.rb | 28 +- .../virtual_machine_extension_images.rb | 33 +- .../virtual_machine_extensions.rb | 49 +- .../virtual_machine_images.rb | 55 +- .../virtual_machine_run_commands.rb | 39 +- .../virtual_machine_scale_set_extensions.rb | 77 +- ...tual_machine_scale_set_rolling_upgrades.rb | 49 +- .../virtual_machine_scale_set_vms.rb | 183 +- .../virtual_machine_scale_sets.rb | 315 +- .../virtual_machine_sizes.rb | 11 +- .../azure_mgmt_compute/virtual_machines.rb | 309 +- .../azure_mgmt_compute/resource_skus.rb | 28 +- .../azure_mgmt_compute/availability_sets.rb | 55 +- .../generated/azure_mgmt_compute/images.rb | 105 +- .../azure_mgmt_compute/usage_operations.rb | 28 +- .../virtual_machine_extension_images.rb | 33 +- .../virtual_machine_extensions.rb | 49 +- .../virtual_machine_images.rb | 55 +- .../virtual_machine_scale_set_extensions.rb | 77 +- ...tual_machine_scale_set_rolling_upgrades.rb | 49 +- .../virtual_machine_scale_set_vms.rb | 183 +- .../virtual_machine_scale_sets.rb | 315 +- .../virtual_machine_sizes.rb | 11 +- .../azure_mgmt_compute/virtual_machines.rb | 290 +- .../latest/modules/compute_profile_module.rb | 68 +- .../modules/compute_profile_module.rb | 34 +- .../virtual_machine_extension_images_spec.rb | 2 +- .../spec/2017-03-30/virtual_machines_spec.rb | 6 +- .../azure_mgmt_consumption/operations.rb | 28 +- .../azure_mgmt_consumption/usage_details.rb | 28 +- .../azure_mgmt_consumption/operations.rb | 28 +- .../azure_mgmt_consumption/usage_details.rb | 28 +- .../modules/consumption_profile_module.rb | 20 +- .../container_groups.rb | 89 +- .../container_logs.rb | 11 +- .../containerinstance_profile_module.rb | 20 +- .../registries.rb | 133 +- .../operations.rb | 28 +- .../registries.rb | 141 +- .../operations.rb | 28 +- .../registries.rb | 168 +- .../replications.rb | 96 +- .../azure_mgmt_container_registry/webhooks.rb | 146 +- .../operations.rb | 28 +- .../registries.rb | 168 +- .../replications.rb | 96 +- .../azure_mgmt_container_registry/webhooks.rb | 146 +- .../containerregistry_profile_module.rb | 24 +- .../container_services.rb | 71 +- .../container_services.rb | 105 +- .../container_services.rb | 105 +- .../containerservice_profile_module.rb | 18 +- .../authorization_policies.rb | 72 +- .../connector_mappings.rb | 61 +- .../connectors.rb | 77 +- .../azure_mgmt_customer_insights/hubs.rb | 108 +- .../azure_mgmt_customer_insights/images.rb | 22 +- .../interactions.rb | 69 +- .../azure_mgmt_customer_insights/kpi.rb | 88 +- .../azure_mgmt_customer_insights/links.rb | 69 +- .../operations.rb | 28 +- .../predictions.rb | 110 +- .../azure_mgmt_customer_insights/profiles.rb | 88 +- .../relationship_links.rb | 77 +- .../relationships.rb | 77 +- .../role_assignments.rb | 69 +- .../azure_mgmt_customer_insights/roles.rb | 28 +- .../azure_mgmt_customer_insights/views.rb | 61 +- .../widget_types.rb | 39 +- .../customerinsights_profile_module.rb | 50 +- .../azure_mgmt_datalake_analytics/account.rb | 324 +- .../azure_mgmt_datalake_analytics/account.rb | 124 +- .../compute_policies.rb | 72 +- .../data_lake_store_accounts.rb | 61 +- .../firewall_rules.rb | 72 +- .../storage_accounts.rb | 139 +- .../datalakeanalytics_profile_module.rb | 26 +- .../spec/2016-11-01/account_spec.rb | 2 +- .../azure_mgmt_datalake_store/account.rb | 196 +- .../azure_mgmt_datalake_store/account.rb | 135 +- .../firewall_rules.rb | 72 +- .../trusted_id_providers.rb | 72 +- .../modules/datalakestore_profile_module.rb | 22 +- .../azure_mgmt_devtestlabs/arm_templates.rb | 39 +- .../artifact_sources.rb | 72 +- .../azure_mgmt_devtestlabs/artifacts.rb | 50 +- .../generated/azure_mgmt_devtestlabs/costs.rb | 22 +- .../azure_mgmt_devtestlabs/custom_images.rb | 77 +- .../generated/azure_mgmt_devtestlabs/disks.rb | 115 +- .../azure_mgmt_devtestlabs/environments.rb | 77 +- .../azure_mgmt_devtestlabs/formulas.rb | 69 +- .../azure_mgmt_devtestlabs/gallery_images.rb | 28 +- .../global_schedules.rb | 138 +- .../generated/azure_mgmt_devtestlabs/labs.rb | 212 +- .../notification_channels.rb | 83 +- .../azure_mgmt_devtestlabs/policies.rb | 72 +- .../azure_mgmt_devtestlabs/policy_sets.rb | 11 +- .../azure_mgmt_devtestlabs/schedules.rb | 119 +- .../azure_mgmt_devtestlabs/secrets.rb | 61 +- .../azure_mgmt_devtestlabs/service_runners.rb | 61 +- .../generated/azure_mgmt_devtestlabs/users.rb | 80 +- .../virtual_machine_schedules.rb | 91 +- .../virtual_machines.rb | 213 +- .../virtual_networks.rb | 88 +- .../modules/devtestlabs_profile_module.rb | 58 +- .../generated/azure_mgmt_dns/record_sets.rb | 100 +- .../generated/azure_mgmt_dns/zones.rb | 97 +- .../latest/modules/dns_profile_module.rb | 20 +- .../event_subscriptions.rb | 178 +- .../azure_mgmt_event_grid/operations.rb | 11 +- .../azure_mgmt_event_grid/topic_types.rb | 33 +- .../generated/azure_mgmt_event_grid/topics.rb | 104 +- .../event_subscriptions.rb | 178 +- .../azure_mgmt_event_grid/operations.rb | 11 +- .../azure_mgmt_event_grid/topic_types.rb | 33 +- .../generated/azure_mgmt_event_grid/topics.rb | 123 +- .../event_subscriptions.rb | 178 +- .../azure_mgmt_event_grid/operations.rb | 11 +- .../azure_mgmt_event_grid/topic_types.rb | 33 +- .../generated/azure_mgmt_event_grid/topics.rb | 123 +- .../modules/eventgrid_profile_module.rb | 24 +- .../azure_mgmt_event_hub/consumer_groups.rb | 61 +- .../azure_mgmt_event_hub/event_hubs.rb | 144 +- .../azure_mgmt_event_hub/namespaces.rb | 210 +- .../azure_mgmt_event_hub/operations.rb | 28 +- .../azure_mgmt_event_hub/consumer_groups.rb | 61 +- .../disaster_recovery_configs.rb | 83 +- .../azure_mgmt_event_hub/event_hubs.rb | 144 +- .../azure_mgmt_event_hub/namespaces.rb | 210 +- .../azure_mgmt_event_hub/operations.rb | 28 +- .../latest/modules/eventhub_profile_module.rb | 26 +- .../generated/azure_mgmt_features/features.rb | 78 +- .../latest/modules/features_profile_module.rb | 18 +- .../modules/features_profile_module.rb | 18 +- .../azure_mgmt_iot_hub/iot_hub_resource.rb | 344 +- .../azure_mgmt_iot_hub/iot_hub_resource.rb | 344 +- .../azure_mgmt_iot_hub/certificates.rb | 66 +- .../azure_mgmt_iot_hub/iot_hub_resource.rb | 344 +- .../azure_mgmt_iot_hub/operations.rb | 28 +- .../latest/modules/iothub_profile_module.rb | 22 +- .../generated/azure_mgmt_key_vault/vaults.rb | 89 +- .../generated/azure_mgmt_key_vault/vaults.rb | 147 +- .../latest/modules/keyvault_profile_module.rb | 18 +- .../azure_mgmt_links/resource_links.rb | 89 +- .../latest/modules/links_profile_module.rb | 18 +- .../modules/links_profile_module.rb | 18 +- .../azure_mgmt_locks/management_locks.rb | 172 +- .../azure_mgmt_locks/management_locks.rb | 216 +- .../latest/modules/locks_profile_module.rb | 18 +- .../modules/locks_profile_module.rb | 18 +- .../azure_mgmt_logic/workflow_access_keys.rb | 83 +- .../azure_mgmt_logic/workflow_run_actions.rb | 39 +- .../azure_mgmt_logic/workflow_runs.rb | 50 +- .../workflow_trigger_histories.rb | 39 +- .../azure_mgmt_logic/workflow_triggers.rb | 50 +- .../azure_mgmt_logic/workflow_versions.rb | 11 +- .../generated/azure_mgmt_logic/workflows.rb | 152 +- .../generated/azure_mgmt_logic/agreements.rb | 61 +- .../azure_mgmt_logic/certificates.rb | 61 +- .../azure_mgmt_logic/integration_accounts.rb | 111 +- .../logic_management_client.rb | 33 +- .../generated/azure_mgmt_logic/maps.rb | 61 +- .../generated/azure_mgmt_logic/partners.rb | 61 +- .../generated/azure_mgmt_logic/schemas.rb | 61 +- .../generated/azure_mgmt_logic/sessions.rb | 61 +- .../azure_mgmt_logic/workflow_run_actions.rb | 39 +- .../azure_mgmt_logic/workflow_runs.rb | 50 +- .../workflow_trigger_histories.rb | 50 +- .../azure_mgmt_logic/workflow_triggers.rb | 61 +- .../azure_mgmt_logic/workflow_versions.rb | 50 +- .../generated/azure_mgmt_logic/workflows.rb | 166 +- .../latest/modules/logic_profile_module.rb | 42 +- .../web_services.rb | 154 +- .../modules/machinelearning_profile_module.rb | 18 +- .../appliance_definitions.rb | 126 +- .../appliances.rb | 176 +- .../managedapplications_profile_module.rb | 20 +- .../marketplace_agreements.rb | 22 +- .../operations.rb | 28 +- .../marketplaceordering_profile_module.rb | 20 +- .../media_service_operations.rb | 99 +- .../azure_mgmt_media_services/operations.rb | 11 +- .../modules/mediaservices_profile_module.rb | 20 +- .../app_collections.rb | 39 +- .../azure_mgmt_mobile_engagement/apps.rb | 28 +- .../azure_mgmt_mobile_engagement/campaigns.rb | 160 +- .../azure_mgmt_mobile_engagement/devices.rb | 72 +- .../export_tasks.rb | 149 +- .../import_tasks.rb | 50 +- .../supported_platforms.rb | 11 +- .../mobileengagement_profile_module.rb | 30 +- .../azure_mgmt_monitor/autoscale_settings.rb | 72 +- .../azure_mgmt_monitor/operations.rb | 11 +- .../alert_rule_incidents.rb | 22 +- .../azure_mgmt_monitor/alert_rules.rb | 55 +- .../azure_mgmt_monitor/log_profiles.rb | 55 +- .../service_diagnostic_settings_operations.rb | 33 +- .../azure_mgmt_monitor/action_groups.rb | 66 +- .../azure_mgmt_monitor/activity_log_alerts.rb | 66 +- ...diagnostic_settings_category_operations.rb | 22 +- .../diagnostic_settings_operations.rb | 44 +- .../latest/modules/monitor_profile_module.rb | 64 +- .../generated/azure_mgmt_msi/operations.rb | 28 +- .../user_assigned_identities.rb | 100 +- .../managedserviceidentity_profile_module.rb | 20 +- .../application_gateways.rb | 143 +- .../express_route_circuit_authorizations.rb | 77 +- .../express_route_circuit_peerings.rb | 77 +- .../express_route_circuits.rb | 189 +- .../express_route_service_providers.rb | 28 +- .../azure_mgmt_network/load_balancers.rb | 105 +- .../local_network_gateways.rb | 77 +- .../azure_mgmt_network/network_interfaces.rb | 172 +- .../network_management_client.rb | 11 +- .../network_security_groups.rb | 105 +- .../azure_mgmt_network/public_ip_addresses.rb | 105 +- .../azure_mgmt_network/route_tables.rb | 105 +- .../generated/azure_mgmt_network/routes.rb | 77 +- .../azure_mgmt_network/security_rules.rb | 77 +- .../generated/azure_mgmt_network/subnets.rb | 77 +- .../generated/azure_mgmt_network/usages.rb | 28 +- .../virtual_network_gateway_connections.rb | 126 +- .../virtual_network_gateways.rb | 96 +- .../azure_mgmt_network/virtual_networks.rb | 105 +- .../application_gateways.rb | 143 +- .../express_route_circuit_authorizations.rb | 77 +- .../express_route_circuit_peerings.rb | 77 +- .../express_route_circuits.rb | 189 +- .../express_route_service_providers.rb | 28 +- .../azure_mgmt_network/load_balancers.rb | 105 +- .../local_network_gateways.rb | 77 +- .../azure_mgmt_network/network_interfaces.rb | 172 +- .../network_management_client.rb | 11 +- .../network_security_groups.rb | 105 +- .../azure_mgmt_network/public_ipaddresses.rb | 105 +- .../azure_mgmt_network/route_tables.rb | 105 +- .../generated/azure_mgmt_network/routes.rb | 77 +- .../azure_mgmt_network/security_rules.rb | 77 +- .../generated/azure_mgmt_network/subnets.rb | 77 +- .../generated/azure_mgmt_network/usages.rb | 28 +- .../virtual_network_gateway_connections.rb | 126 +- .../virtual_network_gateways.rb | 107 +- .../azure_mgmt_network/virtual_networks.rb | 105 +- .../application_gateways.rb | 143 +- .../express_route_circuit_authorizations.rb | 77 +- .../express_route_circuit_peerings.rb | 77 +- .../express_route_circuits.rb | 184 +- .../express_route_service_providers.rb | 28 +- .../azure_mgmt_network/load_balancers.rb | 105 +- .../local_network_gateways.rb | 77 +- .../azure_mgmt_network/network_interfaces.rb | 172 +- .../network_management_client.rb | 11 +- .../network_security_groups.rb | 105 +- .../azure_mgmt_network/public_ipaddresses.rb | 105 +- .../azure_mgmt_network/route_tables.rb | 105 +- .../generated/azure_mgmt_network/routes.rb | 77 +- .../azure_mgmt_network/security_rules.rb | 77 +- .../generated/azure_mgmt_network/subnets.rb | 77 +- .../generated/azure_mgmt_network/usages.rb | 11 +- .../virtual_network_gateway_connections.rb | 126 +- .../virtual_network_gateways.rb | 107 +- .../azure_mgmt_network/virtual_networks.rb | 105 +- .../application_gateways.rb | 143 +- .../express_route_circuit_authorizations.rb | 77 +- .../express_route_circuit_peerings.rb | 77 +- .../express_route_circuits.rb | 184 +- .../express_route_service_providers.rb | 28 +- .../azure_mgmt_network/load_balancers.rb | 105 +- .../local_network_gateways.rb | 77 +- .../azure_mgmt_network/network_interfaces.rb | 210 +- .../network_management_client.rb | 11 +- .../network_security_groups.rb | 105 +- .../azure_mgmt_network/public_ipaddresses.rb | 105 +- .../azure_mgmt_network/route_tables.rb | 105 +- .../generated/azure_mgmt_network/routes.rb | 77 +- .../azure_mgmt_network/security_rules.rb | 77 +- .../generated/azure_mgmt_network/subnets.rb | 77 +- .../generated/azure_mgmt_network/usages.rb | 28 +- .../virtual_network_gateway_connections.rb | 126 +- .../virtual_network_gateways.rb | 107 +- .../virtual_network_peerings.rb | 77 +- .../azure_mgmt_network/virtual_networks.rb | 116 +- .../application_gateways.rb | 162 +- .../express_route_circuit_authorizations.rb | 77 +- .../express_route_circuit_peerings.rb | 77 +- .../express_route_circuits.rb | 184 +- .../express_route_service_providers.rb | 28 +- .../azure_mgmt_network/load_balancers.rb | 105 +- .../local_network_gateways.rb | 77 +- .../azure_mgmt_network/network_interfaces.rb | 210 +- .../network_management_client.rb | 11 +- .../network_security_groups.rb | 105 +- .../azure_mgmt_network/network_watchers.rb | 207 +- .../azure_mgmt_network/packet_captures.rb | 98 +- .../azure_mgmt_network/public_ipaddresses.rb | 105 +- .../azure_mgmt_network/route_tables.rb | 105 +- .../generated/azure_mgmt_network/routes.rb | 77 +- .../azure_mgmt_network/security_rules.rb | 77 +- .../generated/azure_mgmt_network/subnets.rb | 77 +- .../generated/azure_mgmt_network/usages.rb | 28 +- .../virtual_network_gateway_connections.rb | 126 +- .../virtual_network_gateways.rb | 164 +- .../virtual_network_peerings.rb | 77 +- .../azure_mgmt_network/virtual_networks.rb | 116 +- .../application_gateways.rb | 162 +- .../bgp_service_communities.rb | 28 +- .../express_route_circuit_authorizations.rb | 77 +- .../express_route_circuit_peerings.rb | 77 +- .../express_route_circuits.rb | 184 +- .../express_route_service_providers.rb | 28 +- .../azure_mgmt_network/load_balancers.rb | 105 +- .../local_network_gateways.rb | 77 +- .../azure_mgmt_network/network_interfaces.rb | 210 +- .../network_management_client.rb | 11 +- .../network_security_groups.rb | 105 +- .../azure_mgmt_network/network_watchers.rb | 207 +- .../azure_mgmt_network/packet_captures.rb | 98 +- .../azure_mgmt_network/public_ipaddresses.rb | 105 +- .../azure_mgmt_network/route_filter_rules.rb | 96 +- .../azure_mgmt_network/route_filters.rb | 124 +- .../azure_mgmt_network/route_tables.rb | 105 +- .../generated/azure_mgmt_network/routes.rb | 77 +- .../azure_mgmt_network/security_rules.rb | 77 +- .../generated/azure_mgmt_network/subnets.rb | 77 +- .../generated/azure_mgmt_network/usages.rb | 28 +- .../virtual_network_gateway_connections.rb | 126 +- .../virtual_network_gateways.rb | 164 +- .../virtual_network_peerings.rb | 77 +- .../azure_mgmt_network/virtual_networks.rb | 116 +- .../application_gateways.rb | 173 +- .../bgp_service_communities.rb | 28 +- .../express_route_circuit_authorizations.rb | 77 +- .../express_route_circuit_peerings.rb | 77 +- .../express_route_circuits.rb | 184 +- .../express_route_service_providers.rb | 28 +- .../azure_mgmt_network/load_balancers.rb | 105 +- .../local_network_gateways.rb | 77 +- .../azure_mgmt_network/network_interfaces.rb | 143 +- .../network_management_client.rb | 11 +- .../network_security_groups.rb | 105 +- .../azure_mgmt_network/network_watchers.rb | 226 +- .../azure_mgmt_network/packet_captures.rb | 98 +- .../azure_mgmt_network/public_ipaddresses.rb | 105 +- .../azure_mgmt_network/route_filter_rules.rb | 96 +- .../azure_mgmt_network/route_filters.rb | 124 +- .../azure_mgmt_network/route_tables.rb | 105 +- .../generated/azure_mgmt_network/routes.rb | 77 +- .../azure_mgmt_network/security_rules.rb | 77 +- .../generated/azure_mgmt_network/subnets.rb | 77 +- .../generated/azure_mgmt_network/usages.rb | 28 +- .../virtual_network_gateway_connections.rb | 126 +- .../virtual_network_gateways.rb | 164 +- .../virtual_network_peerings.rb | 77 +- .../azure_mgmt_network/virtual_networks.rb | 144 +- .../azure_mgmt_network/network_interfaces.rb | 67 +- .../azure_mgmt_network/public_ipaddresses.rb | 67 +- .../application_gateways.rb | 223 +- .../application_security_groups.rb | 105 +- .../available_endpoint_services.rb | 28 +- .../bgp_service_communities.rb | 28 +- .../default_security_rules.rb | 39 +- .../express_route_circuit_authorizations.rb | 77 +- .../express_route_circuit_peerings.rb | 77 +- .../express_route_circuits.rb | 184 +- .../express_route_service_providers.rb | 28 +- .../azure_mgmt_network/inbound_nat_rules.rb | 77 +- .../load_balancer_backend_address_pools.rb | 39 +- ...load_balancer_frontend_ipconfigurations.rb | 39 +- .../load_balancer_load_balancing_rules.rb | 39 +- .../load_balancer_network_interfaces.rb | 28 +- .../load_balancer_probes.rb | 39 +- .../azure_mgmt_network/load_balancers.rb | 105 +- .../local_network_gateways.rb | 77 +- .../network_interface_ipconfigurations.rb | 39 +- .../network_interface_load_balancers.rb | 28 +- .../azure_mgmt_network/network_interfaces.rb | 143 +- .../network_management_client.rb | 11 +- .../network_security_groups.rb | 105 +- .../azure_mgmt_network/network_watchers.rb | 264 +- .../azure_mgmt_network/packet_captures.rb | 98 +- .../azure_mgmt_network/public_ipaddresses.rb | 105 +- .../azure_mgmt_network/route_filter_rules.rb | 96 +- .../azure_mgmt_network/route_filters.rb | 124 +- .../azure_mgmt_network/route_tables.rb | 105 +- .../generated/azure_mgmt_network/routes.rb | 77 +- .../azure_mgmt_network/security_rules.rb | 77 +- .../generated/azure_mgmt_network/subnets.rb | 77 +- .../generated/azure_mgmt_network/usages.rb | 28 +- .../virtual_network_gateway_connections.rb | 126 +- .../virtual_network_gateways.rb | 260 +- .../virtual_network_peerings.rb | 77 +- .../azure_mgmt_network/virtual_networks.rb | 144 +- .../latest/modules/network_profile_module.rb | 86 +- .../modules/network_profile_module.rb | 52 +- .../azure_mgmt_notification_hubs/hubs.rb | 11 +- .../azure_mgmt_notification_hubs/name.rb | 11 +- .../namespaces.rb | 202 +- .../notification_hubs.rb | 166 +- .../notificationhubs_profile_module.rb | 24 +- .../saved_searches.rb | 55 +- .../storage_insights.rb | 61 +- .../workspaces.rb | 52 +- .../data_sources.rb | 61 +- .../linked_services.rb | 44 +- .../workspaces.rb | 129 +- .../operationalinsights_profile_module.rb | 36 +- .../azure_mgmt_policy/policy_assignments.rb | 150 +- .../azure_mgmt_policy/policy_definitions.rb | 61 +- .../azure_mgmt_policy/policy_assignments.rb | 150 +- .../azure_mgmt_policy/policy_definitions.rb | 61 +- .../azure_mgmt_policy/policy_assignments.rb | 150 +- .../azure_mgmt_policy/policy_definitions.rb | 161 +- .../azure_mgmt_policy/policy_assignments.rb | 150 +- .../policy_set_definitions.rb | 161 +- .../latest/modules/policy_profile_module.rb | 32 +- .../modules/policy_profile_module.rb | 20 +- .../power_biembedded_management_client.rb | 11 +- .../workspace_collections.rb | 118 +- .../azure_mgmt_powerbi_embedded/workspaces.rb | 11 +- .../modules/powerbiembedded_profile_module.rb | 20 +- .../operations.rb | 28 +- .../registered_identities.rb | 11 +- .../replication_usages.rb | 11 +- .../azure_mgmt_recovery_services/usages.rb | 11 +- .../vault_certificates.rb | 11 +- .../vault_extended_info_operations.rb | 33 +- .../azure_mgmt_recovery_services/vaults.rb | 66 +- .../backup_storage_configs.rb | 22 +- .../backup_vault_configs.rb | 22 +- .../recoveryservices_profile_module.rb | 44 +- .../backup_engines.rb | 28 +- .../backup_operation_results.rb | 11 +- .../backup_operation_statuses.rb | 11 +- .../backups.rb | 11 +- .../export_jobs_operation_results.rb | 11 +- .../item_level_recovery_connections.rb | 22 +- .../job_cancellations.rb | 11 +- .../job_details.rb | 11 +- .../job_operation_results.rb | 11 +- .../jobs.rb | 39 +- .../protectable_items.rb | 28 +- .../protected_item_operation_results.rb | 11 +- .../protected_item_operation_statuses.rb | 11 +- .../protected_items.rb | 61 +- .../protection_container_operation_results.rb | 11 +- ...ion_container_refresh_operation_results.rb | 11 +- .../protection_containers.rb | 61 +- .../protection_policies.rb | 61 +- .../protection_policy_operation_results.rb | 11 +- .../protection_policy_operation_statuses.rb | 11 +- .../recovery_points.rb | 39 +- .../restores.rb | 11 +- .../operations.rb | 28 +- .../backup_engines.rb | 39 +- .../backup_operation_results.rb | 11 +- .../backup_operation_statuses.rb | 11 +- .../backup_policies.rb | 28 +- .../backup_protectable_items.rb | 28 +- .../backup_protected_items.rb | 28 +- .../backup_protection_containers.rb | 28 +- .../backup_resource_storage_configs.rb | 22 +- .../backup_resource_vault_configs.rb | 22 +- .../backup_usage_summaries.rb | 11 +- .../backups.rb | 11 +- .../export_jobs_operation_results.rb | 11 +- .../item_level_recovery_connections.rb | 22 +- .../job_cancellations.rb | 11 +- .../job_operation_results.rb | 11 +- .../jobs.rb | 11 +- .../protected_item_operation_results.rb | 11 +- .../protected_item_operation_statuses.rb | 11 +- .../protected_items.rb | 33 +- .../protection_container_operation_results.rb | 11 +- ...ion_container_refresh_operation_results.rb | 11 +- .../protection_containers.rb | 22 +- .../protection_policies.rb | 33 +- .../protection_policy_operation_results.rb | 11 +- .../protection_policy_operation_statuses.rb | 11 +- .../recovery_points.rb | 39 +- .../restores.rb | 11 +- .../security_pins.rb | 11 +- .../backup_jobs.rb | 28 +- .../job_details.rb | 11 +- .../recoveryservicesbackup_profile_module.rb | 98 +- .../operations.rb | 28 +- .../recovery_points.rb | 39 +- .../replication_alert_settings.rb | 50 +- .../replication_events.rb | 39 +- .../replication_fabrics.rb | 172 +- .../replication_jobs.rb | 115 +- .../replication_logical_networks.rb | 39 +- .../replication_network_mappings.rb | 124 +- .../replication_networks.rb | 67 +- .../replication_policies.rb | 96 +- .../replication_protectable_items.rb | 39 +- .../replication_protected_items.rb | 314 +- ...plication_protection_container_mappings.rb | 124 +- .../replication_protection_containers.rb | 143 +- .../replication_recovery_plans.rb | 210 +- ...replication_recovery_services_providers.rb | 124 +- ...ication_storage_classification_mappings.rb | 105 +- .../replication_storage_classifications.rb | 67 +- .../replication_vault_health.rb | 11 +- .../replicationv_centers.rb | 124 +- ...veryservicessiterecovery_profile_module.rb | 56 +- .../generated/azure_mgmt_redis/redis.rb | 122 +- .../azure_mgmt_redis/firewall_rules.rb | 28 +- .../generated/azure_mgmt_redis/operations.rb | 28 +- .../azure_mgmt_redis/patch_schedules.rb | 33 +- .../generated/azure_mgmt_redis/redis.rb | 187 +- .../redis_firewall_rule_operations.rb | 33 +- .../azure_mgmt_redis/firewall_rules.rb | 61 +- .../generated/azure_mgmt_redis/operations.rb | 28 +- .../azure_mgmt_redis/patch_schedules.rb | 33 +- .../generated/azure_mgmt_redis/redis.rb | 187 +- .../redis_linked_server_operations.rb | 52 +- .../latest/modules/redis_profile_module.rb | 26 +- .../azure_mgmt_relay/hybrid_connections.rb | 144 +- .../generated/azure_mgmt_relay/namespaces.rb | 210 +- .../generated/azure_mgmt_relay/operations.rb | 28 +- .../generated/azure_mgmt_relay/wcfrelays.rb | 144 +- .../azure_mgmt_relay/hybrid_connections.rb | 144 +- .../generated/azure_mgmt_relay/namespaces.rb | 210 +- .../generated/azure_mgmt_relay/operations.rb | 28 +- .../generated/azure_mgmt_relay/wcfrelays.rb | 144 +- .../latest/modules/relay_profile_module.rb | 24 +- .../deployment_operations.rb | 39 +- .../azure_mgmt_resources/deployments.rb | 121 +- .../azure_mgmt_resources/providers.rb | 61 +- .../azure_mgmt_resources/resource_groups.rb | 130 +- .../azure_mgmt_resources/resources.rb | 91 +- .../generated/azure_mgmt_resources/tags.rb | 72 +- .../deployment_operations.rb | 39 +- .../azure_mgmt_resources/deployments.rb | 121 +- .../azure_mgmt_resources/providers.rb | 61 +- .../azure_mgmt_resources/resource_groups.rb | 130 +- .../azure_mgmt_resources/resources.rb | 91 +- .../generated/azure_mgmt_resources/tags.rb | 72 +- .../deployment_operations.rb | 39 +- .../azure_mgmt_resources/deployments.rb | 121 +- .../azure_mgmt_resources/providers.rb | 61 +- .../azure_mgmt_resources/resource_groups.rb | 130 +- .../azure_mgmt_resources/resources.rb | 167 +- .../generated/azure_mgmt_resources/tags.rb | 72 +- .../deployment_operations.rb | 39 +- .../azure_mgmt_resources/deployments.rb | 121 +- .../azure_mgmt_resources/providers.rb | 61 +- .../azure_mgmt_resources/resource_groups.rb | 102 +- .../azure_mgmt_resources/resources.rb | 214 +- .../generated/azure_mgmt_resources/tags.rb | 72 +- .../modules/resources_profile_module.rb | 28 +- .../modules/resources_profile_module.rb | 28 +- .../2017-05-10/deployment_operations_spec.rb | 2 +- .../spec/2017-05-10/deployment_spec.rb | 2 +- .../spec/2017-05-10/providers_spec.rb | 2 +- .../spec/2017-05-10/resource_groups_spec.rb | 4 +- .../spec/2017-05-10/resources_spec.rb | 4 +- .../management_groups.rb | 39 +- .../operations.rb | 28 +- .../resourcesmanagement_profile_module.rb | 20 +- .../azure_mgmt_scheduler/job_collections.rb | 146 +- .../generated/azure_mgmt_scheduler/jobs.rb | 111 +- .../modules/scheduler_profile_module.rb | 20 +- .../generated/azure_mgmt_search/admin_keys.rb | 22 +- .../generated/azure_mgmt_search/query_keys.rb | 33 +- .../generated/azure_mgmt_search/services.rb | 63 +- .../latest/modules/search_profile_module.rb | 22 +- .../azure_mgmt_server_management/gateway.rb | 173 +- .../azure_mgmt_server_management/node.rb | 116 +- .../power_shell.rb | 109 +- .../azure_mgmt_server_management/session.rb | 41 +- .../servermanagement_profile_module.rb | 24 +- .../azure_mgmt_service_bus/namespaces.rb | 210 +- .../azure_mgmt_service_bus/operations.rb | 28 +- .../azure_mgmt_service_bus/queues.rb | 144 +- .../azure_mgmt_service_bus/subscriptions.rb | 61 +- .../azure_mgmt_service_bus/topics.rb | 144 +- .../disaster_recovery_configs.rb | 83 +- .../azure_mgmt_service_bus/event_hubs.rb | 28 +- .../azure_mgmt_service_bus/namespaces.rb | 210 +- .../azure_mgmt_service_bus/operations.rb | 28 +- .../premium_messaging_regions_operations.rb | 28 +- .../azure_mgmt_service_bus/queues.rb | 144 +- .../azure_mgmt_service_bus/regions.rb | 28 +- .../generated/azure_mgmt_service_bus/rules.rb | 61 +- .../azure_mgmt_service_bus/subscriptions.rb | 61 +- .../azure_mgmt_service_bus/topics.rb | 144 +- .../modules/servicebus_profile_module.rb | 36 +- .../cluster_versions.rb | 95 +- .../azure_mgmt_service_fabric/clusters.rb | 116 +- .../azure_mgmt_service_fabric/operations.rb | 28 +- .../modules/servicefabric_profile_module.rb | 22 +- .../backup_long_term_retention_policies.rb | 30 +- .../backup_long_term_retention_vaults.rb | 30 +- .../generated/azure_mgmt_sql/capabilities.rb | 11 +- .../azure_mgmt_sql/data_masking_policies.rb | 22 +- .../azure_mgmt_sql/data_masking_rules.rb | 22 +- .../azure_mgmt_sql/database_advisors.rb | 33 +- .../database_connection_policies.rb | 22 +- .../database_table_auditing_policies.rb | 33 +- .../database_threat_detection_policies.rb | 22 +- .../azure_mgmt_sql/database_usages.rb | 11 +- .../generated/azure_mgmt_sql/databases.rb | 232 +- .../azure_mgmt_sql/elastic_pool_activities.rb | 11 +- .../elastic_pool_database_activities.rb | 11 +- .../generated/azure_mgmt_sql/elastic_pools.rb | 93 +- .../azure_mgmt_sql/firewall_rules.rb | 44 +- .../azure_mgmt_sql/geo_backup_policies.rb | 33 +- .../generated/azure_mgmt_sql/operations.rb | 11 +- .../generated/azure_mgmt_sql/queries.rb | 11 +- .../azure_mgmt_sql/query_statistics.rb | 11 +- .../recommended_elastic_pools.rb | 33 +- .../azure_mgmt_sql/recoverable_databases.rb | 22 +- .../azure_mgmt_sql/replication_links.rb | 71 +- .../restorable_dropped_databases.rb | 22 +- .../azure_mgmt_sql/restore_points.rb | 11 +- .../server_azure_adadministrators.rb | 60 +- .../server_communication_links.rb | 52 +- .../server_connection_policies.rb | 22 +- .../server_table_auditing_policies.rb | 33 +- .../generated/azure_mgmt_sql/server_usages.rb | 11 +- .../generated/azure_mgmt_sql/servers.rb | 77 +- .../azure_mgmt_sql/service_objectives.rb | 22 +- .../azure_mgmt_sql/service_tier_advisors.rb | 22 +- .../transparent_data_encryption_activities.rb | 11 +- ...nsparent_data_encryption_configurations.rb | 11 +- .../transparent_data_encryptions.rb | 22 +- .../azure_mgmt_sql/database_advisors.rb | 33 +- .../database_blob_auditing_policies.rb | 22 +- .../database_recommended_actions.rb | 33 +- .../azure_mgmt_sql/encryption_protectors.rb | 58 +- .../azure_mgmt_sql/failover_groups.rb | 134 +- .../generated/azure_mgmt_sql/operations.rb | 28 +- .../azure_mgmt_sql/server_advisors.rb | 33 +- .../generated/azure_mgmt_sql/server_keys.rb | 77 +- .../generated/azure_mgmt_sql/servers.rb | 124 +- .../generated/azure_mgmt_sql/sync_agents.rb | 116 +- .../generated/azure_mgmt_sql/sync_groups.rb | 221 +- .../generated/azure_mgmt_sql/sync_members.rb | 143 +- .../azure_mgmt_sql/virtual_network_rules.rb | 77 +- .../azure_mgmt_sql/database_operations.rb | 39 +- .../latest/modules/sql_profile_module.rb | 128 +- .../access_control_records.rb | 60 +- .../alerts.rb | 50 +- .../backup_policies.rb | 79 +- .../backup_schedules.rb | 60 +- .../backups.rb | 85 +- .../bandwidth_settings.rb | 60 +- .../cloud_appliances.rb | 30 +- .../device_settings.rb | 139 +- .../devices.rb | 213 +- .../hardware_component_groups.rb | 30 +- .../azure_mgmt_stor_simple8000_series/jobs.rb | 86 +- .../managers.rb | 198 +- .../operations.rb | 28 +- .../storage_account_credentials.rb | 60 +- .../volume_containers.rb | 82 +- .../volumes.rb | 93 +- .../storsimple8000series_profile_module.rb | 48 +- .../azure_mgmt_storage/storage_accounts.rb | 141 +- .../azure_mgmt_storage/usage_operations.rb | 11 +- .../azure_mgmt_storage/storage_accounts.rb | 107 +- .../azure_mgmt_storage/usage_operations.rb | 11 +- .../azure_mgmt_storage/storage_accounts.rb | 107 +- .../azure_mgmt_storage/usage_operations.rb | 11 +- .../azure_mgmt_storage/storage_accounts.rb | 129 +- .../azure_mgmt_storage/usage_operations.rb | 11 +- .../azure_mgmt_storage/operations.rb | 11 +- .../generated/azure_mgmt_storage/skus.rb | 11 +- .../azure_mgmt_storage/storage_accounts.rb | 129 +- .../azure_mgmt_storage/usage_operations.rb | 11 +- .../azure_mgmt_storage/operations.rb | 11 +- .../generated/azure_mgmt_storage/skus.rb | 11 +- .../azure_mgmt_storage/storage_accounts.rb | 129 +- .../azure_mgmt_storage/usage_operations.rb | 11 +- .../latest/modules/storage_profile_module.rb | 24 +- .../modules/storage_profile_module.rb | 20 +- .../azure_mgmt_stream_analytics/functions.rb | 102 +- .../azure_mgmt_stream_analytics/inputs.rb | 91 +- .../azure_mgmt_stream_analytics/operations.rb | 28 +- .../azure_mgmt_stream_analytics/outputs.rb | 91 +- .../streaming_jobs.rb | 154 +- .../subscriptions.rb | 11 +- .../transformations.rb | 33 +- .../modules/streamanalytics_profile_module.rb | 30 +- .../azure_mgmt_subscriptions/subscriptions.rb | 50 +- .../azure_mgmt_subscriptions/tenants.rb | 28 +- .../azure_mgmt_subscriptions/subscriptions.rb | 50 +- .../azure_mgmt_subscriptions/tenants.rb | 28 +- .../modules/subscriptions_profile_module.rb | 20 +- .../modules/subscriptions_profile_module.rb | 20 +- .../azure_mgmt_traffic_manager/endpoints.rb | 44 +- .../azure_mgmt_traffic_manager/profiles.rb | 77 +- .../azure_mgmt_traffic_manager/endpoints.rb | 44 +- .../geographic_hierarchies.rb | 11 +- .../azure_mgmt_traffic_manager/profiles.rb | 77 +- .../azure_mgmt_traffic_manager/endpoints.rb | 44 +- .../geographic_hierarchies.rb | 11 +- .../azure_mgmt_traffic_manager/profiles.rb | 77 +- .../azure_mgmt_traffic_manager/heat_map.rb | 11 +- .../traffic_manager_user_metrics_keys.rb | 33 +- .../modules/trafficmanager_profile_module.rb | 36 +- .../generated/azure_mgmt_web/domains.rb | 219 +- .../azure_mgmt_web/top_level_domains.rb | 67 +- .../app_service_certificate_orders.rb | 265 +- .../generated/azure_mgmt_web/certificates.rb | 100 +- .../azure_mgmt_web/deleted_web_apps.rb | 28 +- .../generated/azure_mgmt_web/provider.rb | 50 +- .../azure_mgmt_web/recommendations.rb | 77 +- .../web_site_management_client.rb | 198 +- .../generated/azure_mgmt_web/web_apps.rb | 4410 +++++++++-------- .../app_service_environments.rb | 863 ++-- .../azure_mgmt_web/app_service_plans.rb | 413 +- .../latest/modules/web_profile_module.rb | 76 +- 949 files changed, 38480 insertions(+), 34414 deletions(-) diff --git a/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb b/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb index d2976e93f..978662d8c 100644 --- a/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/analysisservices_profile_module.rb @@ -35,12 +35,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::AnalysisServices::Mgmt::V2017_07_14::AnalysisServicesManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::AnalysisServices::Mgmt::V2017_07_14::AnalysisServicesManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @servers = client_0.servers + add_telemetry(@client_0) + @servers = @client_0.servers @model_classes = ModelClasses.new end @@ -50,6 +50,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def analysis_services_server_update_parameters Azure::AnalysisServices::Mgmt::V2017_07_14::Models::AnalysisServicesServerUpdateParameters diff --git a/azure_sdk/lib/latest/modules/authorization_profile_module.rb b/azure_sdk/lib/latest/modules/authorization_profile_module.rb index 2eb2b7786..3974cd76d 100644 --- a/azure_sdk/lib/latest/modules/authorization_profile_module.rb +++ b/azure_sdk/lib/latest/modules/authorization_profile_module.rb @@ -41,16 +41,16 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Authorization::Mgmt::V2015_07_01::AuthorizationManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Authorization::Mgmt::V2015_07_01::AuthorizationManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @classic_administrators = client_0.classic_administrators - @permissions = client_0.permissions - @provider_operations_metadata_operations = client_0.provider_operations_metadata_operations - @role_assignments = client_0.role_assignments - @role_definitions = client_0.role_definitions + add_telemetry(@client_0) + @classic_administrators = @client_0.classic_administrators + @permissions = @client_0.permissions + @provider_operations_metadata_operations = @client_0.provider_operations_metadata_operations + @role_assignments = @client_0.role_assignments + @role_definitions = @client_0.role_definitions @model_classes = ModelClasses.new end @@ -60,6 +60,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def provider_operations_metadata Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata diff --git a/azure_sdk/lib/latest/modules/automation_profile_module.rb b/azure_sdk/lib/latest/modules/automation_profile_module.rb index d2c59fcf3..a68b4fdd3 100644 --- a/azure_sdk/lib/latest/modules/automation_profile_module.rb +++ b/azure_sdk/lib/latest/modules/automation_profile_module.rb @@ -173,40 +173,40 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Automation::Mgmt::V2015_10_31::AutomationClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Automation::Mgmt::V2015_10_31::AutomationClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @automation_account_operations = client_0.automation_account_operations - @operations = client_0.operations - @statistics_operations = client_0.statistics_operations - @usages = client_0.usages - @certificate_operations = client_0.certificate_operations - @connection_operations = client_0.connection_operations - @connection_type_operations = client_0.connection_type_operations - @credential_operations = client_0.credential_operations - @dsc_compilation_job_operations = client_0.dsc_compilation_job_operations - @dsc_configuration_operations = client_0.dsc_configuration_operations - @agent_registration_information = client_0.agent_registration_information - @dsc_node_operations = client_0.dsc_node_operations - @node_reports = client_0.node_reports - @dsc_node_configuration_operations = client_0.dsc_node_configuration_operations - @hybrid_runbook_worker_group_operations = client_0.hybrid_runbook_worker_group_operations - @job_operations = client_0.job_operations - @job_stream_operations = client_0.job_stream_operations - @job_schedule_operations = client_0.job_schedule_operations - @activity_operations = client_0.activity_operations - @module_model_operations = client_0.module_model_operations - @object_data_types = client_0.object_data_types - @fields = client_0.fields - @runbook_draft_operations = client_0.runbook_draft_operations - @runbook_operations = client_0.runbook_operations - @test_job_streams = client_0.test_job_streams - @test_jobs = client_0.test_jobs - @schedule_operations = client_0.schedule_operations - @variable_operations = client_0.variable_operations - @webhook_operations = client_0.webhook_operations + add_telemetry(@client_0) + @automation_account_operations = @client_0.automation_account_operations + @operations = @client_0.operations + @statistics_operations = @client_0.statistics_operations + @usages = @client_0.usages + @certificate_operations = @client_0.certificate_operations + @connection_operations = @client_0.connection_operations + @connection_type_operations = @client_0.connection_type_operations + @credential_operations = @client_0.credential_operations + @dsc_compilation_job_operations = @client_0.dsc_compilation_job_operations + @dsc_configuration_operations = @client_0.dsc_configuration_operations + @agent_registration_information = @client_0.agent_registration_information + @dsc_node_operations = @client_0.dsc_node_operations + @node_reports = @client_0.node_reports + @dsc_node_configuration_operations = @client_0.dsc_node_configuration_operations + @hybrid_runbook_worker_group_operations = @client_0.hybrid_runbook_worker_group_operations + @job_operations = @client_0.job_operations + @job_stream_operations = @client_0.job_stream_operations + @job_schedule_operations = @client_0.job_schedule_operations + @activity_operations = @client_0.activity_operations + @module_model_operations = @client_0.module_model_operations + @object_data_types = @client_0.object_data_types + @fields = @client_0.fields + @runbook_draft_operations = @client_0.runbook_draft_operations + @runbook_operations = @client_0.runbook_operations + @test_job_streams = @client_0.test_job_streams + @test_jobs = @client_0.test_jobs + @schedule_operations = @client_0.schedule_operations + @variable_operations = @client_0.variable_operations + @webhook_operations = @client_0.webhook_operations @model_classes = ModelClasses.new end @@ -216,6 +216,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def dsc_compilation_job Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob diff --git a/azure_sdk/lib/latest/modules/batch_profile_module.rb b/azure_sdk/lib/latest/modules/batch_profile_module.rb index 2cc440cdf..0d591c120 100644 --- a/azure_sdk/lib/latest/modules/batch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/batch_profile_module.rb @@ -49,16 +49,16 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Batch::Mgmt::V2017_05_01::BatchManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Batch::Mgmt::V2017_05_01::BatchManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @batch_account_operations = client_0.batch_account_operations - @application_package_operations = client_0.application_package_operations - @application_operations = client_0.application_operations - @location = client_0.location - @operations = client_0.operations + add_telemetry(@client_0) + @batch_account_operations = @client_0.batch_account_operations + @application_package_operations = @client_0.application_package_operations + @application_operations = @client_0.application_operations + @location = @client_0.location + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -68,6 +68,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def application_package Azure::Batch::Mgmt::V2017_05_01::Models::ApplicationPackage diff --git a/azure_sdk/lib/latest/modules/billing_profile_module.rb b/azure_sdk/lib/latest/modules/billing_profile_module.rb index 304959371..b148de998 100644 --- a/azure_sdk/lib/latest/modules/billing_profile_module.rb +++ b/azure_sdk/lib/latest/modules/billing_profile_module.rb @@ -31,14 +31,14 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Billing::Mgmt::V2017_04_24_preview::BillingManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Billing::Mgmt::V2017_04_24_preview::BillingManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @billing_periods = client_0.billing_periods - @invoices = client_0.invoices - @operations = client_0.operations + add_telemetry(@client_0) + @billing_periods = @client_0.billing_periods + @invoices = @client_0.invoices + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -48,6 +48,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def resource Azure::Billing::Mgmt::V2017_04_24_preview::Models::Resource diff --git a/azure_sdk/lib/latest/modules/cdn_profile_module.rb b/azure_sdk/lib/latest/modules/cdn_profile_module.rb index ab07bc691..39a4db597 100644 --- a/azure_sdk/lib/latest/modules/cdn_profile_module.rb +++ b/azure_sdk/lib/latest/modules/cdn_profile_module.rb @@ -71,18 +71,18 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CDN::Mgmt::V2017_04_02::CdnManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CDN::Mgmt::V2017_04_02::CdnManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @profiles = client_0.profiles - @endpoints = client_0.endpoints - @origins = client_0.origins - @custom_domains = client_0.custom_domains - @resource_usage_operations = client_0.resource_usage_operations - @operations = client_0.operations - @edge_nodes = client_0.edge_nodes + add_telemetry(@client_0) + @profiles = @client_0.profiles + @endpoints = @client_0.endpoints + @origins = @client_0.origins + @custom_domains = @client_0.custom_domains + @resource_usage_operations = @client_0.resource_usage_operations + @operations = @client_0.operations + @edge_nodes = @client_0.edge_nodes @model_classes = ModelClasses.new end @@ -92,6 +92,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def custom_domain_list_result Azure::CDN::Mgmt::V2017_04_02::Models::CustomDomainListResult diff --git a/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb b/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb index 0fc61f7fe..0668e8d0b 100644 --- a/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/cognitiveservices_profile_module.rb @@ -42,14 +42,14 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::Mgmt::V2017_04_18::CognitiveServicesManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::Mgmt::V2017_04_18::CognitiveServicesManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @accounts = client_0.accounts - @operations = client_0.operations - @check_sku_availability = client_0.check_sku_availability + add_telemetry(@client_0) + @accounts = @client_0.accounts + @operations = @client_0.operations + @check_sku_availability = @client_0.check_sku_availability @model_classes = ModelClasses.new end @@ -59,6 +59,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def cognitive_services_account_enumerate_skus_result Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountEnumerateSkusResult diff --git a/azure_sdk/lib/latest/modules/commerce_profile_module.rb b/azure_sdk/lib/latest/modules/commerce_profile_module.rb index 86815849d..35e53a536 100644 --- a/azure_sdk/lib/latest/modules/commerce_profile_module.rb +++ b/azure_sdk/lib/latest/modules/commerce_profile_module.rb @@ -31,13 +31,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Commerce::Mgmt::V2015_06_01_preview::UsageManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Commerce::Mgmt::V2015_06_01_preview::UsageManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @usage_aggregates = client_0.usage_aggregates - @rate_card = client_0.rate_card + add_telemetry(@client_0) + @usage_aggregates = @client_0.usage_aggregates + @rate_card = @client_0.rate_card @model_classes = ModelClasses.new end @@ -47,6 +47,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def meter_info Azure::Commerce::Mgmt::V2015_06_01_preview::Models::MeterInfo diff --git a/azure_sdk/lib/latest/modules/compute_profile_module.rb b/azure_sdk/lib/latest/modules/compute_profile_module.rb index 00e1649a3..b9941d06e 100644 --- a/azure_sdk/lib/latest/modules/compute_profile_module.rb +++ b/azure_sdk/lib/latest/modules/compute_profile_module.rb @@ -202,39 +202,39 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Compute::Mgmt::V2017_03_30::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Compute::Mgmt::V2017_03_30::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @disks = client_0.disks - @snapshots = client_0.snapshots - @virtual_machine_run_commands = client_0.virtual_machine_run_commands + add_telemetry(@client_0) + @disks = @client_0.disks + @snapshots = @client_0.snapshots + @virtual_machine_run_commands = @client_0.virtual_machine_run_commands - client_1 = Azure::Compute::Mgmt::V2017_09_01::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::Compute::Mgmt::V2017_09_01::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @resource_skus = client_1.resource_skus + add_telemetry(@client_1) + @resource_skus = @client_1.resource_skus - client_2 = Azure::Compute::Mgmt::V2017_12_01::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(client_2.respond_to?(:subscription_id)) - client_2.subscription_id = configurable.subscription_id + @client_2 = Azure::Compute::Mgmt::V2017_12_01::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_2.respond_to?(:subscription_id)) + @client_2.subscription_id = configurable.subscription_id end - add_telemetry(client_2) - @availability_sets = client_2.availability_sets - @virtual_machine_extension_images = client_2.virtual_machine_extension_images - @virtual_machine_extensions = client_2.virtual_machine_extensions - @virtual_machine_images = client_2.virtual_machine_images - @usage_operations = client_2.usage_operations - @virtual_machine_sizes = client_2.virtual_machine_sizes - @images = client_2.images - @virtual_machines = client_2.virtual_machines - @virtual_machine_scale_sets = client_2.virtual_machine_scale_sets - @virtual_machine_scale_set_extensions = client_2.virtual_machine_scale_set_extensions - @virtual_machine_scale_set_rolling_upgrades = client_2.virtual_machine_scale_set_rolling_upgrades - @virtual_machine_scale_set_vms = client_2.virtual_machine_scale_set_vms + add_telemetry(@client_2) + @availability_sets = @client_2.availability_sets + @virtual_machine_extension_images = @client_2.virtual_machine_extension_images + @virtual_machine_extensions = @client_2.virtual_machine_extensions + @virtual_machine_images = @client_2.virtual_machine_images + @usage_operations = @client_2.usage_operations + @virtual_machine_sizes = @client_2.virtual_machine_sizes + @images = @client_2.images + @virtual_machines = @client_2.virtual_machines + @virtual_machine_scale_sets = @client_2.virtual_machine_scale_sets + @virtual_machine_scale_set_extensions = @client_2.virtual_machine_scale_set_extensions + @virtual_machine_scale_set_rolling_upgrades = @client_2.virtual_machine_scale_set_rolling_upgrades + @virtual_machine_scale_set_vms = @client_2.virtual_machine_scale_set_vms @model_classes = ModelClasses.new end @@ -244,6 +244,18 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_2.respond_to?method + @client_2.send(method, *args) + elsif @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def run_command_input Azure::Compute::Mgmt::V2017_03_30::Models::RunCommandInput diff --git a/azure_sdk/lib/latest/modules/computervision_profile_module.rb b/azure_sdk/lib/latest/modules/computervision_profile_module.rb index d52efb358..0933230a5 100644 --- a/azure_sdk/lib/latest/modules/computervision_profile_module.rb +++ b/azure_sdk/lib/latest/modules/computervision_profile_module.rb @@ -52,11 +52,11 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::ComputerVision::V1_0::ComputerVisionClient.new(configurable.credentials, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::ComputerVision::V1_0::ComputerVisionClient.new(configurable.credentials, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) + add_telemetry(@client_0) @model_classes = ModelClasses.new end @@ -66,6 +66,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def image_description_details Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageDescriptionDetails diff --git a/azure_sdk/lib/latest/modules/consumption_profile_module.rb b/azure_sdk/lib/latest/modules/consumption_profile_module.rb index 9c6bcd5e0..d4043a80d 100644 --- a/azure_sdk/lib/latest/modules/consumption_profile_module.rb +++ b/azure_sdk/lib/latest/modules/consumption_profile_module.rb @@ -28,13 +28,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Consumption::Mgmt::V2017_04_24_preview::ConsumptionManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Consumption::Mgmt::V2017_04_24_preview::ConsumptionManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @usage_details = client_0.usage_details - @operations = client_0.operations + add_telemetry(@client_0) + @usage_details = @client_0.usage_details + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -44,6 +44,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def error_response Azure::Consumption::Mgmt::V2017_04_24_preview::Models::ErrorResponse diff --git a/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb b/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb index 5f59150e2..a37875382 100644 --- a/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerinstance_profile_module.rb @@ -41,13 +41,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::ContainerInstance::Mgmt::V2017_08_01_preview::ContainerInstanceManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ContainerInstance::Mgmt::V2017_08_01_preview::ContainerInstanceManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @container_groups = client_0.container_groups - @container_logs = client_0.container_logs + add_telemetry(@client_0) + @container_groups = @client_0.container_groups + @container_logs = @client_0.container_logs @model_classes = ModelClasses.new end @@ -57,6 +57,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def container Azure::ContainerInstance::Mgmt::V2017_08_01_preview::Models::Container diff --git a/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb b/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb index 325f6e87b..4d8b6d82a 100644 --- a/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerregistry_profile_module.rb @@ -63,15 +63,15 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::ContainerRegistry::Mgmt::V2017_10_01::ContainerRegistryManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ContainerRegistry::Mgmt::V2017_10_01::ContainerRegistryManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @registries = client_0.registries - @operations = client_0.operations - @replications = client_0.replications - @webhooks = client_0.webhooks + add_telemetry(@client_0) + @registries = @client_0.registries + @operations = @client_0.operations + @replications = @client_0.replications + @webhooks = @client_0.webhooks @model_classes = ModelClasses.new end @@ -81,6 +81,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def replication_update_parameters Azure::ContainerRegistry::Mgmt::V2017_10_01::Models::ReplicationUpdateParameters diff --git a/azure_sdk/lib/latest/modules/containerservice_profile_module.rb b/azure_sdk/lib/latest/modules/containerservice_profile_module.rb index 48e644add..d6d8cdaf8 100644 --- a/azure_sdk/lib/latest/modules/containerservice_profile_module.rb +++ b/azure_sdk/lib/latest/modules/containerservice_profile_module.rb @@ -34,12 +34,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::ContainerService::Mgmt::V2017_01_31::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ContainerService::Mgmt::V2017_01_31::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @container_services = client_0.container_services + add_telemetry(@client_0) + @container_services = @client_0.container_services @model_classes = ModelClasses.new end @@ -49,6 +49,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def container_service_ssh_public_key Azure::ContainerService::Mgmt::V2017_01_31::Models::ContainerServiceSshPublicKey diff --git a/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb b/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb index 0e828d491..239704af7 100644 --- a/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb +++ b/azure_sdk/lib/latest/modules/contentmoderator_profile_module.rb @@ -81,18 +81,18 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::ContentModerator::V1_0::ContentModeratorClient.new(configurable.credentials, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::ContentModerator::V1_0::ContentModeratorClient.new(configurable.credentials, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @image_moderation = client_0.image_moderation - @text_moderation = client_0.text_moderation - @list_management_image_lists = client_0.list_management_image_lists - @list_management_term_lists = client_0.list_management_term_lists - @list_management_image = client_0.list_management_image - @list_management_term = client_0.list_management_term - @reviews = client_0.reviews + add_telemetry(@client_0) + @image_moderation = @client_0.image_moderation + @text_moderation = @client_0.text_moderation + @list_management_image_lists = @client_0.list_management_image_lists + @list_management_term_lists = @client_0.list_management_term_lists + @list_management_image = @client_0.list_management_image + @list_management_term = @client_0.list_management_term + @reviews = @client_0.reviews @model_classes = ModelClasses.new end @@ -102,6 +102,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def image Azure::CognitiveServices::ContentModerator::V1_0::Models::Image diff --git a/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb b/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb index 054b51a9e..7e7dfa8e0 100644 --- a/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb +++ b/azure_sdk/lib/latest/modules/customerinsights_profile_module.rb @@ -138,28 +138,28 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CustomerInsights::Mgmt::V2017_04_26::CustomerInsightsManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CustomerInsights::Mgmt::V2017_04_26::CustomerInsightsManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @hubs = client_0.hubs - @profiles = client_0.profiles - @interactions = client_0.interactions - @relationships = client_0.relationships - @relationship_links = client_0.relationship_links - @authorization_policies = client_0.authorization_policies - @connectors = client_0.connectors - @connector_mappings = client_0.connector_mappings - @kpi = client_0.kpi - @widget_types = client_0.widget_types - @views = client_0.views - @links = client_0.links - @roles = client_0.roles - @role_assignments = client_0.role_assignments - @images = client_0.images - @predictions = client_0.predictions + add_telemetry(@client_0) + @operations = @client_0.operations + @hubs = @client_0.hubs + @profiles = @client_0.profiles + @interactions = @client_0.interactions + @relationships = @client_0.relationships + @relationship_links = @client_0.relationship_links + @authorization_policies = @client_0.authorization_policies + @connectors = @client_0.connectors + @connector_mappings = @client_0.connector_mappings + @kpi = @client_0.kpi + @widget_types = @client_0.widget_types + @views = @client_0.views + @links = @client_0.links + @roles = @client_0.roles + @role_assignments = @client_0.role_assignments + @images = @client_0.images + @predictions = @client_0.predictions @model_classes = ModelClasses.new end @@ -169,6 +169,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def kpi_list_result Azure::CustomerInsights::Mgmt::V2017_04_26::Models::KpiListResult diff --git a/azure_sdk/lib/latest/modules/customsearch_profile_module.rb b/azure_sdk/lib/latest/modules/customsearch_profile_module.rb index 29c40e0c2..1ff1d12b0 100644 --- a/azure_sdk/lib/latest/modules/customsearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/customsearch_profile_module.rb @@ -36,12 +36,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::CustomSearch::V1_0::CustomSearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::CustomSearch::V1_0::CustomSearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @custom_instance = client_0.custom_instance + add_telemetry(@client_0) + @custom_instance = @client_0.custom_instance @model_classes = ModelClasses.new end @@ -51,6 +51,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def response_base Azure::CognitiveServices::CustomSearch::V1_0::Models::ResponseBase diff --git a/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb b/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb index 3a24fc93f..0cfce68ac 100644 --- a/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb +++ b/azure_sdk/lib/latest/modules/datalakeanalytics_profile_module.rb @@ -54,16 +54,16 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::DataLakeAnalyticsAccountManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::DataLakeAnalyticsAccountManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @compute_policies = client_0.compute_policies - @firewall_rules = client_0.firewall_rules - @storage_accounts = client_0.storage_accounts - @data_lake_store_accounts = client_0.data_lake_store_accounts - @account = client_0.account + add_telemetry(@client_0) + @compute_policies = @client_0.compute_policies + @firewall_rules = @client_0.firewall_rules + @storage_accounts = @client_0.storage_accounts + @data_lake_store_accounts = @client_0.data_lake_store_accounts + @account = @client_0.account @model_classes = ModelClasses.new end @@ -73,6 +73,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def update_storage_account_parameters Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountParameters diff --git a/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb b/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb index 9a9f0e0d5..ee2bab284 100644 --- a/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb +++ b/azure_sdk/lib/latest/modules/datalakestore_profile_module.rb @@ -47,14 +47,14 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::DataLakeStore::Mgmt::V2016_11_01::DataLakeStoreAccountManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::DataLakeStore::Mgmt::V2016_11_01::DataLakeStoreAccountManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @firewall_rules = client_0.firewall_rules - @trusted_id_providers = client_0.trusted_id_providers - @account = client_0.account + add_telemetry(@client_0) + @firewall_rules = @client_0.firewall_rules + @trusted_id_providers = @client_0.trusted_id_providers + @account = @client_0.account @model_classes = ModelClasses.new end @@ -64,6 +64,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def update_key_vault_meta_info Azure::DataLakeStore::Mgmt::V2016_11_01::Models::UpdateKeyVaultMetaInfo diff --git a/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb b/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb index 4ed50b911..727049fb1 100644 --- a/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb +++ b/azure_sdk/lib/latest/modules/devtestlabs_profile_module.rb @@ -188,32 +188,32 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::DevTestLabs::Mgmt::V2016_05_15::DevTestLabsClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::DevTestLabs::Mgmt::V2016_05_15::DevTestLabsClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @labs = client_0.labs - @global_schedules = client_0.global_schedules - @artifact_sources = client_0.artifact_sources - @arm_templates = client_0.arm_templates - @artifacts = client_0.artifacts - @costs = client_0.costs - @custom_images = client_0.custom_images - @formulas = client_0.formulas - @gallery_images = client_0.gallery_images - @notification_channels = client_0.notification_channels - @policy_sets = client_0.policy_sets - @policies = client_0.policies - @schedules = client_0.schedules - @service_runners = client_0.service_runners - @users = client_0.users - @disks = client_0.disks - @environments = client_0.environments - @secrets = client_0.secrets - @virtual_machines = client_0.virtual_machines - @virtual_machine_schedules = client_0.virtual_machine_schedules - @virtual_networks = client_0.virtual_networks + add_telemetry(@client_0) + @labs = @client_0.labs + @global_schedules = @client_0.global_schedules + @artifact_sources = @client_0.artifact_sources + @arm_templates = @client_0.arm_templates + @artifacts = @client_0.artifacts + @costs = @client_0.costs + @custom_images = @client_0.custom_images + @formulas = @client_0.formulas + @gallery_images = @client_0.gallery_images + @notification_channels = @client_0.notification_channels + @policy_sets = @client_0.policy_sets + @policies = @client_0.policies + @schedules = @client_0.schedules + @service_runners = @client_0.service_runners + @users = @client_0.users + @disks = @client_0.disks + @environments = @client_0.environments + @secrets = @client_0.secrets + @virtual_machines = @client_0.virtual_machines + @virtual_machine_schedules = @client_0.virtual_machine_schedules + @virtual_networks = @client_0.virtual_networks @model_classes = ModelClasses.new end @@ -223,6 +223,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def formula_properties_from_vm Azure::DevTestLabs::Mgmt::V2016_05_15::Models::FormulaPropertiesFromVm diff --git a/azure_sdk/lib/latest/modules/dns_profile_module.rb b/azure_sdk/lib/latest/modules/dns_profile_module.rb index 0ac1e08fd..c32519b9d 100644 --- a/azure_sdk/lib/latest/modules/dns_profile_module.rb +++ b/azure_sdk/lib/latest/modules/dns_profile_module.rb @@ -38,13 +38,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Dns::Mgmt::V2016_04_01::DnsManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Dns::Mgmt::V2016_04_01::DnsManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @record_sets = client_0.record_sets - @zones = client_0.zones + add_telemetry(@client_0) + @record_sets = @client_0.record_sets + @zones = @client_0.zones @model_classes = ModelClasses.new end @@ -54,6 +54,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def record_set Azure::Dns::Mgmt::V2016_04_01::Models::RecordSet diff --git a/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb b/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb index 13ea0bb73..6068d9cad 100644 --- a/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/entitysearch_profile_module.rb @@ -63,12 +63,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::EntitySearch::V1_0::EntitySearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::EntitySearch::V1_0::EntitySearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @entities_operations = client_0.entities_operations + add_telemetry(@client_0) + @entities_operations = @client_0.entities_operations @model_classes = ModelClasses.new end @@ -78,6 +78,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def response_base Azure::CognitiveServices::EntitySearch::V1_0::Models::ResponseBase diff --git a/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb b/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb index 7adf6ceed..e3edf1559 100644 --- a/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb +++ b/azure_sdk/lib/latest/modules/eventgrid_profile_module.rb @@ -26,11 +26,11 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::EventGrid::V2018_01_01::EventGridClient.new(configurable.credentials, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::EventGrid::V2018_01_01::EventGridClient.new(configurable.credentials, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) + add_telemetry(@client_0) @model_classes = ModelClasses.new end @@ -40,6 +40,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def resource_write_cancel_data Azure::EventGrid::V2018_01_01::Models::ResourceWriteCancelData diff --git a/azure_sdk/lib/latest/modules/eventhub_profile_module.rb b/azure_sdk/lib/latest/modules/eventhub_profile_module.rb index 1ed296c0f..6d20def31 100644 --- a/azure_sdk/lib/latest/modules/eventhub_profile_module.rb +++ b/azure_sdk/lib/latest/modules/eventhub_profile_module.rb @@ -54,16 +54,16 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::EventHub::Mgmt::V2017_04_01::EventHubManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::EventHub::Mgmt::V2017_04_01::EventHubManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @namespaces = client_0.namespaces - @disaster_recovery_configs = client_0.disaster_recovery_configs - @event_hubs = client_0.event_hubs - @consumer_groups = client_0.consumer_groups + add_telemetry(@client_0) + @operations = @client_0.operations + @namespaces = @client_0.namespaces + @disaster_recovery_configs = @client_0.disaster_recovery_configs + @event_hubs = @client_0.event_hubs + @consumer_groups = @client_0.consumer_groups @model_classes = ModelClasses.new end @@ -73,6 +73,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def capture_description Azure::EventHub::Mgmt::V2017_04_01::Models::CaptureDescription diff --git a/azure_sdk/lib/latest/modules/face_profile_module.rb b/azure_sdk/lib/latest/modules/face_profile_module.rb index a8b2edd1a..0ab04da1f 100644 --- a/azure_sdk/lib/latest/modules/face_profile_module.rb +++ b/azure_sdk/lib/latest/modules/face_profile_module.rb @@ -69,15 +69,15 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::Face::V1_0::FaceClient.new(configurable.credentials, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::Face::V1_0::FaceClient.new(configurable.credentials, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @face = client_0.face - @person = client_0.person - @person_group = client_0.person_group - @face_list = client_0.face_list + add_telemetry(@client_0) + @face = @client_0.face + @person = @client_0.person + @person_group = @client_0.person_group + @face_list = @client_0.face_list @model_classes = ModelClasses.new end @@ -87,6 +87,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def similar_face_result Azure::CognitiveServices::Face::V1_0::Models::SimilarFaceResult diff --git a/azure_sdk/lib/latest/modules/features_profile_module.rb b/azure_sdk/lib/latest/modules/features_profile_module.rb index f8880c810..8506a7a4a 100644 --- a/azure_sdk/lib/latest/modules/features_profile_module.rb +++ b/azure_sdk/lib/latest/modules/features_profile_module.rb @@ -21,12 +21,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @features = client_0.features + add_telemetry(@client_0) + @features = @client_0.features @model_classes = ModelClasses.new end @@ -36,6 +36,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def feature_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult diff --git a/azure_sdk/lib/latest/modules/graphrbac_profile_module.rb b/azure_sdk/lib/latest/modules/graphrbac_profile_module.rb index 0524eca53..e6a6db332 100644 --- a/azure_sdk/lib/latest/modules/graphrbac_profile_module.rb +++ b/azure_sdk/lib/latest/modules/graphrbac_profile_module.rb @@ -61,17 +61,17 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::GraphRbac::V1_6::GraphRbacClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::GraphRbac::V1_6::GraphRbacClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @objects = client_0.objects - @applications = client_0.applications - @groups = client_0.groups - @service_principals = client_0.service_principals - @users = client_0.users - @domains = client_0.domains + add_telemetry(@client_0) + @objects = @client_0.objects + @applications = @client_0.applications + @groups = @client_0.groups + @service_principals = @client_0.service_principals + @users = @client_0.users + @domains = @client_0.domains @model_classes = ModelClasses.new end @@ -81,6 +81,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def group_get_member_groups_parameters Azure::GraphRbac::V1_6::Models::GroupGetMemberGroupsParameters diff --git a/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb b/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb index 17c87a2d4..09b3f7825 100644 --- a/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/imagesearch_profile_module.rb @@ -75,12 +75,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::ImageSearch::V1_0::ImageSearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::ImageSearch::V1_0::ImageSearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @images_operations = client_0.images_operations + add_telemetry(@client_0) + @images_operations = @client_0.images_operations @model_classes = ModelClasses.new end @@ -90,6 +90,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def related_searches_module Azure::CognitiveServices::ImageSearch::V1_0::Models::RelatedSearchesModule diff --git a/azure_sdk/lib/latest/modules/iothub_profile_module.rb b/azure_sdk/lib/latest/modules/iothub_profile_module.rb index ccded6ddc..d97365d99 100644 --- a/azure_sdk/lib/latest/modules/iothub_profile_module.rb +++ b/azure_sdk/lib/latest/modules/iothub_profile_module.rb @@ -78,14 +78,14 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::IotHub::Mgmt::V2017_07_01::IotHubClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::IotHub::Mgmt::V2017_07_01::IotHubClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @iot_hub_resource = client_0.iot_hub_resource - @certificates = client_0.certificates + add_telemetry(@client_0) + @operations = @client_0.operations + @iot_hub_resource = @client_0.iot_hub_resource + @certificates = @client_0.certificates @model_classes = ModelClasses.new end @@ -95,6 +95,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def iot_hub_properties Azure::IotHub::Mgmt::V2017_07_01::Models::IotHubProperties diff --git a/azure_sdk/lib/latest/modules/keyvault_profile_module.rb b/azure_sdk/lib/latest/modules/keyvault_profile_module.rb index ed7cedee8..c76f9d345 100644 --- a/azure_sdk/lib/latest/modules/keyvault_profile_module.rb +++ b/azure_sdk/lib/latest/modules/keyvault_profile_module.rb @@ -36,12 +36,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::KeyVault::Mgmt::V2016_10_01::KeyVaultManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::KeyVault::Mgmt::V2016_10_01::KeyVaultManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @vaults = client_0.vaults + add_telemetry(@client_0) + @vaults = @client_0.vaults @model_classes = ModelClasses.new end @@ -51,6 +51,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def vault_create_or_update_parameters Azure::KeyVault::Mgmt::V2016_10_01::Models::VaultCreateOrUpdateParameters diff --git a/azure_sdk/lib/latest/modules/links_profile_module.rb b/azure_sdk/lib/latest/modules/links_profile_module.rb index 889a235ae..3ec03e154 100644 --- a/azure_sdk/lib/latest/modules/links_profile_module.rb +++ b/azure_sdk/lib/latest/modules/links_profile_module.rb @@ -23,12 +23,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @resource_links = client_0.resource_links + add_telemetry(@client_0) + @resource_links = @client_0.resource_links @model_classes = ModelClasses.new end @@ -38,6 +38,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def resource_link Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink diff --git a/azure_sdk/lib/latest/modules/locks_profile_module.rb b/azure_sdk/lib/latest/modules/locks_profile_module.rb index a88b349cf..9bce121ab 100644 --- a/azure_sdk/lib/latest/modules/locks_profile_module.rb +++ b/azure_sdk/lib/latest/modules/locks_profile_module.rb @@ -22,12 +22,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Locks::Mgmt::V2016_09_01::ManagementLockClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Locks::Mgmt::V2016_09_01::ManagementLockClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @management_locks = client_0.management_locks + add_telemetry(@client_0) + @management_locks = @client_0.management_locks @model_classes = ModelClasses.new end @@ -37,6 +37,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def management_lock_object Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject diff --git a/azure_sdk/lib/latest/modules/logic_profile_module.rb b/azure_sdk/lib/latest/modules/logic_profile_module.rb index 9c9fb80a7..6ec707213 100644 --- a/azure_sdk/lib/latest/modules/logic_profile_module.rb +++ b/azure_sdk/lib/latest/modules/logic_profile_module.rb @@ -165,24 +165,24 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Logic::Mgmt::V2016_06_01::LogicManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Logic::Mgmt::V2016_06_01::LogicManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @workflows = client_0.workflows - @workflow_versions = client_0.workflow_versions - @workflow_triggers = client_0.workflow_triggers - @workflow_trigger_histories = client_0.workflow_trigger_histories - @workflow_runs = client_0.workflow_runs - @workflow_run_actions = client_0.workflow_run_actions - @integration_accounts = client_0.integration_accounts - @schemas = client_0.schemas - @maps = client_0.maps - @partners = client_0.partners - @agreements = client_0.agreements - @certificates = client_0.certificates - @sessions = client_0.sessions + add_telemetry(@client_0) + @workflows = @client_0.workflows + @workflow_versions = @client_0.workflow_versions + @workflow_triggers = @client_0.workflow_triggers + @workflow_trigger_histories = @client_0.workflow_trigger_histories + @workflow_runs = @client_0.workflow_runs + @workflow_run_actions = @client_0.workflow_run_actions + @integration_accounts = @client_0.integration_accounts + @schemas = @client_0.schemas + @maps = @client_0.maps + @partners = @client_0.partners + @agreements = @client_0.agreements + @certificates = @client_0.certificates + @sessions = @client_0.sessions @model_classes = ModelClasses.new end @@ -192,6 +192,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def integration_account_partner_filter Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountPartnerFilter diff --git a/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb b/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb index 55dc5ccde..668c1bc58 100644 --- a/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb +++ b/azure_sdk/lib/latest/modules/machinelearning_profile_module.rb @@ -55,12 +55,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::MachineLearning::Mgmt::V2017_01_01::AzureMLWebServicesManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::MachineLearning::Mgmt::V2017_01_01::AzureMLWebServicesManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @web_services = client_0.web_services + add_telemetry(@client_0) + @web_services = @client_0.web_services @model_classes = ModelClasses.new end @@ -70,6 +70,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def mode_value_info Azure::MachineLearning::Mgmt::V2017_01_01::Models::ModeValueInfo diff --git a/azure_sdk/lib/latest/modules/managedapplications_profile_module.rb b/azure_sdk/lib/latest/modules/managedapplications_profile_module.rb index eb93d2054..902421f90 100644 --- a/azure_sdk/lib/latest/modules/managedapplications_profile_module.rb +++ b/azure_sdk/lib/latest/modules/managedapplications_profile_module.rb @@ -37,13 +37,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::ManagedApplicationClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::ManagedApplicationClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @appliances = client_0.appliances - @appliance_definitions = client_0.appliance_definitions + add_telemetry(@client_0) + @appliances = @client_0.appliances + @appliance_definitions = @client_0.appliance_definitions @model_classes = ModelClasses.new end @@ -53,6 +53,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def sku Azure::ManagedApplications::Mgmt::V2016_09_01_preview::Models::Sku diff --git a/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb b/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb index 40c10b1ea..cf21356f1 100644 --- a/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb +++ b/azure_sdk/lib/latest/modules/managedserviceidentity_profile_module.rb @@ -25,13 +25,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::ManagedServiceIdentityClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::ManagedServiceIdentityClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @user_assigned_identities = client_0.user_assigned_identities + add_telemetry(@client_0) + @operations = @client_0.operations + @user_assigned_identities = @client_0.user_assigned_identities @model_classes = ModelClasses.new end @@ -41,6 +41,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def identity Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::Models::Identity diff --git a/azure_sdk/lib/latest/modules/marketplaceordering_profile_module.rb b/azure_sdk/lib/latest/modules/marketplaceordering_profile_module.rb index db5332bf9..cc21544de 100644 --- a/azure_sdk/lib/latest/modules/marketplaceordering_profile_module.rb +++ b/azure_sdk/lib/latest/modules/marketplaceordering_profile_module.rb @@ -26,13 +26,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceOrderingAgreements.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceOrderingAgreements.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @marketplace_agreements = client_0.marketplace_agreements - @operations = client_0.operations + add_telemetry(@client_0) + @marketplace_agreements = @client_0.marketplace_agreements + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -42,6 +42,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def operation_display Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay diff --git a/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb b/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb index 46d2f28fa..5785b8a7a 100644 --- a/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/mediaservices_profile_module.rb @@ -37,13 +37,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::MediaServices::Mgmt::V2015_10_01::MediaServicesManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::MediaServices::Mgmt::V2015_10_01::MediaServicesManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @media_service_operations = client_0.media_service_operations + add_telemetry(@client_0) + @operations = @client_0.operations + @media_service_operations = @client_0.media_service_operations @model_classes = ModelClasses.new end @@ -53,6 +53,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def regenerate_key_input Azure::MediaServices::Mgmt::V2015_10_01::Models::RegenerateKeyInput diff --git a/azure_sdk/lib/latest/modules/mobileengagement_profile_module.rb b/azure_sdk/lib/latest/modules/mobileengagement_profile_module.rb index 3ea41ce94..e5606cee5 100644 --- a/azure_sdk/lib/latest/modules/mobileengagement_profile_module.rb +++ b/azure_sdk/lib/latest/modules/mobileengagement_profile_module.rb @@ -113,18 +113,18 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::MobileEngagement::Mgmt::V2014_12_01::EngagementManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::MobileEngagement::Mgmt::V2014_12_01::EngagementManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @app_collections = client_0.app_collections - @apps = client_0.apps - @supported_platforms = client_0.supported_platforms - @campaigns = client_0.campaigns - @devices = client_0.devices - @export_tasks = client_0.export_tasks - @import_tasks = client_0.import_tasks + add_telemetry(@client_0) + @app_collections = @client_0.app_collections + @apps = @client_0.apps + @supported_platforms = @client_0.supported_platforms + @campaigns = @client_0.campaigns + @devices = @client_0.devices + @export_tasks = @client_0.export_tasks + @import_tasks = @client_0.import_tasks @model_classes = ModelClasses.new end @@ -134,6 +134,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def campaign_state Azure::MobileEngagement::Mgmt::V2014_12_01::Models::CampaignState diff --git a/azure_sdk/lib/latest/modules/monitor_profile_module.rb b/azure_sdk/lib/latest/modules/monitor_profile_module.rb index d7c389aaa..313b15712 100644 --- a/azure_sdk/lib/latest/modules/monitor_profile_module.rb +++ b/azure_sdk/lib/latest/modules/monitor_profile_module.rb @@ -96,38 +96,38 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Monitor::Mgmt::V2015_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Monitor::Mgmt::V2015_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @autoscale_settings = client_0.autoscale_settings - @operations = client_0.operations + add_telemetry(@client_0) + @autoscale_settings = @client_0.autoscale_settings + @operations = @client_0.operations - client_1 = Azure::Monitor::Mgmt::V2016_03_01::MonitorManagementClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::Monitor::Mgmt::V2016_03_01::MonitorManagementClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @alert_rule_incidents = client_1.alert_rule_incidents - @alert_rules = client_1.alert_rules - @log_profiles = client_1.log_profiles + add_telemetry(@client_1) + @alert_rule_incidents = @client_1.alert_rule_incidents + @alert_rules = @client_1.alert_rules + @log_profiles = @client_1.log_profiles - client_2 = Azure::Monitor::Mgmt::V2017_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options) - if(client_2.respond_to?(:subscription_id)) - client_2.subscription_id = configurable.subscription_id + @client_2 = Azure::Monitor::Mgmt::V2017_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options) + if(@client_2.respond_to?(:subscription_id)) + @client_2.subscription_id = configurable.subscription_id end - add_telemetry(client_2) - @action_groups = client_2.action_groups - @activity_log_alerts = client_2.activity_log_alerts + add_telemetry(@client_2) + @action_groups = @client_2.action_groups + @activity_log_alerts = @client_2.activity_log_alerts - client_3 = Azure::Monitor::Mgmt::V2017_05_01_preview::MonitorClient.new(configurable.credentials, base_url, options) - if(client_3.respond_to?(:subscription_id)) - client_3.subscription_id = configurable.subscription_id + @client_3 = Azure::Monitor::Mgmt::V2017_05_01_preview::MonitorClient.new(configurable.credentials, base_url, options) + if(@client_3.respond_to?(:subscription_id)) + @client_3.subscription_id = configurable.subscription_id end - add_telemetry(client_3) - @diagnostic_settings_category_operations = client_3.diagnostic_settings_category_operations - @diagnostic_settings_operations = client_3.diagnostic_settings_operations + add_telemetry(@client_3) + @diagnostic_settings_category_operations = @client_3.diagnostic_settings_category_operations + @diagnostic_settings_operations = @client_3.diagnostic_settings_operations @model_classes = ModelClasses.new end @@ -137,6 +137,20 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_3.respond_to?method + @client_3.send(method, *args) + elsif @client_2.respond_to?method + @client_2.send(method, *args) + elsif @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def email_notification Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification diff --git a/azure_sdk/lib/latest/modules/network_profile_module.rb b/azure_sdk/lib/latest/modules/network_profile_module.rb index e0910728e..fca1c61f9 100644 --- a/azure_sdk/lib/latest/modules/network_profile_module.rb +++ b/azure_sdk/lib/latest/modules/network_profile_module.rb @@ -318,46 +318,46 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Network::Mgmt::V2017_09_01::NetworkManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Network::Mgmt::V2017_09_01::NetworkManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @application_gateways = client_0.application_gateways - @application_security_groups = client_0.application_security_groups - @available_endpoint_services = client_0.available_endpoint_services - @express_route_circuit_authorizations = client_0.express_route_circuit_authorizations - @express_route_circuit_peerings = client_0.express_route_circuit_peerings - @express_route_circuits = client_0.express_route_circuits - @express_route_service_providers = client_0.express_route_service_providers - @load_balancers = client_0.load_balancers - @load_balancer_backend_address_pools = client_0.load_balancer_backend_address_pools - @load_balancer_frontend_ipconfigurations = client_0.load_balancer_frontend_ipconfigurations - @inbound_nat_rules = client_0.inbound_nat_rules - @load_balancer_load_balancing_rules = client_0.load_balancer_load_balancing_rules - @load_balancer_network_interfaces = client_0.load_balancer_network_interfaces - @load_balancer_probes = client_0.load_balancer_probes - @network_interfaces = client_0.network_interfaces - @network_interface_ipconfigurations = client_0.network_interface_ipconfigurations - @network_interface_load_balancers = client_0.network_interface_load_balancers - @network_security_groups = client_0.network_security_groups - @security_rules = client_0.security_rules - @default_security_rules = client_0.default_security_rules - @network_watchers = client_0.network_watchers - @packet_captures = client_0.packet_captures - @public_ipaddresses = client_0.public_ipaddresses - @route_filters = client_0.route_filters - @route_filter_rules = client_0.route_filter_rules - @bgp_service_communities = client_0.bgp_service_communities - @route_tables = client_0.route_tables - @routes = client_0.routes - @usages = client_0.usages - @virtual_networks = client_0.virtual_networks - @subnets = client_0.subnets - @virtual_network_peerings = client_0.virtual_network_peerings - @virtual_network_gateways = client_0.virtual_network_gateways - @virtual_network_gateway_connections = client_0.virtual_network_gateway_connections - @local_network_gateways = client_0.local_network_gateways + add_telemetry(@client_0) + @application_gateways = @client_0.application_gateways + @application_security_groups = @client_0.application_security_groups + @available_endpoint_services = @client_0.available_endpoint_services + @express_route_circuit_authorizations = @client_0.express_route_circuit_authorizations + @express_route_circuit_peerings = @client_0.express_route_circuit_peerings + @express_route_circuits = @client_0.express_route_circuits + @express_route_service_providers = @client_0.express_route_service_providers + @load_balancers = @client_0.load_balancers + @load_balancer_backend_address_pools = @client_0.load_balancer_backend_address_pools + @load_balancer_frontend_ipconfigurations = @client_0.load_balancer_frontend_ipconfigurations + @inbound_nat_rules = @client_0.inbound_nat_rules + @load_balancer_load_balancing_rules = @client_0.load_balancer_load_balancing_rules + @load_balancer_network_interfaces = @client_0.load_balancer_network_interfaces + @load_balancer_probes = @client_0.load_balancer_probes + @network_interfaces = @client_0.network_interfaces + @network_interface_ipconfigurations = @client_0.network_interface_ipconfigurations + @network_interface_load_balancers = @client_0.network_interface_load_balancers + @network_security_groups = @client_0.network_security_groups + @security_rules = @client_0.security_rules + @default_security_rules = @client_0.default_security_rules + @network_watchers = @client_0.network_watchers + @packet_captures = @client_0.packet_captures + @public_ipaddresses = @client_0.public_ipaddresses + @route_filters = @client_0.route_filters + @route_filter_rules = @client_0.route_filter_rules + @bgp_service_communities = @client_0.bgp_service_communities + @route_tables = @client_0.route_tables + @routes = @client_0.routes + @usages = @client_0.usages + @virtual_networks = @client_0.virtual_networks + @subnets = @client_0.subnets + @virtual_network_peerings = @client_0.virtual_network_peerings + @virtual_network_gateways = @client_0.virtual_network_gateways + @virtual_network_gateway_connections = @client_0.virtual_network_gateway_connections + @local_network_gateways = @client_0.local_network_gateways @model_classes = ModelClasses.new end @@ -367,6 +367,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def effective_network_security_group_list_result Azure::Network::Mgmt::V2017_09_01::Models::EffectiveNetworkSecurityGroupListResult diff --git a/azure_sdk/lib/latest/modules/newssearch_profile_module.rb b/azure_sdk/lib/latest/modules/newssearch_profile_module.rb index 882a7b2ed..46977190f 100644 --- a/azure_sdk/lib/latest/modules/newssearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/newssearch_profile_module.rb @@ -41,12 +41,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::NewsSearch::V1_0::NewsSearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::NewsSearch::V1_0::NewsSearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @news_operations = client_0.news_operations + add_telemetry(@client_0) + @news_operations = @client_0.news_operations @model_classes = ModelClasses.new end @@ -56,6 +56,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def response_base Azure::CognitiveServices::NewsSearch::V1_0::Models::ResponseBase diff --git a/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb b/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb index e8b4f3367..72910a6e0 100644 --- a/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb +++ b/azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb @@ -51,15 +51,15 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubsManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubsManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @namespaces = client_0.namespaces - @name = client_0.name - @notification_hubs = client_0.notification_hubs - @hubs = client_0.hubs + add_telemetry(@client_0) + @namespaces = @client_0.namespaces + @name = @client_0.name + @notification_hubs = @client_0.notification_hubs + @hubs = @client_0.hubs @model_classes = ModelClasses.new end @@ -69,6 +69,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def resource_list_keys Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys diff --git a/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb b/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb index b72fd2261..6258b8b48 100644 --- a/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb +++ b/azure_sdk/lib/latest/modules/operationalinsights_profile_module.rb @@ -62,22 +62,22 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::OperationalInsights::Mgmt::V2015_03_20::OperationalInsightsManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::OperationalInsights::Mgmt::V2015_03_20::OperationalInsightsManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @storage_insights = client_0.storage_insights - @saved_searches = client_0.saved_searches + add_telemetry(@client_0) + @storage_insights = @client_0.storage_insights + @saved_searches = @client_0.saved_searches - client_1 = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::AzureLogAnalytics.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::AzureLogAnalytics.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @linked_services = client_1.linked_services - @data_sources = client_1.data_sources - @workspaces = client_1.workspaces + add_telemetry(@client_1) + @linked_services = @client_1.linked_services + @data_sources = @client_1.data_sources + @workspaces = @client_1.workspaces @model_classes = ModelClasses.new end @@ -87,6 +87,16 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def search_schema_value Azure::OperationalInsights::Mgmt::V2015_03_20::Models::SearchSchemaValue diff --git a/azure_sdk/lib/latest/modules/policy_profile_module.rb b/azure_sdk/lib/latest/modules/policy_profile_module.rb index fa9d0e4be..3ecb4ecdf 100644 --- a/azure_sdk/lib/latest/modules/policy_profile_module.rb +++ b/azure_sdk/lib/latest/modules/policy_profile_module.rb @@ -31,20 +31,20 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Policy::Mgmt::V2016_12_01::PolicyClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Policy::Mgmt::V2016_12_01::PolicyClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @policy_definitions = client_0.policy_definitions + add_telemetry(@client_0) + @policy_definitions = @client_0.policy_definitions - client_1 = Azure::Policy::Mgmt::V2017_06_01_preview::PolicyClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::Policy::Mgmt::V2017_06_01_preview::PolicyClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @policy_assignments = client_1.policy_assignments - @policy_set_definitions = client_1.policy_set_definitions + add_telemetry(@client_1) + @policy_assignments = @client_1.policy_assignments + @policy_set_definitions = @client_1.policy_set_definitions @model_classes = ModelClasses.new end @@ -54,6 +54,16 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def policy_definition Azure::Policy::Mgmt::V2016_12_01::Models::PolicyDefinition diff --git a/azure_sdk/lib/latest/modules/powerbiembedded_profile_module.rb b/azure_sdk/lib/latest/modules/powerbiembedded_profile_module.rb index d8f6ea4ab..8ac203ed4 100644 --- a/azure_sdk/lib/latest/modules/powerbiembedded_profile_module.rb +++ b/azure_sdk/lib/latest/modules/powerbiembedded_profile_module.rb @@ -38,13 +38,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::PowerBIEmbeddedManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::PowerBIEmbeddedManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @workspace_collections = client_0.workspace_collections - @workspaces = client_0.workspaces + add_telemetry(@client_0) + @workspace_collections = @client_0.workspace_collections + @workspaces = @client_0.workspaces @model_classes = ModelClasses.new end @@ -54,6 +54,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def operation Azure::PowerBiEmbedded::Mgmt::V2016_01_29::Models::Operation diff --git a/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb b/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb index 85932733f..6749fb0ab 100644 --- a/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservices_profile_module.rb @@ -64,26 +64,26 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::RecoveryServices::Mgmt::V2016_06_01::RecoveryServicesClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::RecoveryServices::Mgmt::V2016_06_01::RecoveryServicesClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @vault_certificates = client_0.vault_certificates - @registered_identities = client_0.registered_identities - @replication_usages = client_0.replication_usages - @vaults = client_0.vaults - @operations = client_0.operations - @vault_extended_info_operations = client_0.vault_extended_info_operations - @usages = client_0.usages + add_telemetry(@client_0) + @vault_certificates = @client_0.vault_certificates + @registered_identities = @client_0.registered_identities + @replication_usages = @client_0.replication_usages + @vaults = @client_0.vaults + @operations = @client_0.operations + @vault_extended_info_operations = @client_0.vault_extended_info_operations + @usages = @client_0.usages - client_1 = Azure::RecoveryServices::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::RecoveryServices::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @backup_vault_configs = client_1.backup_vault_configs - @backup_storage_configs = client_1.backup_storage_configs + add_telemetry(@client_1) + @backup_vault_configs = @client_1.backup_vault_configs + @backup_storage_configs = @client_1.backup_storage_configs @model_classes = ModelClasses.new end @@ -93,6 +93,16 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def client_discovery_for_properties Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForProperties diff --git a/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb b/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb index 9803ae4a2..47e036133 100644 --- a/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservicesbackup_profile_module.rb @@ -209,54 +209,54 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations + add_telemetry(@client_0) + @operations = @client_0.operations - client_1 = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @backup_resource_vault_configs = client_1.backup_resource_vault_configs - @backup_engines = client_1.backup_engines - @protection_container_refresh_operation_results = client_1.protection_container_refresh_operation_results - @protection_containers = client_1.protection_containers - @protection_container_operation_results = client_1.protection_container_operation_results - @protected_items = client_1.protected_items - @backups = client_1.backups - @protected_item_operation_results = client_1.protected_item_operation_results - @protected_item_operation_statuses = client_1.protected_item_operation_statuses - @recovery_points = client_1.recovery_points - @item_level_recovery_connections = client_1.item_level_recovery_connections - @restores = client_1.restores - @job_cancellations = client_1.job_cancellations - @job_operation_results = client_1.job_operation_results - @export_jobs_operation_results = client_1.export_jobs_operation_results - @jobs = client_1.jobs - @backup_operation_results = client_1.backup_operation_results - @backup_operation_statuses = client_1.backup_operation_statuses - @backup_policies = client_1.backup_policies - @protection_policies = client_1.protection_policies - @protection_policy_operation_results = client_1.protection_policy_operation_results - @protection_policy_operation_statuses = client_1.protection_policy_operation_statuses - @backup_protectable_items = client_1.backup_protectable_items - @backup_protected_items = client_1.backup_protected_items - @backup_protection_containers = client_1.backup_protection_containers - @security_pins = client_1.security_pins - @backup_resource_storage_configs = client_1.backup_resource_storage_configs - @backup_usage_summaries = client_1.backup_usage_summaries + add_telemetry(@client_1) + @backup_resource_vault_configs = @client_1.backup_resource_vault_configs + @backup_engines = @client_1.backup_engines + @protection_container_refresh_operation_results = @client_1.protection_container_refresh_operation_results + @protection_containers = @client_1.protection_containers + @protection_container_operation_results = @client_1.protection_container_operation_results + @protected_items = @client_1.protected_items + @backups = @client_1.backups + @protected_item_operation_results = @client_1.protected_item_operation_results + @protected_item_operation_statuses = @client_1.protected_item_operation_statuses + @recovery_points = @client_1.recovery_points + @item_level_recovery_connections = @client_1.item_level_recovery_connections + @restores = @client_1.restores + @job_cancellations = @client_1.job_cancellations + @job_operation_results = @client_1.job_operation_results + @export_jobs_operation_results = @client_1.export_jobs_operation_results + @jobs = @client_1.jobs + @backup_operation_results = @client_1.backup_operation_results + @backup_operation_statuses = @client_1.backup_operation_statuses + @backup_policies = @client_1.backup_policies + @protection_policies = @client_1.protection_policies + @protection_policy_operation_results = @client_1.protection_policy_operation_results + @protection_policy_operation_statuses = @client_1.protection_policy_operation_statuses + @backup_protectable_items = @client_1.backup_protectable_items + @backup_protected_items = @client_1.backup_protected_items + @backup_protection_containers = @client_1.backup_protection_containers + @security_pins = @client_1.security_pins + @backup_resource_storage_configs = @client_1.backup_resource_storage_configs + @backup_usage_summaries = @client_1.backup_usage_summaries - client_2 = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) - if(client_2.respond_to?(:subscription_id)) - client_2.subscription_id = configurable.subscription_id + @client_2 = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) + if(@client_2.respond_to?(:subscription_id)) + @client_2.subscription_id = configurable.subscription_id end - add_telemetry(client_2) - @backup_jobs = client_2.backup_jobs - @job_details = client_2.job_details + add_telemetry(@client_2) + @backup_jobs = @client_2.backup_jobs + @job_details = @client_2.job_details @model_classes = ModelClasses.new end @@ -266,6 +266,18 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_2.respond_to?method + @client_2.send(method, *args) + elsif @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def client_discovery_for_properties Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::Models::ClientDiscoveryForProperties diff --git a/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb b/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb index 6bb9e1183..ccd95fa07 100644 --- a/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb +++ b/azure_sdk/lib/latest/modules/recoveryservicessiterecovery_profile_module.rb @@ -362,31 +362,31 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::SiteRecoveryManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::SiteRecoveryManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @replication_vault_health = client_0.replication_vault_health - @replication_protected_items = client_0.replication_protected_items - @replication_network_mappings = client_0.replication_network_mappings - @replication_fabrics = client_0.replication_fabrics - @replicationv_centers = client_0.replicationv_centers - @replication_storage_classification_mappings = client_0.replication_storage_classification_mappings - @replication_storage_classifications = client_0.replication_storage_classifications - @replication_recovery_services_providers = client_0.replication_recovery_services_providers - @recovery_points = client_0.recovery_points - @replication_recovery_plans = client_0.replication_recovery_plans - @replication_protection_containers = client_0.replication_protection_containers - @replication_protection_container_mappings = client_0.replication_protection_container_mappings - @replication_protectable_items = client_0.replication_protectable_items - @replication_policies = client_0.replication_policies - @operations = client_0.operations - @replication_networks = client_0.replication_networks - @replication_logical_networks = client_0.replication_logical_networks - @replication_jobs = client_0.replication_jobs - @replication_events = client_0.replication_events - @replication_alert_settings = client_0.replication_alert_settings + add_telemetry(@client_0) + @replication_vault_health = @client_0.replication_vault_health + @replication_protected_items = @client_0.replication_protected_items + @replication_network_mappings = @client_0.replication_network_mappings + @replication_fabrics = @client_0.replication_fabrics + @replicationv_centers = @client_0.replicationv_centers + @replication_storage_classification_mappings = @client_0.replication_storage_classification_mappings + @replication_storage_classifications = @client_0.replication_storage_classifications + @replication_recovery_services_providers = @client_0.replication_recovery_services_providers + @recovery_points = @client_0.recovery_points + @replication_recovery_plans = @client_0.replication_recovery_plans + @replication_protection_containers = @client_0.replication_protection_containers + @replication_protection_container_mappings = @client_0.replication_protection_container_mappings + @replication_protectable_items = @client_0.replication_protectable_items + @replication_policies = @client_0.replication_policies + @operations = @client_0.operations + @replication_networks = @client_0.replication_networks + @replication_logical_networks = @client_0.replication_logical_networks + @replication_jobs = @client_0.replication_jobs + @replication_events = @client_0.replication_events + @replication_alert_settings = @client_0.replication_alert_settings @model_classes = ModelClasses.new end @@ -396,6 +396,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def storage_classification_properties Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::StorageClassificationProperties diff --git a/azure_sdk/lib/latest/modules/redis_profile_module.rb b/azure_sdk/lib/latest/modules/redis_profile_module.rb index 21dba70cf..06d4380c9 100644 --- a/azure_sdk/lib/latest/modules/redis_profile_module.rb +++ b/azure_sdk/lib/latest/modules/redis_profile_module.rb @@ -54,16 +54,16 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Redis::Mgmt::V2017_02_01::RedisManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Redis::Mgmt::V2017_02_01::RedisManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @redis = client_0.redis - @firewall_rules = client_0.firewall_rules - @patch_schedules = client_0.patch_schedules - @redis_linked_server_operations = client_0.redis_linked_server_operations + add_telemetry(@client_0) + @operations = @client_0.operations + @redis = @client_0.redis + @firewall_rules = @client_0.firewall_rules + @patch_schedules = @client_0.patch_schedules + @redis_linked_server_operations = @client_0.redis_linked_server_operations @model_classes = ModelClasses.new end @@ -73,6 +73,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def redis_list_result Azure::Redis::Mgmt::V2017_02_01::Models::RedisListResult diff --git a/azure_sdk/lib/latest/modules/relay_profile_module.rb b/azure_sdk/lib/latest/modules/relay_profile_module.rb index 30ee239cd..7cf3c45c6 100644 --- a/azure_sdk/lib/latest/modules/relay_profile_module.rb +++ b/azure_sdk/lib/latest/modules/relay_profile_module.rb @@ -48,15 +48,15 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Relay::Mgmt::V2017_04_01::RelayManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Relay::Mgmt::V2017_04_01::RelayManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @namespaces = client_0.namespaces - @hybrid_connections = client_0.hybrid_connections - @wcfrelays = client_0.wcfrelays + add_telemetry(@client_0) + @operations = @client_0.operations + @namespaces = @client_0.namespaces + @hybrid_connections = @client_0.hybrid_connections + @wcfrelays = @client_0.wcfrelays @model_classes = ModelClasses.new end @@ -66,6 +66,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def relay_namespace_list_result Azure::Relay::Mgmt::V2017_04_01::Models::RelayNamespaceListResult diff --git a/azure_sdk/lib/latest/modules/resources_profile_module.rb b/azure_sdk/lib/latest/modules/resources_profile_module.rb index 2e0eb8841..d2591120b 100644 --- a/azure_sdk/lib/latest/modules/resources_profile_module.rb +++ b/azure_sdk/lib/latest/modules/resources_profile_module.rb @@ -70,17 +70,17 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Resources::Mgmt::V2017_05_10::ResourceManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Resources::Mgmt::V2017_05_10::ResourceManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @deployments = client_0.deployments - @providers = client_0.providers - @resources = client_0.resources - @resource_groups = client_0.resource_groups - @tags = client_0.tags - @deployment_operations = client_0.deployment_operations + add_telemetry(@client_0) + @deployments = @client_0.deployments + @providers = @client_0.providers + @resources = @client_0.resources + @resource_groups = @client_0.resource_groups + @tags = @client_0.tags + @deployment_operations = @client_0.deployment_operations @model_classes = ModelClasses.new end @@ -90,6 +90,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def sku Azure::Resources::Mgmt::V2017_05_10::Models::Sku diff --git a/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb b/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb index 285312f26..bf9a1eb31 100644 --- a/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb +++ b/azure_sdk/lib/latest/modules/resourcesmanagement_profile_module.rb @@ -33,13 +33,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::ManagementGroupsAPI.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::ManagementGroupsAPI.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @management_groups = client_0.management_groups - @operations = client_0.operations + add_telemetry(@client_0) + @management_groups = @client_0.management_groups + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -49,6 +49,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def parent_group_info Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::Models::ParentGroupInfo diff --git a/azure_sdk/lib/latest/modules/scheduler_profile_module.rb b/azure_sdk/lib/latest/modules/scheduler_profile_module.rb index b900d524e..3d3a8119f 100644 --- a/azure_sdk/lib/latest/modules/scheduler_profile_module.rb +++ b/azure_sdk/lib/latest/modules/scheduler_profile_module.rb @@ -64,13 +64,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Scheduler::Mgmt::V2016_03_01::SchedulerManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Scheduler::Mgmt::V2016_03_01::SchedulerManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @job_collections = client_0.job_collections - @jobs = client_0.jobs + add_telemetry(@client_0) + @job_collections = @client_0.job_collections + @jobs = @client_0.jobs @model_classes = ModelClasses.new end @@ -80,6 +80,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def job_recurrence Azure::Scheduler::Mgmt::V2016_03_01::Models::JobRecurrence diff --git a/azure_sdk/lib/latest/modules/search_profile_module.rb b/azure_sdk/lib/latest/modules/search_profile_module.rb index 78986fc61..e430d2dbf 100644 --- a/azure_sdk/lib/latest/modules/search_profile_module.rb +++ b/azure_sdk/lib/latest/modules/search_profile_module.rb @@ -34,14 +34,14 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Search::Mgmt::V2015_08_19::SearchManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Search::Mgmt::V2015_08_19::SearchManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @admin_keys = client_0.admin_keys - @query_keys = client_0.query_keys - @services = client_0.services + add_telemetry(@client_0) + @admin_keys = @client_0.admin_keys + @query_keys = @client_0.query_keys + @services = @client_0.services @model_classes = ModelClasses.new end @@ -51,6 +51,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def sku Azure::Search::Mgmt::V2015_08_19::Models::Sku diff --git a/azure_sdk/lib/latest/modules/servermanagement_profile_module.rb b/azure_sdk/lib/latest/modules/servermanagement_profile_module.rb index eaf6bcefc..730ecd5e9 100644 --- a/azure_sdk/lib/latest/modules/servermanagement_profile_module.rb +++ b/azure_sdk/lib/latest/modules/servermanagement_profile_module.rb @@ -51,15 +51,15 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::ServerManagement::Mgmt::V2016_07_01_preview::ServerManagement.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ServerManagement::Mgmt::V2016_07_01_preview::ServerManagement.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @gateway = client_0.gateway - @node = client_0.node - @session = client_0.session - @power_shell = client_0.power_shell + add_telemetry(@client_0) + @gateway = @client_0.gateway + @node = @client_0.node + @session = @client_0.session + @power_shell = @client_0.power_shell @model_classes = ModelClasses.new end @@ -69,6 +69,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def version Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::Version diff --git a/azure_sdk/lib/latest/modules/servicebus_profile_module.rb b/azure_sdk/lib/latest/modules/servicebus_profile_module.rb index a0960f59c..da0f7d213 100644 --- a/azure_sdk/lib/latest/modules/servicebus_profile_module.rb +++ b/azure_sdk/lib/latest/modules/servicebus_profile_module.rb @@ -77,21 +77,21 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::ServiceBus::Mgmt::V2017_04_01::ServiceBusManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ServiceBus::Mgmt::V2017_04_01::ServiceBusManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @namespaces = client_0.namespaces - @disaster_recovery_configs = client_0.disaster_recovery_configs - @queues = client_0.queues - @topics = client_0.topics - @subscriptions = client_0.subscriptions - @rules = client_0.rules - @regions = client_0.regions - @premium_messaging_regions_operations = client_0.premium_messaging_regions_operations - @event_hubs = client_0.event_hubs + add_telemetry(@client_0) + @operations = @client_0.operations + @namespaces = @client_0.namespaces + @disaster_recovery_configs = @client_0.disaster_recovery_configs + @queues = @client_0.queues + @topics = @client_0.topics + @subscriptions = @client_0.subscriptions + @rules = @client_0.rules + @regions = @client_0.regions + @premium_messaging_regions_operations = @client_0.premium_messaging_regions_operations + @event_hubs = @client_0.event_hubs @model_classes = ModelClasses.new end @@ -101,6 +101,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def check_name_availability_result Azure::ServiceBus::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult diff --git a/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb b/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb index eb19dce75..034f8a750 100644 --- a/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb +++ b/azure_sdk/lib/latest/modules/servicefabric_profile_module.rb @@ -45,14 +45,14 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::ServiceFabric::Mgmt::V2016_09_01::ServiceFabricManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ServiceFabric::Mgmt::V2016_09_01::ServiceFabricManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @clusters = client_0.clusters - @cluster_versions = client_0.cluster_versions - @operations = client_0.operations + add_telemetry(@client_0) + @clusters = @client_0.clusters + @cluster_versions = @client_0.cluster_versions + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -62,6 +62,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def cluster_upgrade_policy Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpgradePolicy diff --git a/azure_sdk/lib/latest/modules/spellcheck_profile_module.rb b/azure_sdk/lib/latest/modules/spellcheck_profile_module.rb index 9996d9eee..7dfdcbc5c 100644 --- a/azure_sdk/lib/latest/modules/spellcheck_profile_module.rb +++ b/azure_sdk/lib/latest/modules/spellcheck_profile_module.rb @@ -30,11 +30,11 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::SpellCheck::V1_0::SpellCheckClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::SpellCheck::V1_0::SpellCheckClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) + add_telemetry(@client_0) @model_classes = ModelClasses.new end @@ -44,6 +44,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def spelling_token_suggestion Azure::CognitiveServices::SpellCheck::V1_0::Models::SpellingTokenSuggestion diff --git a/azure_sdk/lib/latest/modules/sql_profile_module.rb b/azure_sdk/lib/latest/modules/sql_profile_module.rb index 0a97349a9..c6cd51b9e 100644 --- a/azure_sdk/lib/latest/modules/sql_profile_module.rb +++ b/azure_sdk/lib/latest/modules/sql_profile_module.rb @@ -264,69 +264,69 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::SQL::Mgmt::V2014_04_01::SqlManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::SQL::Mgmt::V2014_04_01::SqlManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @backup_long_term_retention_policies = client_0.backup_long_term_retention_policies - @backup_long_term_retention_vaults = client_0.backup_long_term_retention_vaults - @restore_points = client_0.restore_points - @recoverable_databases = client_0.recoverable_databases - @restorable_dropped_databases = client_0.restorable_dropped_databases - @capabilities = client_0.capabilities - @server_connection_policies = client_0.server_connection_policies - @database_threat_detection_policies = client_0.database_threat_detection_policies - @data_masking_policies = client_0.data_masking_policies - @data_masking_rules = client_0.data_masking_rules - @transparent_data_encryption_configurations = client_0.transparent_data_encryption_configurations - @firewall_rules = client_0.firewall_rules - @geo_backup_policies = client_0.geo_backup_policies - @databases = client_0.databases - @elastic_pools = client_0.elastic_pools - @queries = client_0.queries - @query_statistics = client_0.query_statistics - @replication_links = client_0.replication_links - @server_azure_adadministrators = client_0.server_azure_adadministrators - @server_communication_links = client_0.server_communication_links - @service_objectives = client_0.service_objectives - @elastic_pool_activities = client_0.elastic_pool_activities - @elastic_pool_database_activities = client_0.elastic_pool_database_activities - @recommended_elastic_pools = client_0.recommended_elastic_pools - @service_tier_advisors = client_0.service_tier_advisors - @transparent_data_encryptions = client_0.transparent_data_encryptions - @transparent_data_encryption_activities = client_0.transparent_data_encryption_activities - @server_table_auditing_policies = client_0.server_table_auditing_policies - @database_table_auditing_policies = client_0.database_table_auditing_policies - @database_connection_policies = client_0.database_connection_policies - @server_usages = client_0.server_usages - @database_usages = client_0.database_usages + add_telemetry(@client_0) + @backup_long_term_retention_policies = @client_0.backup_long_term_retention_policies + @backup_long_term_retention_vaults = @client_0.backup_long_term_retention_vaults + @restore_points = @client_0.restore_points + @recoverable_databases = @client_0.recoverable_databases + @restorable_dropped_databases = @client_0.restorable_dropped_databases + @capabilities = @client_0.capabilities + @server_connection_policies = @client_0.server_connection_policies + @database_threat_detection_policies = @client_0.database_threat_detection_policies + @data_masking_policies = @client_0.data_masking_policies + @data_masking_rules = @client_0.data_masking_rules + @transparent_data_encryption_configurations = @client_0.transparent_data_encryption_configurations + @firewall_rules = @client_0.firewall_rules + @geo_backup_policies = @client_0.geo_backup_policies + @databases = @client_0.databases + @elastic_pools = @client_0.elastic_pools + @queries = @client_0.queries + @query_statistics = @client_0.query_statistics + @replication_links = @client_0.replication_links + @server_azure_adadministrators = @client_0.server_azure_adadministrators + @server_communication_links = @client_0.server_communication_links + @service_objectives = @client_0.service_objectives + @elastic_pool_activities = @client_0.elastic_pool_activities + @elastic_pool_database_activities = @client_0.elastic_pool_database_activities + @recommended_elastic_pools = @client_0.recommended_elastic_pools + @service_tier_advisors = @client_0.service_tier_advisors + @transparent_data_encryptions = @client_0.transparent_data_encryptions + @transparent_data_encryption_activities = @client_0.transparent_data_encryption_activities + @server_table_auditing_policies = @client_0.server_table_auditing_policies + @database_table_auditing_policies = @client_0.database_table_auditing_policies + @database_connection_policies = @client_0.database_connection_policies + @server_usages = @client_0.server_usages + @database_usages = @client_0.database_usages - client_1 = Azure::SQL::Mgmt::V2015_05_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::SQL::Mgmt::V2015_05_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @database_advisors = client_1.database_advisors - @database_recommended_actions = client_1.database_recommended_actions - @server_advisors = client_1.server_advisors - @database_blob_auditing_policies = client_1.database_blob_auditing_policies - @encryption_protectors = client_1.encryption_protectors - @failover_groups = client_1.failover_groups - @operations = client_1.operations - @server_keys = client_1.server_keys - @servers = client_1.servers - @sync_agents = client_1.sync_agents - @sync_groups = client_1.sync_groups - @sync_members = client_1.sync_members - @virtual_network_rules = client_1.virtual_network_rules + add_telemetry(@client_1) + @database_advisors = @client_1.database_advisors + @database_recommended_actions = @client_1.database_recommended_actions + @server_advisors = @client_1.server_advisors + @database_blob_auditing_policies = @client_1.database_blob_auditing_policies + @encryption_protectors = @client_1.encryption_protectors + @failover_groups = @client_1.failover_groups + @operations = @client_1.operations + @server_keys = @client_1.server_keys + @servers = @client_1.servers + @sync_agents = @client_1.sync_agents + @sync_groups = @client_1.sync_groups + @sync_members = @client_1.sync_members + @virtual_network_rules = @client_1.virtual_network_rules - client_2 = Azure::SQL::Mgmt::V2017_03_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) - if(client_2.respond_to?(:subscription_id)) - client_2.subscription_id = configurable.subscription_id + @client_2 = Azure::SQL::Mgmt::V2017_03_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) + if(@client_2.respond_to?(:subscription_id)) + @client_2.subscription_id = configurable.subscription_id end - add_telemetry(client_2) - @database_operations = client_2.database_operations + add_telemetry(@client_2) + @database_operations = @client_2.database_operations @model_classes = ModelClasses.new end @@ -336,6 +336,18 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_2.respond_to?method + @client_2.send(method, *args) + elsif @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def firewall_rule_list_result Azure::SQL::Mgmt::V2014_04_01::Models::FirewallRuleListResult diff --git a/azure_sdk/lib/latest/modules/storage_profile_module.rb b/azure_sdk/lib/latest/modules/storage_profile_module.rb index 1ab913dd0..3c1f86cf1 100644 --- a/azure_sdk/lib/latest/modules/storage_profile_module.rb +++ b/azure_sdk/lib/latest/modules/storage_profile_module.rb @@ -78,15 +78,15 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Storage::Mgmt::V2017_10_01::StorageManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Storage::Mgmt::V2017_10_01::StorageManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @skus = client_0.skus - @storage_accounts = client_0.storage_accounts - @usage_operations = client_0.usage_operations + add_telemetry(@client_0) + @operations = @client_0.operations + @skus = @client_0.skus + @storage_accounts = @client_0.storage_accounts + @usage_operations = @client_0.usage_operations @model_classes = ModelClasses.new end @@ -96,6 +96,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def iprule Azure::Storage::Mgmt::V2017_10_01::Models::IPRule diff --git a/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb b/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb index da333033e..b47b2115b 100644 --- a/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb +++ b/azure_sdk/lib/latest/modules/storsimple8000series_profile_module.rb @@ -192,27 +192,27 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::StorSimple8000Series::Mgmt::V2017_06_01::StorSimple8000SeriesManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::StorSimple8000Series::Mgmt::V2017_06_01::StorSimple8000SeriesManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @managers = client_0.managers - @access_control_records = client_0.access_control_records - @alerts = client_0.alerts - @bandwidth_settings = client_0.bandwidth_settings - @cloud_appliances = client_0.cloud_appliances - @devices = client_0.devices - @device_settings = client_0.device_settings - @backup_policies = client_0.backup_policies - @backup_schedules = client_0.backup_schedules - @backups = client_0.backups - @hardware_component_groups = client_0.hardware_component_groups - @jobs = client_0.jobs - @volume_containers = client_0.volume_containers - @volumes = client_0.volumes - @storage_account_credentials = client_0.storage_account_credentials + add_telemetry(@client_0) + @operations = @client_0.operations + @managers = @client_0.managers + @access_control_records = @client_0.access_control_records + @alerts = @client_0.alerts + @bandwidth_settings = @client_0.bandwidth_settings + @cloud_appliances = @client_0.cloud_appliances + @devices = @client_0.devices + @device_settings = @client_0.device_settings + @backup_policies = @client_0.backup_policies + @backup_schedules = @client_0.backup_schedules + @backups = @client_0.backups + @hardware_component_groups = @client_0.hardware_component_groups + @jobs = @client_0.jobs + @volume_containers = @client_0.volume_containers + @volumes = @client_0.volumes + @storage_account_credentials = @client_0.storage_account_credentials @model_classes = ModelClasses.new end @@ -222,6 +222,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def target_eligibility_result Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::TargetEligibilityResult diff --git a/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb b/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb index 8f48738ae..dc2f034e2 100644 --- a/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb +++ b/azure_sdk/lib/latest/modules/streamanalytics_profile_module.rb @@ -96,18 +96,18 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::StreamAnalytics::Mgmt::V2016_03_01::StreamAnalyticsManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::StreamAnalytics::Mgmt::V2016_03_01::StreamAnalyticsManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @streaming_jobs = client_0.streaming_jobs - @inputs = client_0.inputs - @outputs = client_0.outputs - @transformations = client_0.transformations - @functions = client_0.functions - @subscriptions = client_0.subscriptions + add_telemetry(@client_0) + @operations = @client_0.operations + @streaming_jobs = @client_0.streaming_jobs + @inputs = @client_0.inputs + @outputs = @client_0.outputs + @transformations = @client_0.transformations + @functions = @client_0.functions + @subscriptions = @client_0.subscriptions @model_classes = ModelClasses.new end @@ -117,6 +117,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def azure_machine_learning_web_service_input_column Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::AzureMachineLearningWebServiceInputColumn diff --git a/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb b/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb index 2442b33cd..1cb7cd928 100644 --- a/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb +++ b/azure_sdk/lib/latest/modules/subscriptions_profile_module.rb @@ -28,13 +28,13 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @subscriptions = client_0.subscriptions - @tenants = client_0.tenants + add_telemetry(@client_0) + @subscriptions = @client_0.subscriptions + @tenants = @client_0.tenants @model_classes = ModelClasses.new end @@ -44,6 +44,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def subscription Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription diff --git a/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb b/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb index 8002f04a6..bf640470c 100644 --- a/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb +++ b/azure_sdk/lib/latest/modules/textanalytics_profile_module.rb @@ -31,11 +31,11 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::TextAnalytics::V2_0::TextAnalyticsClient.new(configurable.credentials, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::TextAnalytics::V2_0::TextAnalyticsClient.new(configurable.credentials, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) + add_telemetry(@client_0) @model_classes = ModelClasses.new end @@ -45,6 +45,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def input Azure::CognitiveServices::TextAnalytics::V2_0::Models::Input diff --git a/azure_sdk/lib/latest/modules/trafficmanager_profile_module.rb b/azure_sdk/lib/latest/modules/trafficmanager_profile_module.rb index 1ca4e7727..0dd04f03c 100644 --- a/azure_sdk/lib/latest/modules/trafficmanager_profile_module.rb +++ b/azure_sdk/lib/latest/modules/trafficmanager_profile_module.rb @@ -46,22 +46,22 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::TrafficManager::Mgmt::V2017_05_01::TrafficManagerManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::TrafficManager::Mgmt::V2017_05_01::TrafficManagerManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @endpoints = client_0.endpoints - @profiles = client_0.profiles - @geographic_hierarchies = client_0.geographic_hierarchies + add_telemetry(@client_0) + @endpoints = @client_0.endpoints + @profiles = @client_0.profiles + @geographic_hierarchies = @client_0.geographic_hierarchies - client_1 = Azure::TrafficManager::Mgmt::V2017_09_01_preview::TrafficManagerManagementClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::TrafficManager::Mgmt::V2017_09_01_preview::TrafficManagerManagementClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @heat_map = client_1.heat_map - @traffic_manager_user_metrics_keys = client_1.traffic_manager_user_metrics_keys + add_telemetry(@client_1) + @heat_map = @client_1.heat_map + @traffic_manager_user_metrics_keys = @client_1.traffic_manager_user_metrics_keys @model_classes = ModelClasses.new end @@ -71,6 +71,16 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def traffic_manager_name_availability Azure::TrafficManager::Mgmt::V2017_05_01::Models::TrafficManagerNameAvailability diff --git a/azure_sdk/lib/latest/modules/videosearch_profile_module.rb b/azure_sdk/lib/latest/modules/videosearch_profile_module.rb index 0caa827ee..e61e5b699 100644 --- a/azure_sdk/lib/latest/modules/videosearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/videosearch_profile_module.rb @@ -49,12 +49,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::VideoSearch::V1_0::VideoSearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::VideoSearch::V1_0::VideoSearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @videos_operations = client_0.videos_operations + add_telemetry(@client_0) + @videos_operations = @client_0.videos_operations @model_classes = ModelClasses.new end @@ -64,6 +64,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def trending_videos_category Azure::CognitiveServices::VideoSearch::V1_0::Models::TrendingVideosCategory diff --git a/azure_sdk/lib/latest/modules/web_profile_module.rb b/azure_sdk/lib/latest/modules/web_profile_module.rb index f0a9fcf8a..4373fc1d0 100644 --- a/azure_sdk/lib/latest/modules/web_profile_module.rb +++ b/azure_sdk/lib/latest/modules/web_profile_module.rb @@ -299,45 +299,45 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Web::Mgmt::V2015_04_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Web::Mgmt::V2015_04_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @domains = client_0.domains - @top_level_domains = client_0.top_level_domains + add_telemetry(@client_0) + @domains = @client_0.domains + @top_level_domains = @client_0.top_level_domains - client_1 = Azure::Web::Mgmt::V2015_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::Web::Mgmt::V2015_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @app_service_certificate_orders = client_1.app_service_certificate_orders + add_telemetry(@client_1) + @app_service_certificate_orders = @client_1.app_service_certificate_orders - client_2 = Azure::Web::Mgmt::V2016_03_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) - if(client_2.respond_to?(:subscription_id)) - client_2.subscription_id = configurable.subscription_id + @client_2 = Azure::Web::Mgmt::V2016_03_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) + if(@client_2.respond_to?(:subscription_id)) + @client_2.subscription_id = configurable.subscription_id end - add_telemetry(client_2) - @certificates = client_2.certificates - @deleted_web_apps = client_2.deleted_web_apps - @provider = client_2.provider - @recommendations = client_2.recommendations + add_telemetry(@client_2) + @certificates = @client_2.certificates + @deleted_web_apps = @client_2.deleted_web_apps + @provider = @client_2.provider + @recommendations = @client_2.recommendations - client_3 = Azure::Web::Mgmt::V2016_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) - if(client_3.respond_to?(:subscription_id)) - client_3.subscription_id = configurable.subscription_id + @client_3 = Azure::Web::Mgmt::V2016_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) + if(@client_3.respond_to?(:subscription_id)) + @client_3.subscription_id = configurable.subscription_id end - add_telemetry(client_3) - @web_apps = client_3.web_apps + add_telemetry(@client_3) + @web_apps = @client_3.web_apps - client_4 = Azure::Web::Mgmt::V2016_09_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) - if(client_4.respond_to?(:subscription_id)) - client_4.subscription_id = configurable.subscription_id + @client_4 = Azure::Web::Mgmt::V2016_09_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) + if(@client_4.respond_to?(:subscription_id)) + @client_4.subscription_id = configurable.subscription_id end - add_telemetry(client_4) - @app_service_environments = client_4.app_service_environments - @app_service_plans = client_4.app_service_plans + add_telemetry(@client_4) + @app_service_environments = @client_4.app_service_environments + @app_service_plans = @client_4.app_service_plans @model_classes = ModelClasses.new end @@ -347,6 +347,22 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_4.respond_to?method + @client_4.send(method, *args) + elsif @client_3.respond_to?method + @client_3.send(method, *args) + elsif @client_2.respond_to?method + @client_2.send(method, *args) + elsif @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def domain_recommendation_search_parameters Azure::Web::Mgmt::V2015_04_01::Models::DomainRecommendationSearchParameters diff --git a/azure_sdk/lib/latest/modules/websearch_profile_module.rb b/azure_sdk/lib/latest/modules/websearch_profile_module.rb index 42b941176..40181f2e7 100644 --- a/azure_sdk/lib/latest/modules/websearch_profile_module.rb +++ b/azure_sdk/lib/latest/modules/websearch_profile_module.rb @@ -58,12 +58,12 @@ module Azure::Profiles::Latest def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::CognitiveServices::WebSearch::V1_0::WebSearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::WebSearch::V1_0::WebSearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @web = client_0.web + add_telemetry(@client_0) + @web = @client_0.web @model_classes = ModelClasses.new end @@ -73,6 +73,14 @@ module Azure::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def ranking_ranking_item Azure::CognitiveServices::WebSearch::V1_0::Models::RankingRankingItem diff --git a/azure_sdk/lib/v2017_03_09/modules/compute_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/compute_profile_module.rb index b342ecbc6..165a5244a 100644 --- a/azure_sdk/lib/v2017_03_09/modules/compute_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/compute_profile_module.rb @@ -124,20 +124,20 @@ module Azure::Profiles::V2017_03_09 def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Compute::Mgmt::V2016_03_30::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Compute::Mgmt::V2016_03_30::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @availability_sets = client_0.availability_sets - @virtual_machine_extension_images = client_0.virtual_machine_extension_images - @virtual_machine_extensions = client_0.virtual_machine_extensions - @virtual_machine_images = client_0.virtual_machine_images - @usage_operations = client_0.usage_operations - @virtual_machine_sizes = client_0.virtual_machine_sizes - @virtual_machines = client_0.virtual_machines - @virtual_machine_scale_sets = client_0.virtual_machine_scale_sets - @virtual_machine_scale_set_vms = client_0.virtual_machine_scale_set_vms + add_telemetry(@client_0) + @availability_sets = @client_0.availability_sets + @virtual_machine_extension_images = @client_0.virtual_machine_extension_images + @virtual_machine_extensions = @client_0.virtual_machine_extensions + @virtual_machine_images = @client_0.virtual_machine_images + @usage_operations = @client_0.usage_operations + @virtual_machine_sizes = @client_0.virtual_machine_sizes + @virtual_machines = @client_0.virtual_machines + @virtual_machine_scale_sets = @client_0.virtual_machine_scale_sets + @virtual_machine_scale_set_vms = @client_0.virtual_machine_scale_set_vms @model_classes = ModelClasses.new end @@ -147,6 +147,14 @@ module Azure::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def diagnostics_profile Azure::Compute::Mgmt::V2016_03_30::Models::DiagnosticsProfile diff --git a/azure_sdk/lib/v2017_03_09/modules/features_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/features_profile_module.rb index 0d5d7a6d6..807323e30 100644 --- a/azure_sdk/lib/v2017_03_09/modules/features_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/features_profile_module.rb @@ -21,12 +21,12 @@ module Azure::Profiles::V2017_03_09 def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @features = client_0.features + add_telemetry(@client_0) + @features = @client_0.features @model_classes = ModelClasses.new end @@ -36,6 +36,14 @@ module Azure::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def feature_result Azure::Features::Mgmt::V2015_12_01::Models::FeatureResult diff --git a/azure_sdk/lib/v2017_03_09/modules/links_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/links_profile_module.rb index 19b4bb363..8bf2ec961 100644 --- a/azure_sdk/lib/v2017_03_09/modules/links_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/links_profile_module.rb @@ -23,12 +23,12 @@ module Azure::Profiles::V2017_03_09 def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @resource_links = client_0.resource_links + add_telemetry(@client_0) + @resource_links = @client_0.resource_links @model_classes = ModelClasses.new end @@ -38,6 +38,14 @@ module Azure::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def resource_link Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink diff --git a/azure_sdk/lib/v2017_03_09/modules/locks_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/locks_profile_module.rb index f939923e4..f9c42afaf 100644 --- a/azure_sdk/lib/v2017_03_09/modules/locks_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/locks_profile_module.rb @@ -21,12 +21,12 @@ module Azure::Profiles::V2017_03_09 def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Locks::Mgmt::V2015_01_01::ManagementLockClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Locks::Mgmt::V2015_01_01::ManagementLockClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @management_locks = client_0.management_locks + add_telemetry(@client_0) + @management_locks = @client_0.management_locks @model_classes = ModelClasses.new end @@ -36,6 +36,14 @@ module Azure::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def management_lock_list_result Azure::Locks::Mgmt::V2015_01_01::Models::ManagementLockListResult diff --git a/azure_sdk/lib/v2017_03_09/modules/network_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/network_profile_module.rb index 20027cf72..370ccd733 100644 --- a/azure_sdk/lib/v2017_03_09/modules/network_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/network_profile_module.rb @@ -153,29 +153,29 @@ module Azure::Profiles::V2017_03_09 def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Network::Mgmt::V2015_06_15::NetworkManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Network::Mgmt::V2015_06_15::NetworkManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @application_gateways = client_0.application_gateways - @express_route_circuit_authorizations = client_0.express_route_circuit_authorizations - @express_route_circuit_peerings = client_0.express_route_circuit_peerings - @express_route_circuits = client_0.express_route_circuits - @express_route_service_providers = client_0.express_route_service_providers - @load_balancers = client_0.load_balancers - @network_interfaces = client_0.network_interfaces - @network_security_groups = client_0.network_security_groups - @security_rules = client_0.security_rules - @public_ipaddresses = client_0.public_ipaddresses - @route_tables = client_0.route_tables - @routes = client_0.routes - @usages = client_0.usages - @virtual_networks = client_0.virtual_networks - @subnets = client_0.subnets - @virtual_network_gateways = client_0.virtual_network_gateways - @virtual_network_gateway_connections = client_0.virtual_network_gateway_connections - @local_network_gateways = client_0.local_network_gateways + add_telemetry(@client_0) + @application_gateways = @client_0.application_gateways + @express_route_circuit_authorizations = @client_0.express_route_circuit_authorizations + @express_route_circuit_peerings = @client_0.express_route_circuit_peerings + @express_route_circuits = @client_0.express_route_circuits + @express_route_service_providers = @client_0.express_route_service_providers + @load_balancers = @client_0.load_balancers + @network_interfaces = @client_0.network_interfaces + @network_security_groups = @client_0.network_security_groups + @security_rules = @client_0.security_rules + @public_ipaddresses = @client_0.public_ipaddresses + @route_tables = @client_0.route_tables + @routes = @client_0.routes + @usages = @client_0.usages + @virtual_networks = @client_0.virtual_networks + @subnets = @client_0.subnets + @virtual_network_gateways = @client_0.virtual_network_gateways + @virtual_network_gateway_connections = @client_0.virtual_network_gateway_connections + @local_network_gateways = @client_0.local_network_gateways @model_classes = ModelClasses.new end @@ -185,6 +185,14 @@ module Azure::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def express_route_circuits_stats_list_result Azure::Network::Mgmt::V2015_06_15::Models::ExpressRouteCircuitsStatsListResult diff --git a/azure_sdk/lib/v2017_03_09/modules/policy_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/policy_profile_module.rb index 755891c6b..ee3537cb7 100644 --- a/azure_sdk/lib/v2017_03_09/modules/policy_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/policy_profile_module.rb @@ -24,13 +24,13 @@ module Azure::Profiles::V2017_03_09 def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @policy_assignments = client_0.policy_assignments - @policy_definitions = client_0.policy_definitions + add_telemetry(@client_0) + @policy_assignments = @client_0.policy_assignments + @policy_definitions = @client_0.policy_definitions @model_classes = ModelClasses.new end @@ -40,6 +40,14 @@ module Azure::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def policy_assignment Azure::Policy::Mgmt::V2015_10_01_preview::Models::PolicyAssignment diff --git a/azure_sdk/lib/v2017_03_09/modules/resources_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/resources_profile_module.rb index e78768e24..56cc04442 100644 --- a/azure_sdk/lib/v2017_03_09/modules/resources_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/resources_profile_module.rb @@ -69,17 +69,17 @@ module Azure::Profiles::V2017_03_09 def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Resources::Mgmt::V2016_02_01::ResourceManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Resources::Mgmt::V2016_02_01::ResourceManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @deployments = client_0.deployments - @providers = client_0.providers - @resource_groups = client_0.resource_groups - @resources = client_0.resources - @tags = client_0.tags - @deployment_operations = client_0.deployment_operations + add_telemetry(@client_0) + @deployments = @client_0.deployments + @providers = @client_0.providers + @resource_groups = @client_0.resource_groups + @resources = @client_0.resources + @tags = @client_0.tags + @deployment_operations = @client_0.deployment_operations @model_classes = ModelClasses.new end @@ -89,6 +89,14 @@ module Azure::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def sku Azure::Resources::Mgmt::V2016_02_01::Models::Sku diff --git a/azure_sdk/lib/v2017_03_09/modules/storage_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/storage_profile_module.rb index bc46daf9c..f383f8efc 100644 --- a/azure_sdk/lib/v2017_03_09/modules/storage_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/storage_profile_module.rb @@ -47,13 +47,13 @@ module Azure::Profiles::V2017_03_09 def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Storage::Mgmt::V2016_01_01::StorageManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Storage::Mgmt::V2016_01_01::StorageManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @storage_accounts = client_0.storage_accounts - @usage_operations = client_0.usage_operations + add_telemetry(@client_0) + @storage_accounts = @client_0.storage_accounts + @usage_operations = @client_0.usage_operations @model_classes = ModelClasses.new end @@ -63,6 +63,14 @@ module Azure::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def storage_account_check_name_availability_parameters Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters diff --git a/azure_sdk/lib/v2017_03_09/modules/subscriptions_profile_module.rb b/azure_sdk/lib/v2017_03_09/modules/subscriptions_profile_module.rb index dcda4af0c..bb9e50186 100644 --- a/azure_sdk/lib/v2017_03_09/modules/subscriptions_profile_module.rb +++ b/azure_sdk/lib/v2017_03_09/modules/subscriptions_profile_module.rb @@ -28,13 +28,13 @@ module Azure::Profiles::V2017_03_09 def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options - client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @subscriptions = client_0.subscriptions - @tenants = client_0.tenants + add_telemetry(@client_0) + @subscriptions = @client_0.subscriptions + @tenants = @client_0.tenants @model_classes = ModelClasses.new end @@ -44,6 +44,14 @@ module Azure::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + class ModelClasses def subscription Azure::Subscriptions::Mgmt::V2016_06_01::Models::Subscription diff --git a/data/azure_cognitiveservices_computervision/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb b/data/azure_cognitiveservices_computervision/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb index 7d124cc68..2cfdcb79b 100644 --- a/data/azure_cognitiveservices_computervision/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +++ b/data/azure_cognitiveservices_computervision/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb @@ -123,8 +123,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [ListModelsResult] operation results. # - def list_models(custom_headers = nil) - response = list_models_async(custom_headers).value! + def list_models(custom_headers:nil) + response = list_models_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -140,8 +140,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_models_with_http_info(custom_headers = nil) - list_models_async(custom_headers).value! + def list_models_with_http_info(custom_headers:nil) + list_models_async(custom_headers:custom_headers).value! end # @@ -156,11 +156,12 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_models_async(custom_headers = nil) + def list_models_async(custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -237,8 +238,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [ImageAnalysis] operation results. # - def analyze_image(url, visual_features = nil, details = nil, language = nil, custom_headers = nil) - response = analyze_image_async(url, visual_features, details, language, custom_headers).value! + def analyze_image(url, visual_features:nil, details:nil, language:nil, custom_headers:nil) + response = analyze_image_async(url, visual_features:visual_features, details:details, language:language, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -275,8 +276,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def analyze_image_with_http_info(url, visual_features = nil, details = nil, language = nil, custom_headers = nil) - analyze_image_async(url, visual_features, details, language, custom_headers).value! + def analyze_image_with_http_info(url, visual_features:nil, details:nil, language:nil, custom_headers:nil) + analyze_image_async(url, visual_features:visual_features, details:details, language:language, custom_headers:custom_headers).value! end # @@ -312,7 +313,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def analyze_image_async(url, visual_features = nil, details = nil, language = nil, custom_headers = nil) + def analyze_image_async(url, visual_features:nil, details:nil, language:nil, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'url is nil' if url.nil? @@ -322,7 +323,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -395,8 +395,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [NOT_IMPLEMENTED] operation results. # - def generate_thumbnail(width, height, url, smart_cropping = false, custom_headers = nil) - response = generate_thumbnail_async(width, height, url, smart_cropping, custom_headers).value! + def generate_thumbnail(width, height, url, smart_cropping:false, custom_headers:nil) + response = generate_thumbnail_async(width, height, url, smart_cropping:smart_cropping, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -420,8 +420,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_thumbnail_with_http_info(width, height, url, smart_cropping = false, custom_headers = nil) - generate_thumbnail_async(width, height, url, smart_cropping, custom_headers).value! + def generate_thumbnail_with_http_info(width, height, url, smart_cropping:false, custom_headers:nil) + generate_thumbnail_async(width, height, url, smart_cropping:smart_cropping, custom_headers:custom_headers).value! end # @@ -444,7 +444,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_thumbnail_async(width, height, url, smart_cropping = false, custom_headers = nil) + def generate_thumbnail_async(width, height, url, smart_cropping:false, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'width is nil' if width.nil? fail ArgumentError, "'width' should satisfy the constraint - 'InclusiveMaximum': '1023'" if !width.nil? && width > 1023 @@ -460,7 +460,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -543,8 +542,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [OcrResult] operation results. # - def recognize_printed_text(detect_orientation, url, language = nil, custom_headers = nil) - response = recognize_printed_text_async(detect_orientation, url, language, custom_headers).value! + def recognize_printed_text(detect_orientation, url, language:nil, custom_headers:nil) + response = recognize_printed_text_async(detect_orientation, url, language:language, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -571,8 +570,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def recognize_printed_text_with_http_info(detect_orientation, url, language = nil, custom_headers = nil) - recognize_printed_text_async(detect_orientation, url, language, custom_headers).value! + def recognize_printed_text_with_http_info(detect_orientation, url, language:nil, custom_headers:nil) + recognize_printed_text_async(detect_orientation, url, language:language, custom_headers:custom_headers).value! end # @@ -598,7 +597,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def recognize_printed_text_async(detect_orientation, url, language = nil, custom_headers = nil) + def recognize_printed_text_async(detect_orientation, url, language:nil, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'detect_orientation is nil' if detect_orientation.nil? fail ArgumentError, 'url is nil' if url.nil? @@ -609,7 +608,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -680,8 +678,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [ImageDescription] operation results. # - def describe_image(url, max_candidates = '1', custom_headers = nil) - response = describe_image_async(url, max_candidates, custom_headers).value! + def describe_image(url, max_candidates:'1', custom_headers:nil) + response = describe_image_async(url, max_candidates:max_candidates, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -703,8 +701,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def describe_image_with_http_info(url, max_candidates = '1', custom_headers = nil) - describe_image_async(url, max_candidates, custom_headers).value! + def describe_image_with_http_info(url, max_candidates:'1', custom_headers:nil) + describe_image_async(url, max_candidates:max_candidates, custom_headers:custom_headers).value! end # @@ -725,7 +723,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def describe_image_async(url, max_candidates = '1', custom_headers = nil) + def describe_image_async(url, max_candidates:'1', custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'url is nil' if url.nil? @@ -735,7 +733,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -803,8 +800,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [TagResult] operation results. # - def tag_image(url, custom_headers = nil) - response = tag_image_async(url, custom_headers).value! + def tag_image(url, custom_headers:nil) + response = tag_image_async(url, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -823,8 +820,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def tag_image_with_http_info(url, custom_headers = nil) - tag_image_async(url, custom_headers).value! + def tag_image_with_http_info(url, custom_headers:nil) + tag_image_async(url, custom_headers:custom_headers).value! end # @@ -842,7 +839,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def tag_image_async(url, custom_headers = nil) + def tag_image_async(url, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'url is nil' if url.nil? @@ -852,7 +849,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -922,8 +918,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [DomainModelResults] operation results. # - def analyze_image_by_domain(model, url, custom_headers = nil) - response = analyze_image_by_domain_async(model, url, custom_headers).value! + def analyze_image_by_domain(model, url, custom_headers:nil) + response = analyze_image_by_domain_async(model, url, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -945,8 +941,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def analyze_image_by_domain_with_http_info(model, url, custom_headers = nil) - analyze_image_by_domain_async(model, url, custom_headers).value! + def analyze_image_by_domain_with_http_info(model, url, custom_headers:nil) + analyze_image_by_domain_async(model, url, custom_headers:custom_headers).value! end # @@ -967,7 +963,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def analyze_image_by_domain_async(model, url, custom_headers = nil) + def analyze_image_by_domain_async(model, url, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'model is nil' if model.nil? fail ArgumentError, 'url is nil' if url.nil? @@ -978,7 +974,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1045,8 +1040,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # will be added to the HTTP request. # # - def recognize_text(url, detect_handwriting = false, custom_headers = nil) - response = recognize_text_async(url, detect_handwriting, custom_headers).value! + def recognize_text(url, detect_handwriting:false, custom_headers:nil) + response = recognize_text_async(url, detect_handwriting:detect_handwriting, custom_headers:custom_headers).value! nil end @@ -1065,8 +1060,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def recognize_text_with_http_info(url, detect_handwriting = false, custom_headers = nil) - recognize_text_async(url, detect_handwriting, custom_headers).value! + def recognize_text_with_http_info(url, detect_handwriting:false, custom_headers:nil) + recognize_text_async(url, detect_handwriting:detect_handwriting, custom_headers:custom_headers).value! end # @@ -1084,7 +1079,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def recognize_text_async(url, detect_handwriting = false, custom_headers = nil) + def recognize_text_async(url, detect_handwriting:false, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'url is nil' if url.nil? @@ -1094,7 +1089,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1149,8 +1143,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [TextOperationResult] operation results. # - def get_text_operation_result(operation_id, custom_headers = nil) - response = get_text_operation_result_async(operation_id, custom_headers).value! + def get_text_operation_result(operation_id, custom_headers:nil) + response = get_text_operation_result_async(operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1166,8 +1160,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_text_operation_result_with_http_info(operation_id, custom_headers = nil) - get_text_operation_result_async(operation_id, custom_headers).value! + def get_text_operation_result_with_http_info(operation_id, custom_headers:nil) + get_text_operation_result_async(operation_id, custom_headers:custom_headers).value! end # @@ -1182,12 +1176,13 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_text_operation_result_async(operation_id, custom_headers = nil) + def get_text_operation_result_async(operation_id, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'operation_id is nil' if operation_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1262,8 +1257,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [ImageAnalysis] operation results. # - def analyze_image_in_stream(image, visual_features = nil, details = nil, language = nil, custom_headers = nil) - response = analyze_image_in_stream_async(image, visual_features, details, language, custom_headers).value! + def analyze_image_in_stream(image, visual_features:nil, details:nil, language:nil, custom_headers:nil) + response = analyze_image_in_stream_async(image, visual_features:visual_features, details:details, language:language, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1297,8 +1292,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def analyze_image_in_stream_with_http_info(image, visual_features = nil, details = nil, language = nil, custom_headers = nil) - analyze_image_in_stream_async(image, visual_features, details, language, custom_headers).value! + def analyze_image_in_stream_with_http_info(image, visual_features:nil, details:nil, language:nil, custom_headers:nil) + analyze_image_in_stream_async(image, visual_features:visual_features, details:details, language:language, custom_headers:custom_headers).value! end # @@ -1331,13 +1326,12 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def analyze_image_in_stream_async(image, visual_features = nil, details = nil, language = nil, custom_headers = nil) + def analyze_image_in_stream_async(image, visual_features:nil, details:nil, language:nil, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'image is nil' if image.nil? request_headers = {} - request_headers['Content-Type'] = 'application/octet-stream' # Set Headers @@ -1417,8 +1411,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [NOT_IMPLEMENTED] operation results. # - def generate_thumbnail_in_stream(width, height, image, smart_cropping = false, custom_headers = nil) - response = generate_thumbnail_in_stream_async(width, height, image, smart_cropping, custom_headers).value! + def generate_thumbnail_in_stream(width, height, image, smart_cropping:false, custom_headers:nil) + response = generate_thumbnail_in_stream_async(width, height, image, smart_cropping:smart_cropping, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1442,8 +1436,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_thumbnail_in_stream_with_http_info(width, height, image, smart_cropping = false, custom_headers = nil) - generate_thumbnail_in_stream_async(width, height, image, smart_cropping, custom_headers).value! + def generate_thumbnail_in_stream_with_http_info(width, height, image, smart_cropping:false, custom_headers:nil) + generate_thumbnail_in_stream_async(width, height, image, smart_cropping:smart_cropping, custom_headers:custom_headers).value! end # @@ -1466,7 +1460,7 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_thumbnail_in_stream_async(width, height, image, smart_cropping = false, custom_headers = nil) + def generate_thumbnail_in_stream_async(width, height, image, smart_cropping:false, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'width is nil' if width.nil? fail ArgumentError, "'width' should satisfy the constraint - 'InclusiveMaximum': '1023'" if !width.nil? && width > 1023 @@ -1478,7 +1472,6 @@ module Azure::CognitiveServices::ComputerVision::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/octet-stream' # Set Headers @@ -1568,8 +1561,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [OcrResult] operation results. # - def recognize_printed_text_in_stream(detect_orientation, image, language = nil, custom_headers = nil) - response = recognize_printed_text_in_stream_async(detect_orientation, image, language, custom_headers).value! + def recognize_printed_text_in_stream(detect_orientation, image, language:nil, custom_headers:nil) + response = recognize_printed_text_in_stream_async(detect_orientation, image, language:language, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1596,8 +1589,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def recognize_printed_text_in_stream_with_http_info(detect_orientation, image, language = nil, custom_headers = nil) - recognize_printed_text_in_stream_async(detect_orientation, image, language, custom_headers).value! + def recognize_printed_text_in_stream_with_http_info(detect_orientation, image, language:nil, custom_headers:nil) + recognize_printed_text_in_stream_async(detect_orientation, image, language:language, custom_headers:custom_headers).value! end # @@ -1623,14 +1616,13 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def recognize_printed_text_in_stream_async(detect_orientation, image, language = nil, custom_headers = nil) + def recognize_printed_text_in_stream_async(detect_orientation, image, language:nil, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'detect_orientation is nil' if detect_orientation.nil? fail ArgumentError, 'image is nil' if image.nil? request_headers = {} - request_headers['Content-Type'] = 'application/octet-stream' # Set Headers @@ -1708,8 +1700,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [ImageDescription] operation results. # - def describe_image_in_stream(image, max_candidates = '1', custom_headers = nil) - response = describe_image_in_stream_async(image, max_candidates, custom_headers).value! + def describe_image_in_stream(image, max_candidates:'1', custom_headers:nil) + response = describe_image_in_stream_async(image, max_candidates:max_candidates, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1731,8 +1723,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def describe_image_in_stream_with_http_info(image, max_candidates = '1', custom_headers = nil) - describe_image_in_stream_async(image, max_candidates, custom_headers).value! + def describe_image_in_stream_with_http_info(image, max_candidates:'1', custom_headers:nil) + describe_image_in_stream_async(image, max_candidates:max_candidates, custom_headers:custom_headers).value! end # @@ -1753,13 +1745,12 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def describe_image_in_stream_async(image, max_candidates = '1', custom_headers = nil) + def describe_image_in_stream_async(image, max_candidates:'1', custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'image is nil' if image.nil? request_headers = {} - request_headers['Content-Type'] = 'application/octet-stream' # Set Headers @@ -1834,8 +1825,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [TagResult] operation results. # - def tag_image_in_stream(image, custom_headers = nil) - response = tag_image_in_stream_async(image, custom_headers).value! + def tag_image_in_stream(image, custom_headers:nil) + response = tag_image_in_stream_async(image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1854,8 +1845,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def tag_image_in_stream_with_http_info(image, custom_headers = nil) - tag_image_in_stream_async(image, custom_headers).value! + def tag_image_in_stream_with_http_info(image, custom_headers:nil) + tag_image_in_stream_async(image, custom_headers:custom_headers).value! end # @@ -1873,13 +1864,12 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def tag_image_in_stream_async(image, custom_headers = nil) + def tag_image_in_stream_async(image, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'image is nil' if image.nil? request_headers = {} - request_headers['Content-Type'] = 'application/octet-stream' # Set Headers @@ -1955,8 +1945,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [DomainModelResults] operation results. # - def analyze_image_by_domain_in_stream(model, image, custom_headers = nil) - response = analyze_image_by_domain_in_stream_async(model, image, custom_headers).value! + def analyze_image_by_domain_in_stream(model, image, custom_headers:nil) + response = analyze_image_by_domain_in_stream_async(model, image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1977,8 +1967,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def analyze_image_by_domain_in_stream_with_http_info(model, image, custom_headers = nil) - analyze_image_by_domain_in_stream_async(model, image, custom_headers).value! + def analyze_image_by_domain_in_stream_with_http_info(model, image, custom_headers:nil) + analyze_image_by_domain_in_stream_async(model, image, custom_headers:custom_headers).value! end # @@ -1998,14 +1988,13 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def analyze_image_by_domain_in_stream_async(model, image, custom_headers = nil) + def analyze_image_by_domain_in_stream_async(model, image, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'model is nil' if model.nil? fail ArgumentError, 'image is nil' if image.nil? request_headers = {} - request_headers['Content-Type'] = 'application/octet-stream' # Set Headers @@ -2079,8 +2068,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # will be added to the HTTP request. # # - def recognize_text_in_stream(image, detect_handwriting = false, custom_headers = nil) - response = recognize_text_in_stream_async(image, detect_handwriting, custom_headers).value! + def recognize_text_in_stream(image, detect_handwriting:false, custom_headers:nil) + response = recognize_text_in_stream_async(image, detect_handwriting:detect_handwriting, custom_headers:custom_headers).value! nil end @@ -2099,8 +2088,8 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def recognize_text_in_stream_with_http_info(image, detect_handwriting = false, custom_headers = nil) - recognize_text_in_stream_async(image, detect_handwriting, custom_headers).value! + def recognize_text_in_stream_with_http_info(image, detect_handwriting:false, custom_headers:nil) + recognize_text_in_stream_async(image, detect_handwriting:detect_handwriting, custom_headers:custom_headers).value! end # @@ -2118,13 +2107,12 @@ module Azure::CognitiveServices::ComputerVision::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def recognize_text_in_stream_async(image, detect_handwriting = false, custom_headers = nil) + def recognize_text_in_stream_async(image, detect_handwriting:false, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'image is nil' if image.nil? request_headers = {} - request_headers['Content-Type'] = 'application/octet-stream' # Set Headers diff --git a/data/azure_cognitiveservices_computervision/lib/profiles/latest/modules/computervision_profile_module.rb b/data/azure_cognitiveservices_computervision/lib/profiles/latest/modules/computervision_profile_module.rb index ebca4c375..f6c3fdfad 100644 --- a/data/azure_cognitiveservices_computervision/lib/profiles/latest/modules/computervision_profile_module.rb +++ b/data/azure_cognitiveservices_computervision/lib/profiles/latest/modules/computervision_profile_module.rb @@ -64,11 +64,11 @@ module Azure::ComputerVision::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::ComputerVision::V1_0::ComputerVisionClient.new(configurable.credentials, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::ComputerVision::V1_0::ComputerVisionClient.new(configurable.credentials, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) + add_telemetry(@client_0) @model_classes = ModelClasses.new end @@ -78,6 +78,14 @@ module Azure::ComputerVision::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/image_moderation.rb b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/image_moderation.rb index 65cba5017..7e042cd00 100644 --- a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/image_moderation.rb +++ b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/image_moderation.rb @@ -49,8 +49,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [FoundFaces] operation results. # - def find_faces(cache_image = nil, custom_headers = nil) - response = find_faces_async(cache_image, custom_headers).value! + def find_faces(cache_image:nil, custom_headers:nil) + response = find_faces_async(cache_image:cache_image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -64,8 +64,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def find_faces_with_http_info(cache_image = nil, custom_headers = nil) - find_faces_async(cache_image, custom_headers).value! + def find_faces_with_http_info(cache_image:nil, custom_headers:nil) + find_faces_async(cache_image:cache_image, custom_headers:custom_headers).value! end # @@ -78,11 +78,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def find_faces_async(cache_image = nil, custom_headers = nil) + def find_faces_async(cache_image:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -145,8 +146,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [OCR] operation results. # - def ocrmethod(language, cache_image = nil, enhanced = false, custom_headers = nil) - response = ocrmethod_async(language, cache_image, enhanced, custom_headers).value! + def ocrmethod(language, cache_image:nil, enhanced:false, custom_headers:nil) + response = ocrmethod_async(language, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -168,8 +169,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def ocrmethod_with_http_info(language, cache_image = nil, enhanced = false, custom_headers = nil) - ocrmethod_async(language, cache_image, enhanced, custom_headers).value! + def ocrmethod_with_http_info(language, cache_image:nil, enhanced:false, custom_headers:nil) + ocrmethod_async(language, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value! end # @@ -190,12 +191,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def ocrmethod_async(language, cache_image = nil, enhanced = false, custom_headers = nil) + def ocrmethod_async(language, cache_image:nil, enhanced:false, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'language is nil' if language.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -250,8 +252,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Evaluate] operation results. # - def evaluate_method(cache_image = nil, custom_headers = nil) - response = evaluate_method_async(cache_image, custom_headers).value! + def evaluate_method(cache_image:nil, custom_headers:nil) + response = evaluate_method_async(cache_image:cache_image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -265,8 +267,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def evaluate_method_with_http_info(cache_image = nil, custom_headers = nil) - evaluate_method_async(cache_image, custom_headers).value! + def evaluate_method_with_http_info(cache_image:nil, custom_headers:nil) + evaluate_method_async(cache_image:cache_image, custom_headers:custom_headers).value! end # @@ -279,11 +281,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def evaluate_method_async(cache_image = nil, custom_headers = nil) + def evaluate_method_async(cache_image:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -347,8 +350,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MatchResponse] operation results. # - def match_method(list_id = nil, cache_image = nil, custom_headers = nil) - response = match_method_async(list_id, cache_image, custom_headers).value! + def match_method(list_id:nil, cache_image:nil, custom_headers:nil) + response = match_method_async(list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -371,8 +374,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def match_method_with_http_info(list_id = nil, cache_image = nil, custom_headers = nil) - match_method_async(list_id, cache_image, custom_headers).value! + def match_method_with_http_info(list_id:nil, cache_image:nil, custom_headers:nil) + match_method_async(list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value! end # @@ -394,11 +397,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def match_method_async(list_id = nil, cache_image = nil, custom_headers = nil) + def match_method_async(list_id:nil, cache_image:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -454,8 +458,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [FoundFaces] operation results. # - def find_faces_file_input(image_stream, cache_image = nil, custom_headers = nil) - response = find_faces_file_input_async(image_stream, cache_image, custom_headers).value! + def find_faces_file_input(image_stream, cache_image:nil, custom_headers:nil) + response = find_faces_file_input_async(image_stream, cache_image:cache_image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -470,8 +474,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def find_faces_file_input_with_http_info(image_stream, cache_image = nil, custom_headers = nil) - find_faces_file_input_async(image_stream, cache_image, custom_headers).value! + def find_faces_file_input_with_http_info(image_stream, cache_image:nil, custom_headers:nil) + find_faces_file_input_async(image_stream, cache_image:cache_image, custom_headers:custom_headers).value! end # @@ -485,13 +489,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def find_faces_file_input_async(image_stream, cache_image = nil, custom_headers = nil) + def find_faces_file_input_async(image_stream, cache_image:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'image_stream is nil' if image_stream.nil? request_headers = {} - request_headers['Content-Type'] = 'image/gif' # Set Headers @@ -563,8 +566,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [FoundFaces] operation results. # - def find_faces_url_input(content_type, image_url, cache_image = nil, custom_headers = nil) - response = find_faces_url_input_async(content_type, image_url, cache_image, custom_headers).value! + def find_faces_url_input(content_type, image_url, cache_image:nil, custom_headers:nil) + response = find_faces_url_input_async(content_type, image_url, cache_image:cache_image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -580,8 +583,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def find_faces_url_input_with_http_info(content_type, image_url, cache_image = nil, custom_headers = nil) - find_faces_url_input_async(content_type, image_url, cache_image, custom_headers).value! + def find_faces_url_input_with_http_info(content_type, image_url, cache_image:nil, custom_headers:nil) + find_faces_url_input_async(content_type, image_url, cache_image:cache_image, custom_headers:custom_headers).value! end # @@ -596,14 +599,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def find_faces_url_input_async(content_type, image_url, cache_image = nil, custom_headers = nil) + def find_faces_url_input_async(content_type, image_url, cache_image:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? fail ArgumentError, 'image_url is nil' if image_url.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -677,8 +679,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [OCR] operation results. # - def ocrurl_input(language, content_type, image_url, cache_image = nil, enhanced = false, custom_headers = nil) - response = ocrurl_input_async(language, content_type, image_url, cache_image, enhanced, custom_headers).value! + def ocrurl_input(language, content_type, image_url, cache_image:nil, enhanced:false, custom_headers:nil) + response = ocrurl_input_async(language, content_type, image_url, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -702,8 +704,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def ocrurl_input_with_http_info(language, content_type, image_url, cache_image = nil, enhanced = false, custom_headers = nil) - ocrurl_input_async(language, content_type, image_url, cache_image, enhanced, custom_headers).value! + def ocrurl_input_with_http_info(language, content_type, image_url, cache_image:nil, enhanced:false, custom_headers:nil) + ocrurl_input_async(language, content_type, image_url, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value! end # @@ -726,7 +728,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def ocrurl_input_async(language, content_type, image_url, cache_image = nil, enhanced = false, custom_headers = nil) + def ocrurl_input_async(language, content_type, image_url, cache_image:nil, enhanced:false, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'language is nil' if language.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? @@ -734,7 +736,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -807,8 +808,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [OCR] operation results. # - def ocrfile_input(language, image_stream, cache_image = nil, enhanced = false, custom_headers = nil) - response = ocrfile_input_async(language, image_stream, cache_image, enhanced, custom_headers).value! + def ocrfile_input(language, image_stream, cache_image:nil, enhanced:false, custom_headers:nil) + response = ocrfile_input_async(language, image_stream, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -831,8 +832,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def ocrfile_input_with_http_info(language, image_stream, cache_image = nil, enhanced = false, custom_headers = nil) - ocrfile_input_async(language, image_stream, cache_image, enhanced, custom_headers).value! + def ocrfile_input_with_http_info(language, image_stream, cache_image:nil, enhanced:false, custom_headers:nil) + ocrfile_input_async(language, image_stream, cache_image:cache_image, enhanced:enhanced, custom_headers:custom_headers).value! end # @@ -854,14 +855,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def ocrfile_input_async(language, image_stream, cache_image = nil, enhanced = false, custom_headers = nil) + def ocrfile_input_async(language, image_stream, cache_image:nil, enhanced:false, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'language is nil' if language.nil? fail ArgumentError, 'image_stream is nil' if image_stream.nil? request_headers = {} - request_headers['Content-Type'] = 'image/gif' # Set Headers @@ -932,8 +932,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Evaluate] operation results. # - def evaluate_file_input(image_stream, cache_image = nil, custom_headers = nil) - response = evaluate_file_input_async(image_stream, cache_image, custom_headers).value! + def evaluate_file_input(image_stream, cache_image:nil, custom_headers:nil) + response = evaluate_file_input_async(image_stream, cache_image:cache_image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -948,8 +948,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def evaluate_file_input_with_http_info(image_stream, cache_image = nil, custom_headers = nil) - evaluate_file_input_async(image_stream, cache_image, custom_headers).value! + def evaluate_file_input_with_http_info(image_stream, cache_image:nil, custom_headers:nil) + evaluate_file_input_async(image_stream, cache_image:cache_image, custom_headers:custom_headers).value! end # @@ -963,13 +963,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def evaluate_file_input_async(image_stream, cache_image = nil, custom_headers = nil) + def evaluate_file_input_async(image_stream, cache_image:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'image_stream is nil' if image_stream.nil? request_headers = {} - request_headers['Content-Type'] = 'image/gif' # Set Headers @@ -1041,8 +1040,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Evaluate] operation results. # - def evaluate_url_input(content_type, image_url, cache_image = nil, custom_headers = nil) - response = evaluate_url_input_async(content_type, image_url, cache_image, custom_headers).value! + def evaluate_url_input(content_type, image_url, cache_image:nil, custom_headers:nil) + response = evaluate_url_input_async(content_type, image_url, cache_image:cache_image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1058,8 +1057,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def evaluate_url_input_with_http_info(content_type, image_url, cache_image = nil, custom_headers = nil) - evaluate_url_input_async(content_type, image_url, cache_image, custom_headers).value! + def evaluate_url_input_with_http_info(content_type, image_url, cache_image:nil, custom_headers:nil) + evaluate_url_input_async(content_type, image_url, cache_image:cache_image, custom_headers:custom_headers).value! end # @@ -1074,14 +1073,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def evaluate_url_input_async(content_type, image_url, cache_image = nil, custom_headers = nil) + def evaluate_url_input_async(content_type, image_url, cache_image:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? fail ArgumentError, 'image_url is nil' if image_url.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1156,8 +1154,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MatchResponse] operation results. # - def match_url_input(content_type, image_url, list_id = nil, cache_image = nil, custom_headers = nil) - response = match_url_input_async(content_type, image_url, list_id, cache_image, custom_headers).value! + def match_url_input(content_type, image_url, list_id:nil, cache_image:nil, custom_headers:nil) + response = match_url_input_async(content_type, image_url, list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1182,8 +1180,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def match_url_input_with_http_info(content_type, image_url, list_id = nil, cache_image = nil, custom_headers = nil) - match_url_input_async(content_type, image_url, list_id, cache_image, custom_headers).value! + def match_url_input_with_http_info(content_type, image_url, list_id:nil, cache_image:nil, custom_headers:nil) + match_url_input_async(content_type, image_url, list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value! end # @@ -1207,14 +1205,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def match_url_input_async(content_type, image_url, list_id = nil, cache_image = nil, custom_headers = nil) + def match_url_input_async(content_type, image_url, list_id:nil, cache_image:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? fail ArgumentError, 'image_url is nil' if image_url.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1288,8 +1285,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MatchResponse] operation results. # - def match_file_input(image_stream, list_id = nil, cache_image = nil, custom_headers = nil) - response = match_file_input_async(image_stream, list_id, cache_image, custom_headers).value! + def match_file_input(image_stream, list_id:nil, cache_image:nil, custom_headers:nil) + response = match_file_input_async(image_stream, list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1313,8 +1310,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def match_file_input_with_http_info(image_stream, list_id = nil, cache_image = nil, custom_headers = nil) - match_file_input_async(image_stream, list_id, cache_image, custom_headers).value! + def match_file_input_with_http_info(image_stream, list_id:nil, cache_image:nil, custom_headers:nil) + match_file_input_async(image_stream, list_id:list_id, cache_image:cache_image, custom_headers:custom_headers).value! end # @@ -1337,13 +1334,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def match_file_input_async(image_stream, list_id = nil, cache_image = nil, custom_headers = nil) + def match_file_input_async(image_stream, list_id:nil, cache_image:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'image_stream is nil' if image_stream.nil? request_headers = {} - request_headers['Content-Type'] = 'image/gif' # Set Headers diff --git a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image.rb b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image.rb index c3df13078..bdbd40c07 100644 --- a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image.rb +++ b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image.rb @@ -50,8 +50,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Image] operation results. # - def add_image(list_id, tag = nil, label = nil, custom_headers = nil) - response = add_image_async(list_id, tag, label, custom_headers).value! + def add_image(list_id, tag:nil, label:nil, custom_headers:nil) + response = add_image_async(list_id, tag:tag, label:label, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -66,8 +66,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_image_with_http_info(list_id, tag = nil, label = nil, custom_headers = nil) - add_image_async(list_id, tag, label, custom_headers).value! + def add_image_with_http_info(list_id, tag:nil, label:nil, custom_headers:nil) + add_image_async(list_id, tag:tag, label:label, custom_headers:custom_headers).value! end # @@ -81,12 +81,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_image_async(list_id, tag = nil, label = nil, custom_headers = nil) + def add_image_async(list_id, tag:nil, label:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -141,8 +142,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [String] operation results. # - def delete_all_images(list_id, custom_headers = nil) - response = delete_all_images_async(list_id, custom_headers).value! + def delete_all_images(list_id, custom_headers:nil) + response = delete_all_images_async(list_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -155,8 +156,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_all_images_with_http_info(list_id, custom_headers = nil) - delete_all_images_async(list_id, custom_headers).value! + def delete_all_images_with_http_info(list_id, custom_headers:nil) + delete_all_images_async(list_id, custom_headers:custom_headers).value! end # @@ -168,12 +169,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_all_images_async(list_id, custom_headers = nil) + def delete_all_images_async(list_id, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -234,8 +236,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [ImageIds] operation results. # - def get_all_image_ids(list_id, custom_headers = nil) - response = get_all_image_ids_async(list_id, custom_headers).value! + def get_all_image_ids(list_id, custom_headers:nil) + response = get_all_image_ids_async(list_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -248,8 +250,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_all_image_ids_with_http_info(list_id, custom_headers = nil) - get_all_image_ids_async(list_id, custom_headers).value! + def get_all_image_ids_with_http_info(list_id, custom_headers:nil) + get_all_image_ids_async(list_id, custom_headers:custom_headers).value! end # @@ -261,12 +263,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_all_image_ids_async(list_id, custom_headers = nil) + def get_all_image_ids_async(list_id, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -321,8 +324,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [String] operation results. # - def delete_image(list_id, image_id, custom_headers = nil) - response = delete_image_async(list_id, image_id, custom_headers).value! + def delete_image(list_id, image_id, custom_headers:nil) + response = delete_image_async(list_id, image_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -336,8 +339,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_image_with_http_info(list_id, image_id, custom_headers = nil) - delete_image_async(list_id, image_id, custom_headers).value! + def delete_image_with_http_info(list_id, image_id, custom_headers:nil) + delete_image_async(list_id, image_id, custom_headers:custom_headers).value! end # @@ -350,13 +353,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_image_async(list_id, image_id, custom_headers = nil) + def delete_image_async(list_id, image_id, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? fail ArgumentError, 'image_id is nil' if image_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -421,8 +425,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Image] operation results. # - def add_image_url_input(list_id, content_type, image_url, tag = nil, label = nil, custom_headers = nil) - response = add_image_url_input_async(list_id, content_type, image_url, tag, label, custom_headers).value! + def add_image_url_input(list_id, content_type, image_url, tag:nil, label:nil, custom_headers:nil) + response = add_image_url_input_async(list_id, content_type, image_url, tag:tag, label:label, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -439,8 +443,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_image_url_input_with_http_info(list_id, content_type, image_url, tag = nil, label = nil, custom_headers = nil) - add_image_url_input_async(list_id, content_type, image_url, tag, label, custom_headers).value! + def add_image_url_input_with_http_info(list_id, content_type, image_url, tag:nil, label:nil, custom_headers:nil) + add_image_url_input_async(list_id, content_type, image_url, tag:tag, label:label, custom_headers:custom_headers).value! end # @@ -456,7 +460,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_image_url_input_async(list_id, content_type, image_url, tag = nil, label = nil, custom_headers = nil) + def add_image_url_input_async(list_id, content_type, image_url, tag:nil, label:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? @@ -464,7 +468,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -531,8 +534,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Image] operation results. # - def add_image_file_input(list_id, image_stream, tag = nil, label = nil, custom_headers = nil) - response = add_image_file_input_async(list_id, image_stream, tag, label, custom_headers).value! + def add_image_file_input(list_id, image_stream, tag:nil, label:nil, custom_headers:nil) + response = add_image_file_input_async(list_id, image_stream, tag:tag, label:label, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -548,8 +551,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_image_file_input_with_http_info(list_id, image_stream, tag = nil, label = nil, custom_headers = nil) - add_image_file_input_async(list_id, image_stream, tag, label, custom_headers).value! + def add_image_file_input_with_http_info(list_id, image_stream, tag:nil, label:nil, custom_headers:nil) + add_image_file_input_async(list_id, image_stream, tag:tag, label:label, custom_headers:custom_headers).value! end # @@ -564,14 +567,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_image_file_input_async(list_id, image_stream, tag = nil, label = nil, custom_headers = nil) + def add_image_file_input_async(list_id, image_stream, tag:nil, label:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? fail ArgumentError, 'image_stream is nil' if image_stream.nil? request_headers = {} - request_headers['Content-Type'] = 'image/gif' # Set Headers diff --git a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image_lists.rb b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image_lists.rb index 9e94f5ce6..0e81405a8 100644 --- a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image_lists.rb +++ b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_image_lists.rb @@ -48,8 +48,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [ImageList] operation results. # - def get_details(list_id, custom_headers = nil) - response = get_details_async(list_id, custom_headers).value! + def get_details(list_id, custom_headers:nil) + response = get_details_async(list_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -62,8 +62,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_details_with_http_info(list_id, custom_headers = nil) - get_details_async(list_id, custom_headers).value! + def get_details_with_http_info(list_id, custom_headers:nil) + get_details_async(list_id, custom_headers:custom_headers).value! end # @@ -75,12 +75,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_details_async(list_id, custom_headers = nil) + def get_details_async(list_id, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [String] operation results. # - def delete(list_id, custom_headers = nil) - response = delete_async(list_id, custom_headers).value! + def delete(list_id, custom_headers:nil) + response = delete_async(list_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +149,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(list_id, custom_headers = nil) - delete_async(list_id, custom_headers).value! + def delete_with_http_info(list_id, custom_headers:nil) + delete_async(list_id, custom_headers:custom_headers).value! end # @@ -161,12 +162,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(list_id, custom_headers = nil) + def delete_async(list_id, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -229,8 +231,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [ImageList] operation results. # - def update(list_id, content_type, body, custom_headers = nil) - response = update_async(list_id, content_type, body, custom_headers).value! + def update(list_id, content_type, body, custom_headers:nil) + response = update_async(list_id, content_type, body, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -245,8 +247,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(list_id, content_type, body, custom_headers = nil) - update_async(list_id, content_type, body, custom_headers).value! + def update_with_http_info(list_id, content_type, body, custom_headers:nil) + update_async(list_id, content_type, body, custom_headers:custom_headers).value! end # @@ -260,7 +262,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(list_id, content_type, body, custom_headers = nil) + def update_async(list_id, content_type, body, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? @@ -268,7 +270,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -332,8 +333,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [ImageList] operation results. # - def create(content_type, body, custom_headers = nil) - response = create_async(content_type, body, custom_headers).value! + def create(content_type, body, custom_headers:nil) + response = create_async(content_type, body, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -347,8 +348,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(content_type, body, custom_headers = nil) - create_async(content_type, body, custom_headers).value! + def create_with_http_info(content_type, body, custom_headers:nil) + create_async(content_type, body, custom_headers:custom_headers).value! end # @@ -361,14 +362,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(content_type, body, custom_headers = nil) + def create_async(content_type, body, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? fail ArgumentError, 'body is nil' if body.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -429,8 +429,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Array] operation results. # - def get_all_image_lists(custom_headers = nil) - response = get_all_image_lists_async(custom_headers).value! + def get_all_image_lists(custom_headers:nil) + response = get_all_image_lists_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -442,8 +442,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_all_image_lists_with_http_info(custom_headers = nil) - get_all_image_lists_async(custom_headers).value! + def get_all_image_lists_with_http_info(custom_headers:nil) + get_all_image_lists_async(custom_headers:custom_headers).value! end # @@ -454,11 +454,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_all_image_lists_async(custom_headers = nil) + def get_all_image_lists_async(custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -527,8 +528,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [RefreshIndex] operation results. # - def refresh_index_method(list_id, custom_headers = nil) - response = refresh_index_method_async(list_id, custom_headers).value! + def refresh_index_method(list_id, custom_headers:nil) + response = refresh_index_method_async(list_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -541,8 +542,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def refresh_index_method_with_http_info(list_id, custom_headers = nil) - refresh_index_method_async(list_id, custom_headers).value! + def refresh_index_method_with_http_info(list_id, custom_headers:nil) + refresh_index_method_async(list_id, custom_headers:custom_headers).value! end # @@ -554,12 +555,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def refresh_index_method_async(list_id, custom_headers = nil) + def refresh_index_method_async(list_id, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term.rb b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term.rb index 1678b8c76..f43bb89ca 100644 --- a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term.rb +++ b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term.rb @@ -50,8 +50,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Object] operation results. # - def add_term(list_id, term, language, custom_headers = nil) - response = add_term_async(list_id, term, language, custom_headers).value! + def add_term(list_id, term, language, custom_headers:nil) + response = add_term_async(list_id, term, language, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -66,8 +66,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_term_with_http_info(list_id, term, language, custom_headers = nil) - add_term_async(list_id, term, language, custom_headers).value! + def add_term_with_http_info(list_id, term, language, custom_headers:nil) + add_term_async(list_id, term, language, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_term_async(list_id, term, language, custom_headers = nil) + def add_term_async(list_id, term, language, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? fail ArgumentError, 'term is nil' if term.nil? @@ -89,6 +89,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [String] operation results. # - def delete_term(list_id, term, language, custom_headers = nil) - response = delete_term_async(list_id, term, language, custom_headers).value! + def delete_term(list_id, term, language, custom_headers:nil) + response = delete_term_async(list_id, term, language, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_term_with_http_info(list_id, term, language, custom_headers = nil) - delete_term_async(list_id, term, language, custom_headers).value! + def delete_term_with_http_info(list_id, term, language, custom_headers:nil) + delete_term_async(list_id, term, language, custom_headers:custom_headers).value! end # @@ -166,7 +167,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_term_async(list_id, term, language, custom_headers = nil) + def delete_term_async(list_id, term, language, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? fail ArgumentError, 'term is nil' if term.nil? @@ -174,6 +175,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -238,8 +240,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Terms] operation results. # - def get_all_terms(list_id, language, offset = nil, limit = nil, custom_headers = nil) - response = get_all_terms_async(list_id, language, offset, limit, custom_headers).value! + def get_all_terms(list_id, language, offset:nil, limit:nil, custom_headers:nil) + response = get_all_terms_async(list_id, language, offset:offset, limit:limit, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -255,8 +257,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_all_terms_with_http_info(list_id, language, offset = nil, limit = nil, custom_headers = nil) - get_all_terms_async(list_id, language, offset, limit, custom_headers).value! + def get_all_terms_with_http_info(list_id, language, offset:nil, limit:nil, custom_headers:nil) + get_all_terms_async(list_id, language, offset:offset, limit:limit, custom_headers:custom_headers).value! end # @@ -271,13 +273,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_all_terms_async(list_id, language, offset = nil, limit = nil, custom_headers = nil) + def get_all_terms_async(list_id, language, offset:nil, limit:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? fail ArgumentError, 'language is nil' if language.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -333,8 +336,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [String] operation results. # - def delete_all_terms(list_id, language, custom_headers = nil) - response = delete_all_terms_async(list_id, language, custom_headers).value! + def delete_all_terms(list_id, language, custom_headers:nil) + response = delete_all_terms_async(list_id, language, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -348,8 +351,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_all_terms_with_http_info(list_id, language, custom_headers = nil) - delete_all_terms_async(list_id, language, custom_headers).value! + def delete_all_terms_with_http_info(list_id, language, custom_headers:nil) + delete_all_terms_async(list_id, language, custom_headers:custom_headers).value! end # @@ -362,13 +365,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_all_terms_async(list_id, language, custom_headers = nil) + def delete_all_terms_async(list_id, language, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? fail ArgumentError, 'language is nil' if language.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term_lists.rb b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term_lists.rb index f2eaecaf2..ef749bef1 100644 --- a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term_lists.rb +++ b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/list_management_term_lists.rb @@ -49,8 +49,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [TermList] operation results. # - def get_details(list_id, custom_headers = nil) - response = get_details_async(list_id, custom_headers).value! + def get_details(list_id, custom_headers:nil) + response = get_details_async(list_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -64,8 +64,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_details_with_http_info(list_id, custom_headers = nil) - get_details_async(list_id, custom_headers).value! + def get_details_with_http_info(list_id, custom_headers:nil) + get_details_async(list_id, custom_headers:custom_headers).value! end # @@ -78,12 +78,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_details_async(list_id, custom_headers = nil) + def get_details_async(list_id, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -137,8 +138,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [String] operation results. # - def delete(list_id, custom_headers = nil) - response = delete_async(list_id, custom_headers).value! + def delete(list_id, custom_headers:nil) + response = delete_async(list_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(list_id, custom_headers = nil) - delete_async(list_id, custom_headers).value! + def delete_with_http_info(list_id, custom_headers:nil) + delete_async(list_id, custom_headers:custom_headers).value! end # @@ -164,12 +165,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(list_id, custom_headers = nil) + def delete_async(list_id, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -232,8 +234,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [TermList] operation results. # - def update(list_id, content_type, body, custom_headers = nil) - response = update_async(list_id, content_type, body, custom_headers).value! + def update(list_id, content_type, body, custom_headers:nil) + response = update_async(list_id, content_type, body, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -248,8 +250,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(list_id, content_type, body, custom_headers = nil) - update_async(list_id, content_type, body, custom_headers).value! + def update_with_http_info(list_id, content_type, body, custom_headers:nil) + update_async(list_id, content_type, body, custom_headers:custom_headers).value! end # @@ -263,7 +265,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(list_id, content_type, body, custom_headers = nil) + def update_async(list_id, content_type, body, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? @@ -271,7 +273,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -335,8 +336,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [TermList] operation results. # - def create(content_type, body, custom_headers = nil) - response = create_async(content_type, body, custom_headers).value! + def create(content_type, body, custom_headers:nil) + response = create_async(content_type, body, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -350,8 +351,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(content_type, body, custom_headers = nil) - create_async(content_type, body, custom_headers).value! + def create_with_http_info(content_type, body, custom_headers:nil) + create_async(content_type, body, custom_headers:custom_headers).value! end # @@ -364,14 +365,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(content_type, body, custom_headers = nil) + def create_async(content_type, body, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? fail ArgumentError, 'body is nil' if body.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -432,8 +432,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Array] operation results. # - def get_all_term_lists(custom_headers = nil) - response = get_all_term_lists_async(custom_headers).value! + def get_all_term_lists(custom_headers:nil) + response = get_all_term_lists_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -445,8 +445,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_all_term_lists_with_http_info(custom_headers = nil) - get_all_term_lists_async(custom_headers).value! + def get_all_term_lists_with_http_info(custom_headers:nil) + get_all_term_lists_async(custom_headers:custom_headers).value! end # @@ -457,11 +457,12 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_all_term_lists_async(custom_headers = nil) + def get_all_term_lists_async(custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -531,8 +532,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [RefreshIndex] operation results. # - def refresh_index_method(list_id, language, custom_headers = nil) - response = refresh_index_method_async(list_id, language, custom_headers).value! + def refresh_index_method(list_id, language, custom_headers:nil) + response = refresh_index_method_async(list_id, language, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -546,8 +547,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def refresh_index_method_with_http_info(list_id, language, custom_headers = nil) - refresh_index_method_async(list_id, language, custom_headers).value! + def refresh_index_method_with_http_info(list_id, language, custom_headers:nil) + refresh_index_method_async(list_id, language, custom_headers:custom_headers).value! end # @@ -560,13 +561,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def refresh_index_method_async(list_id, language, custom_headers = nil) + def refresh_index_method_async(list_id, language, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'list_id is nil' if list_id.nil? fail ArgumentError, 'language is nil' if language.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/reviews.rb b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/reviews.rb index b23eecd54..077baae5e 100644 --- a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/reviews.rb +++ b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/reviews.rb @@ -49,8 +49,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Review] operation results. # - def get_review(team_name, review_id, custom_headers = nil) - response = get_review_async(team_name, review_id, custom_headers).value! + def get_review(team_name, review_id, custom_headers:nil) + response = get_review_async(team_name, review_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -64,8 +64,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_review_with_http_info(team_name, review_id, custom_headers = nil) - get_review_async(team_name, review_id, custom_headers).value! + def get_review_with_http_info(team_name, review_id, custom_headers:nil) + get_review_async(team_name, review_id, custom_headers:custom_headers).value! end # @@ -78,13 +78,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_review_async(team_name, review_id, custom_headers = nil) + def get_review_async(team_name, review_id, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? fail ArgumentError, 'review_id is nil' if review_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -139,8 +140,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Job] operation results. # - def get_job_details(team_name, job_id, custom_headers = nil) - response = get_job_details_async(team_name, job_id, custom_headers).value! + def get_job_details(team_name, job_id, custom_headers:nil) + response = get_job_details_async(team_name, job_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -154,8 +155,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_job_details_with_http_info(team_name, job_id, custom_headers = nil) - get_job_details_async(team_name, job_id, custom_headers).value! + def get_job_details_with_http_info(team_name, job_id, custom_headers:nil) + get_job_details_async(team_name, job_id, custom_headers:custom_headers).value! end # @@ -168,13 +169,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_job_details_async(team_name, job_id, custom_headers = nil) + def get_job_details_async(team_name, job_id, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? fail ArgumentError, 'job_id is nil' if job_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -258,8 +260,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Array] operation results. # - def create_reviews(url_content_type, team_name, create_review_body, sub_team = nil, custom_headers = nil) - response = create_reviews_async(url_content_type, team_name, create_review_body, sub_team, custom_headers).value! + def create_reviews(url_content_type, team_name, create_review_body, sub_team:nil, custom_headers:nil) + response = create_reviews_async(url_content_type, team_name, create_review_body, sub_team:sub_team, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -302,8 +304,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_reviews_with_http_info(url_content_type, team_name, create_review_body, sub_team = nil, custom_headers = nil) - create_reviews_async(url_content_type, team_name, create_review_body, sub_team, custom_headers).value! + def create_reviews_with_http_info(url_content_type, team_name, create_review_body, sub_team:nil, custom_headers:nil) + create_reviews_async(url_content_type, team_name, create_review_body, sub_team:sub_team, custom_headers:custom_headers).value! end # @@ -345,7 +347,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_reviews_async(url_content_type, team_name, create_review_body, sub_team = nil, custom_headers = nil) + def create_reviews_async(url_content_type, team_name, create_review_body, sub_team:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'url_content_type is nil' if url_content_type.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? @@ -353,7 +355,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -506,8 +507,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [JobId] operation results. # - def create_job(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint = nil, custom_headers = nil) - response = create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint, custom_headers).value! + def create_job(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint:nil, custom_headers:nil) + response = create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint:call_back_endpoint, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -578,8 +579,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_job_with_http_info(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint = nil, custom_headers = nil) - create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint, custom_headers).value! + def create_job_with_http_info(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint:nil, custom_headers:nil) + create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint:call_back_endpoint, custom_headers:custom_headers).value! end # @@ -649,7 +650,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint = nil, custom_headers = nil) + def create_job_async(team_name, content_type, content_id, workflow_name, job_content_type, content, call_back_endpoint:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? @@ -660,7 +661,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -750,8 +750,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # will be added to the HTTP request. # # - def add_video_frame(team_name, review_id, timescale = nil, custom_headers = nil) - response = add_video_frame_async(team_name, review_id, timescale, custom_headers).value! + def add_video_frame(team_name, review_id, timescale:nil, custom_headers:nil) + response = add_video_frame_async(team_name, review_id, timescale:timescale, custom_headers:custom_headers).value! nil end @@ -791,8 +791,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_video_frame_with_http_info(team_name, review_id, timescale = nil, custom_headers = nil) - add_video_frame_async(team_name, review_id, timescale, custom_headers).value! + def add_video_frame_with_http_info(team_name, review_id, timescale:nil, custom_headers:nil) + add_video_frame_async(team_name, review_id, timescale:timescale, custom_headers:custom_headers).value! end # @@ -831,13 +831,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_video_frame_async(team_name, review_id, timescale = nil, custom_headers = nil) + def add_video_frame_async(team_name, review_id, timescale:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? fail ArgumentError, 'review_id is nil' if review_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -912,8 +913,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Frames] operation results. # - def get_video_frames(team_name, review_id, start_seed = nil, no_of_records = nil, filter = nil, custom_headers = nil) - response = get_video_frames_async(team_name, review_id, start_seed, no_of_records, filter, custom_headers).value! + def get_video_frames(team_name, review_id, start_seed:nil, no_of_records:nil, filter:nil, custom_headers:nil) + response = get_video_frames_async(team_name, review_id, start_seed:start_seed, no_of_records:no_of_records, filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -956,8 +957,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_video_frames_with_http_info(team_name, review_id, start_seed = nil, no_of_records = nil, filter = nil, custom_headers = nil) - get_video_frames_async(team_name, review_id, start_seed, no_of_records, filter, custom_headers).value! + def get_video_frames_with_http_info(team_name, review_id, start_seed:nil, no_of_records:nil, filter:nil, custom_headers:nil) + get_video_frames_async(team_name, review_id, start_seed:start_seed, no_of_records:no_of_records, filter:filter, custom_headers:custom_headers).value! end # @@ -999,13 +1000,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_video_frames_async(team_name, review_id, start_seed = nil, no_of_records = nil, filter = nil, custom_headers = nil) + def get_video_frames_async(team_name, review_id, start_seed:nil, no_of_records:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? fail ArgumentError, 'review_id is nil' if review_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1060,8 +1062,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # will be added to the HTTP request. # # - def publish_video_review(team_name, review_id, custom_headers = nil) - response = publish_video_review_async(team_name, review_id, custom_headers).value! + def publish_video_review(team_name, review_id, custom_headers:nil) + response = publish_video_review_async(team_name, review_id, custom_headers:custom_headers).value! nil end @@ -1075,8 +1077,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def publish_video_review_with_http_info(team_name, review_id, custom_headers = nil) - publish_video_review_async(team_name, review_id, custom_headers).value! + def publish_video_review_with_http_info(team_name, review_id, custom_headers:nil) + publish_video_review_async(team_name, review_id, custom_headers:custom_headers).value! end # @@ -1089,13 +1091,14 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def publish_video_review_async(team_name, review_id, custom_headers = nil) + def publish_video_review_async(team_name, review_id, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? fail ArgumentError, 'review_id is nil' if review_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1145,8 +1148,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # will be added to the HTTP request. # # - def add_video_transcript_moderation_result(content_type, team_name, review_id, transcript_moderation_body, custom_headers = nil) - response = add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers).value! + def add_video_transcript_moderation_result(content_type, team_name, review_id, transcript_moderation_body, custom_headers:nil) + response = add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers:custom_headers).value! nil end @@ -1166,8 +1169,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_video_transcript_moderation_result_with_http_info(content_type, team_name, review_id, transcript_moderation_body, custom_headers = nil) - add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers).value! + def add_video_transcript_moderation_result_with_http_info(content_type, team_name, review_id, transcript_moderation_body, custom_headers:nil) + add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers:custom_headers).value! end # @@ -1186,7 +1189,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers = nil) + def add_video_transcript_moderation_result_async(content_type, team_name, review_id, transcript_moderation_body, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? @@ -1195,7 +1198,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1266,8 +1268,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # will be added to the HTTP request. # # - def add_video_transcript(team_name, review_id, vttfile, custom_headers = nil) - response = add_video_transcript_async(team_name, review_id, vttfile, custom_headers).value! + def add_video_transcript(team_name, review_id, vttfile, custom_headers:nil) + response = add_video_transcript_async(team_name, review_id, vttfile, custom_headers:custom_headers).value! nil end @@ -1283,8 +1285,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_video_transcript_with_http_info(team_name, review_id, vttfile, custom_headers = nil) - add_video_transcript_async(team_name, review_id, vttfile, custom_headers).value! + def add_video_transcript_with_http_info(team_name, review_id, vttfile, custom_headers:nil) + add_video_transcript_async(team_name, review_id, vttfile, custom_headers:custom_headers).value! end # @@ -1299,7 +1301,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_video_transcript_async(team_name, review_id, vttfile, custom_headers = nil) + def add_video_transcript_async(team_name, review_id, vttfile, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? fail ArgumentError, 'review_id is nil' if review_id.nil? @@ -1308,7 +1310,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} - request_headers['Content-Type'] = 'text/plain' # Set Headers @@ -1398,8 +1399,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Array] operation results. # - def create_video_reviews(content_type, team_name, create_video_reviews_body, sub_team = nil, custom_headers = nil) - response = create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team, custom_headers).value! + def create_video_reviews(content_type, team_name, create_video_reviews_body, sub_team:nil, custom_headers:nil) + response = create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team:sub_team, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1442,8 +1443,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_video_reviews_with_http_info(content_type, team_name, create_video_reviews_body, sub_team = nil, custom_headers = nil) - create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team, custom_headers).value! + def create_video_reviews_with_http_info(content_type, team_name, create_video_reviews_body, sub_team:nil, custom_headers:nil) + create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team:sub_team, custom_headers:custom_headers).value! end # @@ -1485,7 +1486,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team = nil, custom_headers = nil) + def create_video_reviews_async(content_type, team_name, create_video_reviews_body, sub_team:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? @@ -1493,7 +1494,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1596,8 +1596,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # will be added to the HTTP request. # # - def add_video_frame_url(content_type, team_name, review_id, video_frame_body, timescale = nil, custom_headers = nil) - response = add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale, custom_headers).value! + def add_video_frame_url(content_type, team_name, review_id, video_frame_body, timescale:nil, custom_headers:nil) + response = add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale:timescale, custom_headers:custom_headers).value! nil end @@ -1619,8 +1619,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_video_frame_url_with_http_info(content_type, team_name, review_id, video_frame_body, timescale = nil, custom_headers = nil) - add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale, custom_headers).value! + def add_video_frame_url_with_http_info(content_type, team_name, review_id, video_frame_body, timescale:nil, custom_headers:nil) + add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale:timescale, custom_headers:custom_headers).value! end # @@ -1641,7 +1641,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale = nil, custom_headers = nil) + def add_video_frame_url_async(content_type, team_name, review_id, video_frame_body, timescale:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? @@ -1650,7 +1650,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1728,8 +1727,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # will be added to the HTTP request. # # - def add_video_frame_stream(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale = nil, custom_headers = nil) - response = add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale, custom_headers).value! + def add_video_frame_stream(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale:nil, custom_headers:nil) + response = add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale:timescale, custom_headers:custom_headers).value! nil end @@ -1751,8 +1750,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_video_frame_stream_with_http_info(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale = nil, custom_headers = nil) - add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale, custom_headers).value! + def add_video_frame_stream_with_http_info(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale:nil, custom_headers:nil) + add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale:timescale, custom_headers:custom_headers).value! end # @@ -1773,7 +1772,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale = nil, custom_headers = nil) + def add_video_frame_stream_async(content_type, team_name, review_id, frame_image_zip, frame_metadata, timescale:nil, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'content_type is nil' if content_type.nil? fail ArgumentError, 'team_name is nil' if team_name.nil? @@ -1783,11 +1782,18 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} + request_headers['Content-Type'] = 'multipart/form-data' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['Content-Type'] = content_type unless content_type.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + # Set Form Data + form_data = {} + form_data['frameImageZip'] = frame_image_zip.to_s unless frame_image_zip.to_s.nil? + form_data['frameMetadata'] = frame_metadata unless frame_metadata.nil? + path_template = 'contentmoderator/review/v1.0/teams/{teamName}/reviews/{reviewId}/frames' request_url = @base_url || @client.base_url @@ -1798,6 +1804,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 path_params: {'teamName' => team_name,'reviewId' => review_id}, query_params: {'timescale' => timescale}, headers: request_headers.merge(custom_headers || {}), + body: URI.encode_www_form(form_data), base_url: request_url } promise = @client.make_request_async(:post, path_template, options) diff --git a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/text_moderation.rb b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/text_moderation.rb index 7dab8bd05..286153f5b 100644 --- a/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/text_moderation.rb +++ b/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/text_moderation.rb @@ -58,8 +58,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Screen] operation results. # - def screen_text(language, text_content_type, text_content, autocorrect = false, pii = false, list_id = nil, classify = false, custom_headers = nil) - response = screen_text_async(language, text_content_type, text_content, autocorrect, pii, list_id, classify, custom_headers).value! + def screen_text(language, text_content_type, text_content, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil) + response = screen_text_async(language, text_content_type, text_content, autocorrect:autocorrect, pii:pii, list_id:list_id, classify:classify, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -82,8 +82,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def screen_text_with_http_info(language, text_content_type, text_content, autocorrect = false, pii = false, list_id = nil, classify = false, custom_headers = nil) - screen_text_async(language, text_content_type, text_content, autocorrect, pii, list_id, classify, custom_headers).value! + def screen_text_with_http_info(language, text_content_type, text_content, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil) + screen_text_async(language, text_content_type, text_content, autocorrect:autocorrect, pii:pii, list_id:list_id, classify:classify, custom_headers:custom_headers).value! end # @@ -105,7 +105,7 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def screen_text_async(language, text_content_type, text_content, autocorrect = false, pii = false, list_id = nil, classify = false, custom_headers = nil) + def screen_text_async(language, text_content_type, text_content, autocorrect:false, pii:false, list_id:nil, classify:false, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'language is nil' if language.nil? fail ArgumentError, 'text_content_type is nil' if text_content_type.nil? @@ -113,7 +113,6 @@ module Azure::CognitiveServices::ContentModerator::V1_0 request_headers = {} - request_headers['Content-Type'] = 'text/plain' # Set Headers @@ -188,8 +187,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [DetectedLanguage] operation results. # - def detect_language(text_content_type, text_content, custom_headers = nil) - response = detect_language_async(text_content_type, text_content, custom_headers).value! + def detect_language(text_content_type, text_content, custom_headers:nil) + response = detect_language_async(text_content_type, text_content, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -207,8 +206,8 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def detect_language_with_http_info(text_content_type, text_content, custom_headers = nil) - detect_language_async(text_content_type, text_content, custom_headers).value! + def detect_language_with_http_info(text_content_type, text_content, custom_headers:nil) + detect_language_async(text_content_type, text_content, custom_headers:custom_headers).value! end # @@ -225,14 +224,13 @@ module Azure::CognitiveServices::ContentModerator::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def detect_language_async(text_content_type, text_content, custom_headers = nil) + def detect_language_async(text_content_type, text_content, custom_headers:nil) fail ArgumentError, '@client.base_url is nil' if @client.base_url.nil? fail ArgumentError, 'text_content_type is nil' if text_content_type.nil? fail ArgumentError, 'text_content is nil' if text_content.nil? request_headers = {} - request_headers['Content-Type'] = 'text/plain' # Set Headers diff --git a/data/azure_cognitiveservices_contentmoderator/lib/profiles/latest/modules/contentmoderator_profile_module.rb b/data/azure_cognitiveservices_contentmoderator/lib/profiles/latest/modules/contentmoderator_profile_module.rb index a11856222..17a764a1c 100644 --- a/data/azure_cognitiveservices_contentmoderator/lib/profiles/latest/modules/contentmoderator_profile_module.rb +++ b/data/azure_cognitiveservices_contentmoderator/lib/profiles/latest/modules/contentmoderator_profile_module.rb @@ -93,18 +93,18 @@ module Azure::ContentModerator::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::ContentModerator::V1_0::ContentModeratorClient.new(configurable.credentials, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::ContentModerator::V1_0::ContentModeratorClient.new(configurable.credentials, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @image_moderation = client_0.image_moderation - @text_moderation = client_0.text_moderation - @list_management_image_lists = client_0.list_management_image_lists - @list_management_term_lists = client_0.list_management_term_lists - @list_management_image = client_0.list_management_image - @list_management_term = client_0.list_management_term - @reviews = client_0.reviews + add_telemetry(@client_0) + @image_moderation = @client_0.image_moderation + @text_moderation = @client_0.text_moderation + @list_management_image_lists = @client_0.list_management_image_lists + @list_management_term_lists = @client_0.list_management_term_lists + @list_management_image = @client_0.list_management_image + @list_management_term = @client_0.list_management_term + @reviews = @client_0.reviews @model_classes = ModelClasses.new end @@ -114,6 +114,14 @@ module Azure::ContentModerator::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_cognitiveservices_customsearch/lib/1.0/generated/azure_cognitiveservices_customsearch/custom_instance.rb b/data/azure_cognitiveservices_customsearch/lib/1.0/generated/azure_cognitiveservices_customsearch/custom_instance.rb index 81ca85719..670484bd9 100644 --- a/data/azure_cognitiveservices_customsearch/lib/1.0/generated/azure_cognitiveservices_customsearch/custom_instance.rb +++ b/data/azure_cognitiveservices_customsearch/lib/1.0/generated/azure_cognitiveservices_customsearch/custom_instance.rb @@ -209,8 +209,8 @@ module Azure::CognitiveServices::CustomSearch::V1_0 # # @return [SearchResponse] operation results. # - def search(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, custom_config = nil, country_code = nil, count = nil, market = 'en-us', offset = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - response = search_async(query, accept_language, user_agent, client_id, client_ip, location, custom_config, country_code, count, market, offset, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def search(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, custom_config:nil, country_code:nil, count:nil, market:'en-us', offset:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + response = search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, custom_config:custom_config, country_code:country_code, count:count, market:market, offset:offset, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -401,8 +401,8 @@ module Azure::CognitiveServices::CustomSearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def search_with_http_info(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, custom_config = nil, country_code = nil, count = nil, market = 'en-us', offset = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - search_async(query, accept_language, user_agent, client_id, client_ip, location, custom_config, country_code, count, market, offset, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def search_with_http_info(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, custom_config:nil, country_code:nil, count:nil, market:'en-us', offset:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, custom_config:custom_config, country_code:country_code, count:count, market:market, offset:offset, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! end # @@ -592,12 +592,13 @@ module Azure::CognitiveServices::CustomSearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def search_async(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, custom_config = nil, country_code = nil, count = nil, market = 'en-us', offset = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) + def search_async(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, custom_config:nil, country_code:nil, count:nil, market:'en-us', offset:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) x_bing_apis_sdk = 'true' fail ArgumentError, 'query is nil' if query.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/data/azure_cognitiveservices_customsearch/lib/profiles/latest/modules/customsearch_profile_module.rb b/data/azure_cognitiveservices_customsearch/lib/profiles/latest/modules/customsearch_profile_module.rb index c148929de..731a96c34 100644 --- a/data/azure_cognitiveservices_customsearch/lib/profiles/latest/modules/customsearch_profile_module.rb +++ b/data/azure_cognitiveservices_customsearch/lib/profiles/latest/modules/customsearch_profile_module.rb @@ -48,12 +48,12 @@ module Azure::CustomSearch::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::CustomSearch::V1_0::CustomSearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::CustomSearch::V1_0::CustomSearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @custom_instance = client_0.custom_instance + add_telemetry(@client_0) + @custom_instance = @client_0.custom_instance @model_classes = ModelClasses.new end @@ -63,6 +63,14 @@ module Azure::CustomSearch::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_cognitiveservices_entitysearch/lib/1.0/generated/azure_cognitiveservices_entitysearch/entities_operations.rb b/data/azure_cognitiveservices_entitysearch/lib/1.0/generated/azure_cognitiveservices_entitysearch/entities_operations.rb index b3047733c..9f7e4830d 100644 --- a/data/azure_cognitiveservices_entitysearch/lib/1.0/generated/azure_cognitiveservices_entitysearch/entities_operations.rb +++ b/data/azure_cognitiveservices_entitysearch/lib/1.0/generated/azure_cognitiveservices_entitysearch/entities_operations.rb @@ -186,8 +186,8 @@ module Azure::CognitiveServices::EntitySearch::V1_0 # # @return [SearchResponse] operation results. # - def search(query, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = 'en-us', response_filter = nil, response_format = nil, safe_search = nil, set_lang = nil, custom_headers = nil) - response = search_async(query, accept_language, pragma, user_agent, client_id, client_ip, location, country_code, market, response_filter, response_format, safe_search, set_lang, custom_headers).value! + def search(query, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:'en-us', response_filter:nil, response_format:nil, safe_search:nil, set_lang:nil, custom_headers:nil) + response = search_async(query, accept_language:accept_language, pragma:pragma, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, market:market, response_filter:response_filter, response_format:response_format, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -350,8 +350,8 @@ module Azure::CognitiveServices::EntitySearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def search_with_http_info(query, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = 'en-us', response_filter = nil, response_format = nil, safe_search = nil, set_lang = nil, custom_headers = nil) - search_async(query, accept_language, pragma, user_agent, client_id, client_ip, location, country_code, market, response_filter, response_format, safe_search, set_lang, custom_headers).value! + def search_with_http_info(query, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:'en-us', response_filter:nil, response_format:nil, safe_search:nil, set_lang:nil, custom_headers:nil) + search_async(query, accept_language:accept_language, pragma:pragma, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, market:market, response_filter:response_filter, response_format:response_format, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value! end # @@ -513,12 +513,13 @@ module Azure::CognitiveServices::EntitySearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def search_async(query, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = 'en-us', response_filter = nil, response_format = nil, safe_search = nil, set_lang = nil, custom_headers = nil) + def search_async(query, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:'en-us', response_filter:nil, response_format:nil, safe_search:nil, set_lang:nil, custom_headers:nil) x_bing_apis_sdk = 'true' fail ArgumentError, 'query is nil' if query.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/data/azure_cognitiveservices_entitysearch/lib/profiles/latest/modules/entitysearch_profile_module.rb b/data/azure_cognitiveservices_entitysearch/lib/profiles/latest/modules/entitysearch_profile_module.rb index bb93b9352..e9627f881 100644 --- a/data/azure_cognitiveservices_entitysearch/lib/profiles/latest/modules/entitysearch_profile_module.rb +++ b/data/azure_cognitiveservices_entitysearch/lib/profiles/latest/modules/entitysearch_profile_module.rb @@ -75,12 +75,12 @@ module Azure::EntitySearch::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::EntitySearch::V1_0::EntitySearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::EntitySearch::V1_0::EntitySearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @entities_operations = client_0.entities_operations + add_telemetry(@client_0) + @entities_operations = @client_0.entities_operations @model_classes = ModelClasses.new end @@ -90,6 +90,14 @@ module Azure::EntitySearch::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/face.rb b/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/face.rb index c55c3cb24..bd7453abf 100644 --- a/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/face.rb +++ b/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/face.rb @@ -44,8 +44,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Array] operation results. # - def find_similar(face_id, face_list_id = nil, face_ids = nil, max_num_of_candidates_returned = 20, mode = nil, custom_headers = nil) - response = find_similar_async(face_id, face_list_id, face_ids, max_num_of_candidates_returned, mode, custom_headers).value! + def find_similar(face_id, face_list_id:nil, face_ids:nil, max_num_of_candidates_returned:20, mode:nil, custom_headers:nil) + response = find_similar_async(face_id, face_list_id:face_list_id, face_ids:face_ids, max_num_of_candidates_returned:max_num_of_candidates_returned, mode:mode, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -72,8 +72,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def find_similar_with_http_info(face_id, face_list_id = nil, face_ids = nil, max_num_of_candidates_returned = 20, mode = nil, custom_headers = nil) - find_similar_async(face_id, face_list_id, face_ids, max_num_of_candidates_returned, mode, custom_headers).value! + def find_similar_with_http_info(face_id, face_list_id:nil, face_ids:nil, max_num_of_candidates_returned:20, mode:nil, custom_headers:nil) + find_similar_async(face_id, face_list_id:face_list_id, face_ids:face_ids, max_num_of_candidates_returned:max_num_of_candidates_returned, mode:mode, custom_headers:custom_headers).value! end # @@ -99,7 +99,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def find_similar_async(face_id, face_list_id = nil, face_ids = nil, max_num_of_candidates_returned = 20, mode = nil, custom_headers = nil) + def find_similar_async(face_id, face_list_id:nil, face_ids:nil, max_num_of_candidates_returned:20, mode:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'face_id is nil' if face_id.nil? fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64 @@ -118,7 +118,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -196,8 +195,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [GroupResponse] operation results. # - def group(face_ids, custom_headers = nil) - response = group_async(face_ids, custom_headers).value! + def group(face_ids, custom_headers:nil) + response = group_async(face_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -211,8 +210,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def group_with_http_info(face_ids, custom_headers = nil) - group_async(face_ids, custom_headers).value! + def group_with_http_info(face_ids, custom_headers:nil) + group_async(face_ids, custom_headers:custom_headers).value! end # @@ -225,7 +224,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def group_async(face_ids, custom_headers = nil) + def group_async(face_ids, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'face_ids is nil' if face_ids.nil? fail ArgumentError, "'face_ids' should satisfy the constraint - 'MaxItems': '1000'" if !face_ids.nil? && face_ids.length > 1000 @@ -236,7 +235,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -302,8 +300,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Array] operation results. # - def identify(person_group_id, face_ids, max_num_of_candidates_returned = 1, confidence_threshold = nil, custom_headers = nil) - response = identify_async(person_group_id, face_ids, max_num_of_candidates_returned, confidence_threshold, custom_headers).value! + def identify(person_group_id, face_ids, max_num_of_candidates_returned:1, confidence_threshold:nil, custom_headers:nil) + response = identify_async(person_group_id, face_ids, max_num_of_candidates_returned:max_num_of_candidates_returned, confidence_threshold:confidence_threshold, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,8 +319,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def identify_with_http_info(person_group_id, face_ids, max_num_of_candidates_returned = 1, confidence_threshold = nil, custom_headers = nil) - identify_async(person_group_id, face_ids, max_num_of_candidates_returned, confidence_threshold, custom_headers).value! + def identify_with_http_info(person_group_id, face_ids, max_num_of_candidates_returned:1, confidence_threshold:nil, custom_headers:nil) + identify_async(person_group_id, face_ids, max_num_of_candidates_returned:max_num_of_candidates_returned, confidence_threshold:confidence_threshold, custom_headers:custom_headers).value! end # @@ -339,7 +337,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def identify_async(person_group_id, face_ids, max_num_of_candidates_returned = 1, confidence_threshold = nil, custom_headers = nil) + def identify_async(person_group_id, face_ids, max_num_of_candidates_returned:1, confidence_threshold:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -358,7 +356,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -437,8 +434,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [VerifyResult] operation results. # - def verify(face_id1, face_id2, custom_headers = nil) - response = verify_async(face_id1, face_id2, custom_headers).value! + def verify(face_id1, face_id2, custom_headers:nil) + response = verify_async(face_id1, face_id2, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -453,8 +450,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def verify_with_http_info(face_id1, face_id2, custom_headers = nil) - verify_async(face_id1, face_id2, custom_headers).value! + def verify_with_http_info(face_id1, face_id2, custom_headers:nil) + verify_async(face_id1, face_id2, custom_headers:custom_headers).value! end # @@ -468,7 +465,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def verify_async(face_id1, face_id2, custom_headers = nil) + def verify_async(face_id1, face_id2, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'face_id1 is nil' if face_id1.nil? fail ArgumentError, 'face_id2 is nil' if face_id2.nil? @@ -480,7 +477,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -551,8 +547,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Array] operation results. # - def detect(url, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil) - response = detect_async(url, return_face_id, return_face_landmarks, return_face_attributes, custom_headers).value! + def detect(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil) + response = detect_async(url, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -575,8 +571,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def detect_with_http_info(url, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil) - detect_async(url, return_face_id, return_face_landmarks, return_face_attributes, custom_headers).value! + def detect_with_http_info(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil) + detect_async(url, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, custom_headers:custom_headers).value! end # @@ -598,7 +594,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def detect_async(url, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil) + def detect_async(url, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'url is nil' if url.nil? @@ -608,7 +604,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -692,8 +687,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [VerifyResult] operation results. # - def verify_with_person_group(face_id, person_id, person_group_id, custom_headers = nil) - response = verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers).value! + def verify_with_person_group(face_id, person_id, person_group_id, custom_headers:nil) + response = verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -712,8 +707,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def verify_with_person_group_with_http_info(face_id, person_id, person_group_id, custom_headers = nil) - verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers).value! + def verify_with_person_group_with_http_info(face_id, person_id, person_group_id, custom_headers:nil) + verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers:custom_headers).value! end # @@ -731,7 +726,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers = nil) + def verify_with_person_group_async(face_id, person_id, person_group_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'face_id is nil' if face_id.nil? fail ArgumentError, 'person_id is nil' if person_id.nil? @@ -747,7 +742,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -818,8 +812,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Array] operation results. # - def detect_in_stream(image, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil) - response = detect_in_stream_async(image, return_face_id, return_face_landmarks, return_face_attributes, custom_headers).value! + def detect_in_stream(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil) + response = detect_in_stream_async(image, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -842,8 +836,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def detect_in_stream_with_http_info(image, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil) - detect_in_stream_async(image, return_face_id, return_face_landmarks, return_face_attributes, custom_headers).value! + def detect_in_stream_with_http_info(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil) + detect_in_stream_async(image, return_face_id:return_face_id, return_face_landmarks:return_face_landmarks, return_face_attributes:return_face_attributes, custom_headers:custom_headers).value! end # @@ -865,13 +859,12 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def detect_in_stream_async(image, return_face_id = true, return_face_landmarks = false, return_face_attributes = nil, custom_headers = nil) + def detect_in_stream_async(image, return_face_id:true, return_face_landmarks:false, return_face_attributes:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'image is nil' if image.nil? request_headers = {} - request_headers['Content-Type'] = 'application/octet-stream' # Set Headers diff --git a/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/face_list.rb b/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/face_list.rb index c74ec9c76..17fda51f4 100644 --- a/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/face_list.rb +++ b/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/face_list.rb @@ -33,8 +33,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def create(face_list_id, name = nil, user_data = nil, custom_headers = nil) - response = create_async(face_list_id, name, user_data, custom_headers).value! + def create(face_list_id, name:nil, user_data:nil, custom_headers:nil) + response = create_async(face_list_id, name:name, user_data:user_data, custom_headers:custom_headers).value! nil end @@ -51,8 +51,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(face_list_id, name = nil, user_data = nil, custom_headers = nil) - create_async(face_list_id, name, user_data, custom_headers).value! + def create_with_http_info(face_list_id, name:nil, user_data:nil, custom_headers:nil) + create_async(face_list_id, name:name, user_data:user_data, custom_headers:custom_headers).value! end # @@ -68,7 +68,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(face_list_id, name = nil, user_data = nil, custom_headers = nil) + def create_async(face_list_id, name:nil, user_data:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'face_list_id is nil' if face_list_id.nil? fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64 @@ -83,7 +83,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -135,8 +134,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [GetFaceListResult] operation results. # - def get(face_list_id, custom_headers = nil) - response = get_async(face_list_id, custom_headers).value! + def get(face_list_id, custom_headers:nil) + response = get_async(face_list_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -149,8 +148,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(face_list_id, custom_headers = nil) - get_async(face_list_id, custom_headers).value! + def get_with_http_info(face_list_id, custom_headers:nil) + get_async(face_list_id, custom_headers:custom_headers).value! end # @@ -162,7 +161,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(face_list_id, custom_headers = nil) + def get_async(face_list_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'face_list_id is nil' if face_list_id.nil? fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64 @@ -170,6 +169,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -225,8 +225,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def update(face_list_id, name = nil, user_data = nil, custom_headers = nil) - response = update_async(face_list_id, name, user_data, custom_headers).value! + def update(face_list_id, name:nil, user_data:nil, custom_headers:nil) + response = update_async(face_list_id, name:name, user_data:user_data, custom_headers:custom_headers).value! nil end @@ -242,8 +242,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(face_list_id, name = nil, user_data = nil, custom_headers = nil) - update_async(face_list_id, name, user_data, custom_headers).value! + def update_with_http_info(face_list_id, name:nil, user_data:nil, custom_headers:nil) + update_async(face_list_id, name:name, user_data:user_data, custom_headers:custom_headers).value! end # @@ -258,7 +258,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(face_list_id, name = nil, user_data = nil, custom_headers = nil) + def update_async(face_list_id, name:nil, user_data:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'face_list_id is nil' if face_list_id.nil? fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64 @@ -273,7 +273,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -325,8 +324,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def delete(face_list_id, custom_headers = nil) - response = delete_async(face_list_id, custom_headers).value! + def delete(face_list_id, custom_headers:nil) + response = delete_async(face_list_id, custom_headers:custom_headers).value! nil end @@ -340,8 +339,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(face_list_id, custom_headers = nil) - delete_async(face_list_id, custom_headers).value! + def delete_with_http_info(face_list_id, custom_headers:nil) + delete_async(face_list_id, custom_headers:custom_headers).value! end # @@ -354,7 +353,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(face_list_id, custom_headers = nil) + def delete_async(face_list_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'face_list_id is nil' if face_list_id.nil? fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64 @@ -362,6 +361,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -405,8 +405,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Array] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -419,8 +419,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -432,11 +432,12 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -506,8 +507,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def delete_face(face_list_id, persisted_face_id, custom_headers = nil) - response = delete_face_async(face_list_id, persisted_face_id, custom_headers).value! + def delete_face(face_list_id, persisted_face_id, custom_headers:nil) + response = delete_face_async(face_list_id, persisted_face_id, custom_headers:custom_headers).value! nil end @@ -522,8 +523,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_face_with_http_info(face_list_id, persisted_face_id, custom_headers = nil) - delete_face_async(face_list_id, persisted_face_id, custom_headers).value! + def delete_face_with_http_info(face_list_id, persisted_face_id, custom_headers:nil) + delete_face_async(face_list_id, persisted_face_id, custom_headers:custom_headers).value! end # @@ -537,7 +538,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_face_async(face_list_id, persisted_face_id, custom_headers = nil) + def delete_face_async(face_list_id, persisted_face_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'face_list_id is nil' if face_list_id.nil? fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64 @@ -546,6 +547,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -600,8 +602,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [PersistedFaceResult] operation results. # - def add_face(face_list_id, url, user_data = nil, target_face = nil, custom_headers = nil) - response = add_face_async(face_list_id, url, user_data, target_face, custom_headers).value! + def add_face(face_list_id, url, user_data:nil, target_face:nil, custom_headers:nil) + response = add_face_async(face_list_id, url, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -625,8 +627,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_face_with_http_info(face_list_id, url, user_data = nil, target_face = nil, custom_headers = nil) - add_face_async(face_list_id, url, user_data, target_face, custom_headers).value! + def add_face_with_http_info(face_list_id, url, user_data:nil, target_face:nil, custom_headers:nil) + add_face_async(face_list_id, url, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value! end # @@ -649,7 +651,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_face_async(face_list_id, url, user_data = nil, target_face = nil, custom_headers = nil) + def add_face_async(face_list_id, url, user_data:nil, target_face:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'face_list_id is nil' if face_list_id.nil? fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64 @@ -663,7 +665,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -737,8 +738,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [PersistedFaceResult] operation results. # - def add_face_from_stream(face_list_id, image, user_data = nil, target_face = nil, custom_headers = nil) - response = add_face_from_stream_async(face_list_id, image, user_data, target_face, custom_headers).value! + def add_face_from_stream(face_list_id, image, user_data:nil, target_face:nil, custom_headers:nil) + response = add_face_from_stream_async(face_list_id, image, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -762,8 +763,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_face_from_stream_with_http_info(face_list_id, image, user_data = nil, target_face = nil, custom_headers = nil) - add_face_from_stream_async(face_list_id, image, user_data, target_face, custom_headers).value! + def add_face_from_stream_with_http_info(face_list_id, image, user_data:nil, target_face:nil, custom_headers:nil) + add_face_from_stream_async(face_list_id, image, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value! end # @@ -786,7 +787,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_face_from_stream_async(face_list_id, image, user_data = nil, target_face = nil, custom_headers = nil) + def add_face_from_stream_async(face_list_id, image, user_data:nil, target_face:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'face_list_id is nil' if face_list_id.nil? fail ArgumentError, "'face_list_id' should satisfy the constraint - 'MaxLength': '64'" if !face_list_id.nil? && face_list_id.length > 64 @@ -796,7 +797,6 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/octet-stream' # Set Headers diff --git a/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/person.rb b/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/person.rb index c269108d7..615d10763 100644 --- a/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/person.rb +++ b/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/person.rb @@ -35,8 +35,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [CreatePersonResult] operation results. # - def create(person_group_id, name = nil, user_data = nil, custom_headers = nil) - response = create_async(person_group_id, name, user_data, custom_headers).value! + def create(person_group_id, name:nil, user_data:nil, custom_headers:nil) + response = create_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(person_group_id, name = nil, user_data = nil, custom_headers = nil) - create_async(person_group_id, name, user_data, custom_headers).value! + def create_with_http_info(person_group_id, name:nil, user_data:nil, custom_headers:nil) + create_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(person_group_id, name = nil, user_data = nil, custom_headers = nil) + def create_async(person_group_id, name:nil, user_data:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -87,7 +87,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -155,8 +154,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Array] operation results. # - def list(person_group_id, start = nil, top = nil, custom_headers = nil) - response = list_async(person_group_id, start, top, custom_headers).value! + def list(person_group_id, start:nil, top:nil, custom_headers:nil) + response = list_async(person_group_id, start:start, top:top, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -175,8 +174,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(person_group_id, start = nil, top = nil, custom_headers = nil) - list_async(person_group_id, start, top, custom_headers).value! + def list_with_http_info(person_group_id, start:nil, top:nil, custom_headers:nil) + list_async(person_group_id, start:start, top:top, custom_headers:custom_headers).value! end # @@ -194,7 +193,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(person_group_id, start = nil, top = nil, custom_headers = nil) + def list_async(person_group_id, start:nil, top:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -204,6 +203,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -276,8 +276,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def delete(person_group_id, person_id, custom_headers = nil) - response = delete_async(person_group_id, person_id, custom_headers).value! + def delete(person_group_id, person_id, custom_headers:nil) + response = delete_async(person_group_id, person_id, custom_headers:custom_headers).value! nil end @@ -293,8 +293,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(person_group_id, person_id, custom_headers = nil) - delete_async(person_group_id, person_id, custom_headers).value! + def delete_with_http_info(person_group_id, person_id, custom_headers:nil) + delete_async(person_group_id, person_id, custom_headers:custom_headers).value! end # @@ -309,7 +309,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(person_group_id, person_id, custom_headers = nil) + def delete_async(person_group_id, person_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -318,6 +318,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -364,8 +365,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [PersonResult] operation results. # - def get(person_group_id, person_id, custom_headers = nil) - response = get_async(person_group_id, person_id, custom_headers).value! + def get(person_group_id, person_id, custom_headers:nil) + response = get_async(person_group_id, person_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -381,8 +382,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(person_group_id, person_id, custom_headers = nil) - get_async(person_group_id, person_id, custom_headers).value! + def get_with_http_info(person_group_id, person_id, custom_headers:nil) + get_async(person_group_id, person_id, custom_headers:custom_headers).value! end # @@ -397,7 +398,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(person_group_id, person_id, custom_headers = nil) + def get_async(person_group_id, person_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -406,6 +407,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -464,8 +466,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def update(person_group_id, person_id, name = nil, user_data = nil, custom_headers = nil) - response = update_async(person_group_id, person_id, name, user_data, custom_headers).value! + def update(person_group_id, person_id, name:nil, user_data:nil, custom_headers:nil) + response = update_async(person_group_id, person_id, name:name, user_data:user_data, custom_headers:custom_headers).value! nil end @@ -484,8 +486,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(person_group_id, person_id, name = nil, user_data = nil, custom_headers = nil) - update_async(person_group_id, person_id, name, user_data, custom_headers).value! + def update_with_http_info(person_group_id, person_id, name:nil, user_data:nil, custom_headers:nil) + update_async(person_group_id, person_id, name:name, user_data:user_data, custom_headers:custom_headers).value! end # @@ -503,7 +505,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(person_group_id, person_id, name = nil, user_data = nil, custom_headers = nil) + def update_async(person_group_id, person_id, name:nil, user_data:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -519,7 +521,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -575,8 +576,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def delete_face(person_group_id, person_id, persisted_face_id, custom_headers = nil) - response = delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers).value! + def delete_face(person_group_id, person_id, persisted_face_id, custom_headers:nil) + response = delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers:custom_headers).value! nil end @@ -594,8 +595,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_face_with_http_info(person_group_id, person_id, persisted_face_id, custom_headers = nil) - delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers).value! + def delete_face_with_http_info(person_group_id, person_id, persisted_face_id, custom_headers:nil) + delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers:custom_headers).value! end # @@ -612,7 +613,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers = nil) + def delete_face_async(person_group_id, person_id, persisted_face_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -622,6 +623,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -670,8 +672,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [PersonFaceResult] operation results. # - def get_face(person_group_id, person_id, persisted_face_id, custom_headers = nil) - response = get_face_async(person_group_id, person_id, persisted_face_id, custom_headers).value! + def get_face(person_group_id, person_id, persisted_face_id, custom_headers:nil) + response = get_face_async(person_group_id, person_id, persisted_face_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -689,8 +691,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_face_with_http_info(person_group_id, person_id, persisted_face_id, custom_headers = nil) - get_face_async(person_group_id, person_id, persisted_face_id, custom_headers).value! + def get_face_with_http_info(person_group_id, person_id, persisted_face_id, custom_headers:nil) + get_face_async(person_group_id, person_id, persisted_face_id, custom_headers:custom_headers).value! end # @@ -707,7 +709,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_face_async(person_group_id, person_id, persisted_face_id, custom_headers = nil) + def get_face_async(person_group_id, person_id, persisted_face_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -717,6 +719,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -775,8 +778,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def update_face(person_group_id, person_id, persisted_face_id, user_data = nil, custom_headers = nil) - response = update_face_async(person_group_id, person_id, persisted_face_id, user_data, custom_headers).value! + def update_face(person_group_id, person_id, persisted_face_id, user_data:nil, custom_headers:nil) + response = update_face_async(person_group_id, person_id, persisted_face_id, user_data:user_data, custom_headers:custom_headers).value! nil end @@ -795,8 +798,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_face_with_http_info(person_group_id, person_id, persisted_face_id, user_data = nil, custom_headers = nil) - update_face_async(person_group_id, person_id, persisted_face_id, user_data, custom_headers).value! + def update_face_with_http_info(person_group_id, person_id, persisted_face_id, user_data:nil, custom_headers:nil) + update_face_async(person_group_id, person_id, persisted_face_id, user_data:user_data, custom_headers:custom_headers).value! end # @@ -814,7 +817,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_face_async(person_group_id, person_id, persisted_face_id, user_data = nil, custom_headers = nil) + def update_face_async(person_group_id, person_id, persisted_face_id, user_data:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -829,7 +832,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -893,8 +895,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [PersistedFaceResult] operation results. # - def add_person_face(person_group_id, person_id, url, user_data = nil, target_face = nil, custom_headers = nil) - response = add_person_face_async(person_group_id, person_id, url, user_data, target_face, custom_headers).value! + def add_person_face(person_group_id, person_id, url, user_data:nil, target_face:nil, custom_headers:nil) + response = add_person_face_async(person_group_id, person_id, url, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -919,8 +921,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_person_face_with_http_info(person_group_id, person_id, url, user_data = nil, target_face = nil, custom_headers = nil) - add_person_face_async(person_group_id, person_id, url, user_data, target_face, custom_headers).value! + def add_person_face_with_http_info(person_group_id, person_id, url, user_data:nil, target_face:nil, custom_headers:nil) + add_person_face_async(person_group_id, person_id, url, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value! end # @@ -944,7 +946,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_person_face_async(person_group_id, person_id, url, user_data = nil, target_face = nil, custom_headers = nil) + def add_person_face_async(person_group_id, person_id, url, user_data:nil, target_face:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -959,7 +961,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1034,8 +1035,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [PersistedFaceResult] operation results. # - def add_person_face_from_stream(person_group_id, person_id, image, user_data = nil, target_face = nil, custom_headers = nil) - response = add_person_face_from_stream_async(person_group_id, person_id, image, user_data, target_face, custom_headers).value! + def add_person_face_from_stream(person_group_id, person_id, image, user_data:nil, target_face:nil, custom_headers:nil) + response = add_person_face_from_stream_async(person_group_id, person_id, image, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1060,8 +1061,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_person_face_from_stream_with_http_info(person_group_id, person_id, image, user_data = nil, target_face = nil, custom_headers = nil) - add_person_face_from_stream_async(person_group_id, person_id, image, user_data, target_face, custom_headers).value! + def add_person_face_from_stream_with_http_info(person_group_id, person_id, image, user_data:nil, target_face:nil, custom_headers:nil) + add_person_face_from_stream_async(person_group_id, person_id, image, user_data:user_data, target_face:target_face, custom_headers:custom_headers).value! end # @@ -1085,7 +1086,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_person_face_from_stream_async(person_group_id, person_id, image, user_data = nil, target_face = nil, custom_headers = nil) + def add_person_face_from_stream_async(person_group_id, person_id, image, user_data:nil, target_face:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -1096,7 +1097,6 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} - request_headers['Content-Type'] = 'application/octet-stream' # Set Headers diff --git a/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/person_group.rb b/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/person_group.rb index 869b51ffe..e56cdbe2d 100644 --- a/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/person_group.rb +++ b/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/person_group.rb @@ -33,8 +33,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def create(person_group_id, name = nil, user_data = nil, custom_headers = nil) - response = create_async(person_group_id, name, user_data, custom_headers).value! + def create(person_group_id, name:nil, user_data:nil, custom_headers:nil) + response = create_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value! nil end @@ -51,8 +51,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(person_group_id, name = nil, user_data = nil, custom_headers = nil) - create_async(person_group_id, name, user_data, custom_headers).value! + def create_with_http_info(person_group_id, name:nil, user_data:nil, custom_headers:nil) + create_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value! end # @@ -68,7 +68,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(person_group_id, name = nil, user_data = nil, custom_headers = nil) + def create_async(person_group_id, name:nil, user_data:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -83,7 +83,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -136,8 +135,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def delete(person_group_id, custom_headers = nil) - response = delete_async(person_group_id, custom_headers).value! + def delete(person_group_id, custom_headers:nil) + response = delete_async(person_group_id, custom_headers:custom_headers).value! nil end @@ -152,8 +151,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(person_group_id, custom_headers = nil) - delete_async(person_group_id, custom_headers).value! + def delete_with_http_info(person_group_id, custom_headers:nil) + delete_async(person_group_id, custom_headers:custom_headers).value! end # @@ -167,7 +166,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(person_group_id, custom_headers = nil) + def delete_async(person_group_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -175,6 +174,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -218,8 +218,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [PersonGroupResult] operation results. # - def get(person_group_id, custom_headers = nil) - response = get_async(person_group_id, custom_headers).value! + def get(person_group_id, custom_headers:nil) + response = get_async(person_group_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -232,8 +232,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(person_group_id, custom_headers = nil) - get_async(person_group_id, custom_headers).value! + def get_with_http_info(person_group_id, custom_headers:nil) + get_async(person_group_id, custom_headers:custom_headers).value! end # @@ -245,7 +245,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(person_group_id, custom_headers = nil) + def get_async(person_group_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -253,6 +253,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -310,8 +311,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def update(person_group_id, name = nil, user_data = nil, custom_headers = nil) - response = update_async(person_group_id, name, user_data, custom_headers).value! + def update(person_group_id, name:nil, user_data:nil, custom_headers:nil) + response = update_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value! nil end @@ -329,8 +330,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(person_group_id, name = nil, user_data = nil, custom_headers = nil) - update_async(person_group_id, name, user_data, custom_headers).value! + def update_with_http_info(person_group_id, name:nil, user_data:nil, custom_headers:nil) + update_async(person_group_id, name:name, user_data:user_data, custom_headers:custom_headers).value! end # @@ -347,7 +348,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(person_group_id, name = nil, user_data = nil, custom_headers = nil) + def update_async(person_group_id, name:nil, user_data:nil, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -362,7 +363,6 @@ module Azure::CognitiveServices::Face::V1_0 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -414,8 +414,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [TrainingStatus] operation results. # - def get_training_status(person_group_id, custom_headers = nil) - response = get_training_status_async(person_group_id, custom_headers).value! + def get_training_status(person_group_id, custom_headers:nil) + response = get_training_status_async(person_group_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -428,8 +428,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_training_status_with_http_info(person_group_id, custom_headers = nil) - get_training_status_async(person_group_id, custom_headers).value! + def get_training_status_with_http_info(person_group_id, custom_headers:nil) + get_training_status_async(person_group_id, custom_headers:custom_headers).value! end # @@ -441,7 +441,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_training_status_async(person_group_id, custom_headers = nil) + def get_training_status_async(person_group_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -449,6 +449,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -504,8 +505,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Array] operation results. # - def list(start = nil, top = 1000, custom_headers = nil) - response = list_async(start, top, custom_headers).value! + def list(start:nil, top:1000, custom_headers:nil) + response = list_async(start:start, top:top, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -520,8 +521,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(start = nil, top = 1000, custom_headers = nil) - list_async(start, top, custom_headers).value! + def list_with_http_info(start:nil, top:1000, custom_headers:nil) + list_async(start:start, top:top, custom_headers:custom_headers).value! end # @@ -535,7 +536,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(start = nil, top = 1000, custom_headers = nil) + def list_async(start:nil, top:1000, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, "'start' should satisfy the constraint - 'MaxLength': '64'" if !start.nil? && start.length > 64 fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000 @@ -543,6 +544,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -612,8 +614,8 @@ module Azure::CognitiveServices::Face::V1_0 # will be added to the HTTP request. # # - def train(person_group_id, custom_headers = nil) - response = train_async(person_group_id, custom_headers).value! + def train(person_group_id, custom_headers:nil) + response = train_async(person_group_id, custom_headers:custom_headers).value! nil end @@ -627,8 +629,8 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def train_with_http_info(person_group_id, custom_headers = nil) - train_async(person_group_id, custom_headers).value! + def train_with_http_info(person_group_id, custom_headers:nil) + train_async(person_group_id, custom_headers:custom_headers).value! end # @@ -641,7 +643,7 @@ module Azure::CognitiveServices::Face::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def train_async(person_group_id, custom_headers = nil) + def train_async(person_group_id, custom_headers:nil) fail ArgumentError, '@client.azure_region is nil' if @client.azure_region.nil? fail ArgumentError, 'person_group_id is nil' if person_group_id.nil? fail ArgumentError, "'person_group_id' should satisfy the constraint - 'MaxLength': '64'" if !person_group_id.nil? && person_group_id.length > 64 @@ -649,6 +651,7 @@ module Azure::CognitiveServices::Face::V1_0 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/data/azure_cognitiveservices_face/lib/profiles/latest/modules/face_profile_module.rb b/data/azure_cognitiveservices_face/lib/profiles/latest/modules/face_profile_module.rb index 07d673678..74dfb0759 100644 --- a/data/azure_cognitiveservices_face/lib/profiles/latest/modules/face_profile_module.rb +++ b/data/azure_cognitiveservices_face/lib/profiles/latest/modules/face_profile_module.rb @@ -81,15 +81,15 @@ module Azure::Face::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::Face::V1_0::FaceClient.new(configurable.credentials, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::Face::V1_0::FaceClient.new(configurable.credentials, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @face = client_0.face - @person = client_0.person - @person_group = client_0.person_group - @face_list = client_0.face_list + add_telemetry(@client_0) + @face = @client_0.face + @person = @client_0.person + @person_group = @client_0.person_group + @face_list = @client_0.face_list @model_classes = ModelClasses.new end @@ -99,6 +99,14 @@ module Azure::Face::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_cognitiveservices_imagesearch/lib/1.0/generated/azure_cognitiveservices_imagesearch/images_operations.rb b/data/azure_cognitiveservices_imagesearch/lib/1.0/generated/azure_cognitiveservices_imagesearch/images_operations.rb index d979a349e..3b5bdb58a 100644 --- a/data/azure_cognitiveservices_imagesearch/lib/1.0/generated/azure_cognitiveservices_imagesearch/images_operations.rb +++ b/data/azure_cognitiveservices_imagesearch/lib/1.0/generated/azure_cognitiveservices_imagesearch/images_operations.rb @@ -335,8 +335,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0 # # @return [Images] operation results. # - def search(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, aspect = nil, color = nil, country_code = nil, count = nil, freshness = nil, height = nil, id = nil, image_content = nil, image_type = nil, license = nil, market = nil, max_file_size = nil, max_height = nil, max_width = nil, min_file_size = nil, min_height = nil, min_width = nil, offset = nil, safe_search = nil, size = nil, set_lang = nil, width = nil, custom_headers = nil) - response = search_async(query, accept_language, user_agent, client_id, client_ip, location, aspect, color, country_code, count, freshness, height, id, image_content, image_type, license, market, max_file_size, max_height, max_width, min_file_size, min_height, min_width, offset, safe_search, size, set_lang, width, custom_headers).value! + def search(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, aspect:nil, color:nil, country_code:nil, count:nil, freshness:nil, height:nil, id:nil, image_content:nil, image_type:nil, license:nil, market:nil, max_file_size:nil, max_height:nil, max_width:nil, min_file_size:nil, min_height:nil, min_width:nil, offset:nil, safe_search:nil, size:nil, set_lang:nil, width:nil, custom_headers:nil) + response = search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, aspect:aspect, color:color, country_code:country_code, count:count, freshness:freshness, height:height, id:id, image_content:image_content, image_type:image_type, license:license, market:market, max_file_size:max_file_size, max_height:max_height, max_width:max_width, min_file_size:min_file_size, min_height:min_height, min_width:min_width, offset:offset, safe_search:safe_search, size:size, set_lang:set_lang, width:width, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -649,8 +649,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def search_with_http_info(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, aspect = nil, color = nil, country_code = nil, count = nil, freshness = nil, height = nil, id = nil, image_content = nil, image_type = nil, license = nil, market = nil, max_file_size = nil, max_height = nil, max_width = nil, min_file_size = nil, min_height = nil, min_width = nil, offset = nil, safe_search = nil, size = nil, set_lang = nil, width = nil, custom_headers = nil) - search_async(query, accept_language, user_agent, client_id, client_ip, location, aspect, color, country_code, count, freshness, height, id, image_content, image_type, license, market, max_file_size, max_height, max_width, min_file_size, min_height, min_width, offset, safe_search, size, set_lang, width, custom_headers).value! + def search_with_http_info(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, aspect:nil, color:nil, country_code:nil, count:nil, freshness:nil, height:nil, id:nil, image_content:nil, image_type:nil, license:nil, market:nil, max_file_size:nil, max_height:nil, max_width:nil, min_file_size:nil, min_height:nil, min_width:nil, offset:nil, safe_search:nil, size:nil, set_lang:nil, width:nil, custom_headers:nil) + search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, aspect:aspect, color:color, country_code:country_code, count:count, freshness:freshness, height:height, id:id, image_content:image_content, image_type:image_type, license:license, market:market, max_file_size:max_file_size, max_height:max_height, max_width:max_width, min_file_size:min_file_size, min_height:min_height, min_width:min_width, offset:offset, safe_search:safe_search, size:size, set_lang:set_lang, width:width, custom_headers:custom_headers).value! end # @@ -962,12 +962,13 @@ module Azure::CognitiveServices::ImageSearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def search_async(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, aspect = nil, color = nil, country_code = nil, count = nil, freshness = nil, height = nil, id = nil, image_content = nil, image_type = nil, license = nil, market = nil, max_file_size = nil, max_height = nil, max_width = nil, min_file_size = nil, min_height = nil, min_width = nil, offset = nil, safe_search = nil, size = nil, set_lang = nil, width = nil, custom_headers = nil) + def search_async(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, aspect:nil, color:nil, country_code:nil, count:nil, freshness:nil, height:nil, id:nil, image_content:nil, image_type:nil, license:nil, market:nil, max_file_size:nil, max_height:nil, max_width:nil, min_file_size:nil, min_height:nil, min_width:nil, offset:nil, safe_search:nil, size:nil, set_lang:nil, width:nil, custom_headers:nil) x_bing_apis_sdk = 'true' fail ArgumentError, 'query is nil' if query.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1296,8 +1297,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0 # # @return [ImageInsights] operation results. # - def details(query, accept_language = nil, content_type = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, crop_bottom = nil, crop_left = nil, crop_right = nil, crop_top = nil, crop_type = nil, country_code = nil, id = nil, image_url = nil, insights_token = nil, modules = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil) - response = details_async(query, accept_language, content_type, user_agent, client_id, client_ip, location, crop_bottom, crop_left, crop_right, crop_top, crop_type, country_code, id, image_url, insights_token, modules, market, safe_search, set_lang, custom_headers).value! + def details(query, accept_language:nil, content_type:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, crop_bottom:nil, crop_left:nil, crop_right:nil, crop_top:nil, crop_type:nil, country_code:nil, id:nil, image_url:nil, insights_token:nil, modules:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil) + response = details_async(query, accept_language:accept_language, content_type:content_type, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, crop_bottom:crop_bottom, crop_left:crop_left, crop_right:crop_right, crop_top:crop_top, crop_type:crop_type, country_code:country_code, id:id, image_url:image_url, insights_token:insights_token, modules:modules, market:market, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1581,8 +1582,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def details_with_http_info(query, accept_language = nil, content_type = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, crop_bottom = nil, crop_left = nil, crop_right = nil, crop_top = nil, crop_type = nil, country_code = nil, id = nil, image_url = nil, insights_token = nil, modules = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil) - details_async(query, accept_language, content_type, user_agent, client_id, client_ip, location, crop_bottom, crop_left, crop_right, crop_top, crop_type, country_code, id, image_url, insights_token, modules, market, safe_search, set_lang, custom_headers).value! + def details_with_http_info(query, accept_language:nil, content_type:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, crop_bottom:nil, crop_left:nil, crop_right:nil, crop_top:nil, crop_type:nil, country_code:nil, id:nil, image_url:nil, insights_token:nil, modules:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil) + details_async(query, accept_language:accept_language, content_type:content_type, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, crop_bottom:crop_bottom, crop_left:crop_left, crop_right:crop_right, crop_top:crop_top, crop_type:crop_type, country_code:country_code, id:id, image_url:image_url, insights_token:insights_token, modules:modules, market:market, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value! end # @@ -1865,12 +1866,13 @@ module Azure::CognitiveServices::ImageSearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def details_async(query, accept_language = nil, content_type = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, crop_bottom = nil, crop_left = nil, crop_right = nil, crop_top = nil, crop_type = nil, country_code = nil, id = nil, image_url = nil, insights_token = nil, modules = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil) + def details_async(query, accept_language:nil, content_type:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, crop_bottom:nil, crop_left:nil, crop_right:nil, crop_top:nil, crop_type:nil, country_code:nil, id:nil, image_url:nil, insights_token:nil, modules:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil) x_bing_apis_sdk = 'true' fail ArgumentError, 'query is nil' if query.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2099,8 +2101,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0 # # @return [TrendingImages] operation results. # - def trending(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil) - response = trending_async(accept_language, user_agent, client_id, client_ip, location, country_code, market, safe_search, set_lang, custom_headers).value! + def trending(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil) + response = trending_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, market:market, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2283,8 +2285,8 @@ module Azure::CognitiveServices::ImageSearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def trending_with_http_info(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil) - trending_async(accept_language, user_agent, client_id, client_ip, location, country_code, market, safe_search, set_lang, custom_headers).value! + def trending_with_http_info(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil) + trending_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, market:market, safe_search:safe_search, set_lang:set_lang, custom_headers:custom_headers).value! end # @@ -2466,11 +2468,12 @@ module Azure::CognitiveServices::ImageSearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def trending_async(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = nil, safe_search = nil, set_lang = nil, custom_headers = nil) + def trending_async(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:nil, safe_search:nil, set_lang:nil, custom_headers:nil) x_bing_apis_sdk = 'true' request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/data/azure_cognitiveservices_imagesearch/lib/profiles/latest/modules/imagesearch_profile_module.rb b/data/azure_cognitiveservices_imagesearch/lib/profiles/latest/modules/imagesearch_profile_module.rb index 1fac2483b..40e661808 100644 --- a/data/azure_cognitiveservices_imagesearch/lib/profiles/latest/modules/imagesearch_profile_module.rb +++ b/data/azure_cognitiveservices_imagesearch/lib/profiles/latest/modules/imagesearch_profile_module.rb @@ -87,12 +87,12 @@ module Azure::ImageSearch::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::ImageSearch::V1_0::ImageSearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::ImageSearch::V1_0::ImageSearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @images_operations = client_0.images_operations + add_telemetry(@client_0) + @images_operations = @client_0.images_operations @model_classes = ModelClasses.new end @@ -102,6 +102,14 @@ module Azure::ImageSearch::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_cognitiveservices_newssearch/lib/1.0/generated/azure_cognitiveservices_newssearch/news_operations.rb b/data/azure_cognitiveservices_newssearch/lib/1.0/generated/azure_cognitiveservices_newssearch/news_operations.rb index cdae00955..82dec87ac 100644 --- a/data/azure_cognitiveservices_newssearch/lib/1.0/generated/azure_cognitiveservices_newssearch/news_operations.rb +++ b/data/azure_cognitiveservices_newssearch/lib/1.0/generated/azure_cognitiveservices_newssearch/news_operations.rb @@ -265,8 +265,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0 # # @return [News] operation results. # - def search(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, freshness = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - response = search_async(query, accept_language, user_agent, client_id, client_ip, location, country_code, count, freshness, market, offset, original_image, safe_search, set_lang, sort_by, text_decorations, text_format, custom_headers).value! + def search(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, freshness:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + response = search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, count:count, freshness:freshness, market:market, offset:offset, original_image:original_image, safe_search:safe_search, set_lang:set_lang, sort_by:sort_by, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -509,8 +509,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def search_with_http_info(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, freshness = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - search_async(query, accept_language, user_agent, client_id, client_ip, location, country_code, count, freshness, market, offset, original_image, safe_search, set_lang, sort_by, text_decorations, text_format, custom_headers).value! + def search_with_http_info(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, freshness:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, count:count, freshness:freshness, market:market, offset:offset, original_image:original_image, safe_search:safe_search, set_lang:set_lang, sort_by:sort_by, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! end # @@ -752,12 +752,13 @@ module Azure::CognitiveServices::NewsSearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def search_async(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, freshness = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil) + def search_async(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, freshness:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil) x_bing_apis_sdk = 'true' fail ArgumentError, 'query is nil' if query.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1047,8 +1048,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0 # # @return [News] operation results. # - def category(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, category = nil, count = nil, headline_count = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - response = category_async(accept_language, user_agent, client_id, client_ip, location, country_code, category, count, headline_count, market, offset, original_image, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def category(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, category:nil, count:nil, headline_count:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + response = category_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, category:category, count:count, headline_count:headline_count, market:market, offset:offset, original_image:original_image, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1293,8 +1294,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def category_with_http_info(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, category = nil, count = nil, headline_count = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - category_async(accept_language, user_agent, client_id, client_ip, location, country_code, category, count, headline_count, market, offset, original_image, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def category_with_http_info(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, category:nil, count:nil, headline_count:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + category_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, category:category, count:count, headline_count:headline_count, market:market, offset:offset, original_image:original_image, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! end # @@ -1538,11 +1539,12 @@ module Azure::CognitiveServices::NewsSearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def category_async(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, category = nil, count = nil, headline_count = nil, market = nil, offset = nil, original_image = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) + def category_async(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, category:nil, count:nil, headline_count:nil, market:nil, offset:nil, original_image:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) x_bing_apis_sdk = 'true' request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1813,8 +1815,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0 # # @return [TrendingTopics] operation results. # - def trending(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, market = nil, offset = nil, safe_search = nil, set_lang = nil, since = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - response = trending_async(accept_language, user_agent, client_id, client_ip, location, country_code, count, market, offset, safe_search, set_lang, since, sort_by, text_decorations, text_format, custom_headers).value! + def trending(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, market:nil, offset:nil, safe_search:nil, set_lang:nil, since:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + response = trending_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, count:count, market:market, offset:offset, safe_search:safe_search, set_lang:set_lang, since:since, sort_by:sort_by, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2040,8 +2042,8 @@ module Azure::CognitiveServices::NewsSearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def trending_with_http_info(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, market = nil, offset = nil, safe_search = nil, set_lang = nil, since = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - trending_async(accept_language, user_agent, client_id, client_ip, location, country_code, count, market, offset, safe_search, set_lang, since, sort_by, text_decorations, text_format, custom_headers).value! + def trending_with_http_info(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, market:nil, offset:nil, safe_search:nil, set_lang:nil, since:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + trending_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, count:count, market:market, offset:offset, safe_search:safe_search, set_lang:set_lang, since:since, sort_by:sort_by, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! end # @@ -2266,11 +2268,12 @@ module Azure::CognitiveServices::NewsSearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def trending_async(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, market = nil, offset = nil, safe_search = nil, set_lang = nil, since = nil, sort_by = nil, text_decorations = nil, text_format = nil, custom_headers = nil) + def trending_async(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, market:nil, offset:nil, safe_search:nil, set_lang:nil, since:nil, sort_by:nil, text_decorations:nil, text_format:nil, custom_headers:nil) x_bing_apis_sdk = 'true' request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/data/azure_cognitiveservices_newssearch/lib/profiles/latest/modules/newssearch_profile_module.rb b/data/azure_cognitiveservices_newssearch/lib/profiles/latest/modules/newssearch_profile_module.rb index fb7eed423..fb43c8e62 100644 --- a/data/azure_cognitiveservices_newssearch/lib/profiles/latest/modules/newssearch_profile_module.rb +++ b/data/azure_cognitiveservices_newssearch/lib/profiles/latest/modules/newssearch_profile_module.rb @@ -53,12 +53,12 @@ module Azure::NewsSearch::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::NewsSearch::V1_0::NewsSearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::NewsSearch::V1_0::NewsSearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @news_operations = client_0.news_operations + add_telemetry(@client_0) + @news_operations = @client_0.news_operations @model_classes = ModelClasses.new end @@ -68,6 +68,14 @@ module Azure::NewsSearch::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_cognitiveservices_spellcheck/lib/1.0/generated/azure_cognitiveservices_spellcheck/spell_check_client.rb b/data/azure_cognitiveservices_spellcheck/lib/1.0/generated/azure_cognitiveservices_spellcheck/spell_check_client.rb index ded37f9bb..c84f05c74 100644 --- a/data/azure_cognitiveservices_spellcheck/lib/1.0/generated/azure_cognitiveservices_spellcheck/spell_check_client.rb +++ b/data/azure_cognitiveservices_spellcheck/lib/1.0/generated/azure_cognitiveservices_spellcheck/spell_check_client.rb @@ -298,8 +298,8 @@ module Azure::CognitiveServices::SpellCheck::V1_0 # # @return [SpellCheck] operation results. # - def spell_checker(text, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, action_type = nil, app_name = nil, country_code = nil, client_machine_name = nil, doc_id = nil, market = nil, session_id = nil, set_lang = nil, user_id = nil, mode = nil, pre_context_text = nil, post_context_text = nil, custom_headers = nil) - response = spell_checker_async(text, accept_language, pragma, user_agent, client_id, client_ip, location, action_type, app_name, country_code, client_machine_name, doc_id, market, session_id, set_lang, user_id, mode, pre_context_text, post_context_text, custom_headers).value! + def spell_checker(text, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, action_type:nil, app_name:nil, country_code:nil, client_machine_name:nil, doc_id:nil, market:nil, session_id:nil, set_lang:nil, user_id:nil, mode:nil, pre_context_text:nil, post_context_text:nil, custom_headers:nil) + response = spell_checker_async(text, accept_language:accept_language, pragma:pragma, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, action_type:action_type, app_name:app_name, country_code:country_code, client_machine_name:client_machine_name, doc_id:doc_id, market:market, session_id:session_id, set_lang:set_lang, user_id:user_id, mode:mode, pre_context_text:pre_context_text, post_context_text:post_context_text, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -496,8 +496,8 @@ module Azure::CognitiveServices::SpellCheck::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def spell_checker_with_http_info(text, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, action_type = nil, app_name = nil, country_code = nil, client_machine_name = nil, doc_id = nil, market = nil, session_id = nil, set_lang = nil, user_id = nil, mode = nil, pre_context_text = nil, post_context_text = nil, custom_headers = nil) - spell_checker_async(text, accept_language, pragma, user_agent, client_id, client_ip, location, action_type, app_name, country_code, client_machine_name, doc_id, market, session_id, set_lang, user_id, mode, pre_context_text, post_context_text, custom_headers).value! + def spell_checker_with_http_info(text, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, action_type:nil, app_name:nil, country_code:nil, client_machine_name:nil, doc_id:nil, market:nil, session_id:nil, set_lang:nil, user_id:nil, mode:nil, pre_context_text:nil, post_context_text:nil, custom_headers:nil) + spell_checker_async(text, accept_language:accept_language, pragma:pragma, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, action_type:action_type, app_name:app_name, country_code:country_code, client_machine_name:client_machine_name, doc_id:doc_id, market:market, session_id:session_id, set_lang:set_lang, user_id:user_id, mode:mode, pre_context_text:pre_context_text, post_context_text:post_context_text, custom_headers:custom_headers).value! end # @@ -693,12 +693,13 @@ module Azure::CognitiveServices::SpellCheck::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def spell_checker_async(text, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, action_type = nil, app_name = nil, country_code = nil, client_machine_name = nil, doc_id = nil, market = nil, session_id = nil, set_lang = nil, user_id = nil, mode = nil, pre_context_text = nil, post_context_text = nil, custom_headers = nil) + def spell_checker_async(text, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, action_type:nil, app_name:nil, country_code:nil, client_machine_name:nil, doc_id:nil, market:nil, session_id:nil, set_lang:nil, user_id:nil, mode:nil, pre_context_text:nil, post_context_text:nil, custom_headers:nil) x_bing_apis_sdk = 'true' fail ArgumentError, 'text is nil' if text.nil? request_headers = {} + request_headers['Content-Type'] = 'application/x-www-form-urlencoded' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -709,6 +710,14 @@ module Azure::CognitiveServices::SpellCheck::V1_0 request_headers['X-MSEdge-ClientID'] = client_id unless client_id.nil? request_headers['X-MSEdge-ClientIP'] = client_ip unless client_ip.nil? request_headers['X-Search-Location'] = location unless location.nil? + + # Set Form Data + form_data = {} + form_data['Mode'] = mode.to_s unless mode.to_s.nil? + form_data['PreContextText'] = pre_context_text unless pre_context_text.nil? + form_data['PostContextText'] = post_context_text unless post_context_text.nil? + form_data['Text'] = text unless text.nil? + path_template = 'spellcheck' request_url = @base_url || self.base_url @@ -717,6 +726,7 @@ module Azure::CognitiveServices::SpellCheck::V1_0 middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], query_params: {'ActionType' => action_type,'AppName' => app_name,'cc' => country_code,'ClientMachineName' => client_machine_name,'DocId' => doc_id,'mkt' => market,'SessionId' => session_id,'SetLang' => set_lang,'UserId' => user_id}, headers: request_headers.merge(custom_headers || {}), + body: URI.encode_www_form(form_data), base_url: request_url } promise = self.make_request_async(:post, path_template, options) diff --git a/data/azure_cognitiveservices_spellcheck/lib/profiles/latest/modules/spellcheck_profile_module.rb b/data/azure_cognitiveservices_spellcheck/lib/profiles/latest/modules/spellcheck_profile_module.rb index 86040df30..7a996923e 100644 --- a/data/azure_cognitiveservices_spellcheck/lib/profiles/latest/modules/spellcheck_profile_module.rb +++ b/data/azure_cognitiveservices_spellcheck/lib/profiles/latest/modules/spellcheck_profile_module.rb @@ -42,11 +42,11 @@ module Azure::SpellCheck::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::SpellCheck::V1_0::SpellCheckClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::SpellCheck::V1_0::SpellCheckClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) + add_telemetry(@client_0) @model_classes = ModelClasses.new end @@ -56,6 +56,14 @@ module Azure::SpellCheck::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_cognitiveservices_textanalytics/lib/profiles/latest/modules/textanalytics_profile_module.rb b/data/azure_cognitiveservices_textanalytics/lib/profiles/latest/modules/textanalytics_profile_module.rb index 83f715bdb..c6ad00b96 100644 --- a/data/azure_cognitiveservices_textanalytics/lib/profiles/latest/modules/textanalytics_profile_module.rb +++ b/data/azure_cognitiveservices_textanalytics/lib/profiles/latest/modules/textanalytics_profile_module.rb @@ -43,11 +43,11 @@ module Azure::TextAnalytics::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::TextAnalytics::V2_0::TextAnalyticsClient.new(configurable.credentials, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::TextAnalytics::V2_0::TextAnalyticsClient.new(configurable.credentials, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) + add_telemetry(@client_0) @model_classes = ModelClasses.new end @@ -57,6 +57,14 @@ module Azure::TextAnalytics::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_cognitiveservices_textanalytics/lib/v2.0/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb b/data/azure_cognitiveservices_textanalytics/lib/v2.0/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb index 853bebf78..9e94a315e 100644 --- a/data/azure_cognitiveservices_textanalytics/lib/v2.0/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +++ b/data/azure_cognitiveservices_textanalytics/lib/v2.0/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb @@ -128,8 +128,8 @@ module Azure::CognitiveServices::TextAnalytics::V2_0 # # @return [KeyPhraseBatchResult] operation results. # - def key_phrases(input, custom_headers = nil) - response = key_phrases_async(input, custom_headers).value! + def key_phrases(input, custom_headers:nil) + response = key_phrases_async(input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -150,8 +150,8 @@ module Azure::CognitiveServices::TextAnalytics::V2_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def key_phrases_with_http_info(input, custom_headers = nil) - key_phrases_async(input, custom_headers).value! + def key_phrases_with_http_info(input, custom_headers:nil) + key_phrases_async(input, custom_headers:custom_headers).value! end # @@ -171,13 +171,12 @@ module Azure::CognitiveServices::TextAnalytics::V2_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def key_phrases_async(input, custom_headers = nil) + def key_phrases_async(input, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'input is nil' if input.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -241,8 +240,8 @@ module Azure::CognitiveServices::TextAnalytics::V2_0 # # @return [LanguageBatchResult] operation results. # - def detect_language(input, custom_headers = nil) - response = detect_language_async(input, custom_headers).value! + def detect_language(input, custom_headers:nil) + response = detect_language_async(input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -258,8 +257,8 @@ module Azure::CognitiveServices::TextAnalytics::V2_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def detect_language_with_http_info(input, custom_headers = nil) - detect_language_async(input, custom_headers).value! + def detect_language_with_http_info(input, custom_headers:nil) + detect_language_async(input, custom_headers:custom_headers).value! end # @@ -274,13 +273,12 @@ module Azure::CognitiveServices::TextAnalytics::V2_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def detect_language_async(input, custom_headers = nil) + def detect_language_async(input, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'input is nil' if input.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -350,8 +348,8 @@ module Azure::CognitiveServices::TextAnalytics::V2_0 # # @return [SentimentBatchResult] operation results. # - def sentiment(input, custom_headers = nil) - response = sentiment_async(input, custom_headers).value! + def sentiment(input, custom_headers:nil) + response = sentiment_async(input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -373,8 +371,8 @@ module Azure::CognitiveServices::TextAnalytics::V2_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def sentiment_with_http_info(input, custom_headers = nil) - sentiment_async(input, custom_headers).value! + def sentiment_with_http_info(input, custom_headers:nil) + sentiment_async(input, custom_headers:custom_headers).value! end # @@ -395,13 +393,12 @@ module Azure::CognitiveServices::TextAnalytics::V2_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def sentiment_async(input, custom_headers = nil) + def sentiment_async(input, custom_headers:nil) fail ArgumentError, 'azure_region is nil' if azure_region.nil? fail ArgumentError, 'input is nil' if input.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/data/azure_cognitiveservices_videosearch/lib/1.0/generated/azure_cognitiveservices_videosearch/videos_operations.rb b/data/azure_cognitiveservices_videosearch/lib/1.0/generated/azure_cognitiveservices_videosearch/videos_operations.rb index ef688980e..2ff59ec51 100644 --- a/data/azure_cognitiveservices_videosearch/lib/1.0/generated/azure_cognitiveservices_videosearch/videos_operations.rb +++ b/data/azure_cognitiveservices_videosearch/lib/1.0/generated/azure_cognitiveservices_videosearch/videos_operations.rb @@ -279,8 +279,8 @@ module Azure::CognitiveServices::VideoSearch::V1_0 # # @return [Videos] operation results. # - def search(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, freshness = nil, id = nil, length = nil, market = nil, offset = nil, pricing = nil, resolution = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - response = search_async(query, accept_language, user_agent, client_id, client_ip, location, country_code, count, freshness, id, length, market, offset, pricing, resolution, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def search(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, freshness:nil, id:nil, length:nil, market:nil, offset:nil, pricing:nil, resolution:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + response = search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, count:count, freshness:freshness, id:id, length:length, market:market, offset:offset, pricing:pricing, resolution:resolution, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -536,8 +536,8 @@ module Azure::CognitiveServices::VideoSearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def search_with_http_info(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, freshness = nil, id = nil, length = nil, market = nil, offset = nil, pricing = nil, resolution = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - search_async(query, accept_language, user_agent, client_id, client_ip, location, country_code, count, freshness, id, length, market, offset, pricing, resolution, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def search_with_http_info(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, freshness:nil, id:nil, length:nil, market:nil, offset:nil, pricing:nil, resolution:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + search_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, count:count, freshness:freshness, id:id, length:length, market:market, offset:offset, pricing:pricing, resolution:resolution, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! end # @@ -792,12 +792,13 @@ module Azure::CognitiveServices::VideoSearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def search_async(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, count = nil, freshness = nil, id = nil, length = nil, market = nil, offset = nil, pricing = nil, resolution = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) + def search_async(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, count:nil, freshness:nil, id:nil, length:nil, market:nil, offset:nil, pricing:nil, resolution:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) x_bing_apis_sdk = 'true' fail ArgumentError, 'query is nil' if query.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1073,8 +1074,8 @@ module Azure::CognitiveServices::VideoSearch::V1_0 # # @return [VideoDetails] operation results. # - def details(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, id = nil, modules = nil, market = nil, resolution = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - response = details_async(query, accept_language, user_agent, client_id, client_ip, location, country_code, id, modules, market, resolution, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def details(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, id:nil, modules:nil, market:nil, resolution:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + response = details_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, id:id, modules:modules, market:market, resolution:resolution, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1305,8 +1306,8 @@ module Azure::CognitiveServices::VideoSearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def details_with_http_info(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, id = nil, modules = nil, market = nil, resolution = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - details_async(query, accept_language, user_agent, client_id, client_ip, location, country_code, id, modules, market, resolution, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def details_with_http_info(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, id:nil, modules:nil, market:nil, resolution:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + details_async(query, accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, id:id, modules:modules, market:market, resolution:resolution, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! end # @@ -1536,12 +1537,13 @@ module Azure::CognitiveServices::VideoSearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def details_async(query, accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, id = nil, modules = nil, market = nil, resolution = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) + def details_async(query, accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, id:nil, modules:nil, market:nil, resolution:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) x_bing_apis_sdk = 'true' fail ArgumentError, 'query is nil' if query.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1788,8 +1790,8 @@ module Azure::CognitiveServices::VideoSearch::V1_0 # # @return [TrendingVideos] operation results. # - def trending(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - response = trending_async(accept_language, user_agent, client_id, client_ip, location, country_code, market, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def trending(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + response = trending_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, market:market, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1991,8 +1993,8 @@ module Azure::CognitiveServices::VideoSearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def trending_with_http_info(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - trending_async(accept_language, user_agent, client_id, client_ip, location, country_code, market, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def trending_with_http_info(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + trending_async(accept_language:accept_language, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, country_code:country_code, market:market, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! end # @@ -2193,11 +2195,12 @@ module Azure::CognitiveServices::VideoSearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def trending_async(accept_language = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, country_code = nil, market = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) + def trending_async(accept_language:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, country_code:nil, market:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) x_bing_apis_sdk = 'true' request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/data/azure_cognitiveservices_videosearch/lib/profiles/latest/modules/videosearch_profile_module.rb b/data/azure_cognitiveservices_videosearch/lib/profiles/latest/modules/videosearch_profile_module.rb index 8316c5041..ea605e405 100644 --- a/data/azure_cognitiveservices_videosearch/lib/profiles/latest/modules/videosearch_profile_module.rb +++ b/data/azure_cognitiveservices_videosearch/lib/profiles/latest/modules/videosearch_profile_module.rb @@ -61,12 +61,12 @@ module Azure::VideoSearch::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::VideoSearch::V1_0::VideoSearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::VideoSearch::V1_0::VideoSearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @videos_operations = client_0.videos_operations + add_telemetry(@client_0) + @videos_operations = @client_0.videos_operations @model_classes = ModelClasses.new end @@ -76,6 +76,14 @@ module Azure::VideoSearch::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_cognitiveservices_websearch/lib/1.0/generated/azure_cognitiveservices_websearch/web.rb b/data/azure_cognitiveservices_websearch/lib/1.0/generated/azure_cognitiveservices_websearch/web.rb index 23874dd5b..852b8cca2 100644 --- a/data/azure_cognitiveservices_websearch/lib/1.0/generated/azure_cognitiveservices_websearch/web.rb +++ b/data/azure_cognitiveservices_websearch/lib/1.0/generated/azure_cognitiveservices_websearch/web.rb @@ -250,8 +250,8 @@ module Azure::CognitiveServices::WebSearch::V1_0 # # @return [SearchResponse] operation results. # - def search(query, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, answer_count = nil, country_code = nil, count = nil, freshness = nil, market = 'en-us', offset = nil, promote = nil, response_filter = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - response = search_async(query, accept_language, pragma, user_agent, client_id, client_ip, location, answer_count, country_code, count, freshness, market, offset, promote, response_filter, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def search(query, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, answer_count:nil, country_code:nil, count:nil, freshness:nil, market:'en-us', offset:nil, promote:nil, response_filter:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + response = search_async(query, accept_language:accept_language, pragma:pragma, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, answer_count:answer_count, country_code:country_code, count:count, freshness:freshness, market:market, offset:offset, promote:promote, response_filter:response_filter, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -483,8 +483,8 @@ module Azure::CognitiveServices::WebSearch::V1_0 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def search_with_http_info(query, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, answer_count = nil, country_code = nil, count = nil, freshness = nil, market = 'en-us', offset = nil, promote = nil, response_filter = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) - search_async(query, accept_language, pragma, user_agent, client_id, client_ip, location, answer_count, country_code, count, freshness, market, offset, promote, response_filter, safe_search, set_lang, text_decorations, text_format, custom_headers).value! + def search_with_http_info(query, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, answer_count:nil, country_code:nil, count:nil, freshness:nil, market:'en-us', offset:nil, promote:nil, response_filter:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) + search_async(query, accept_language:accept_language, pragma:pragma, user_agent:user_agent, client_id:client_id, client_ip:client_ip, location:location, answer_count:answer_count, country_code:country_code, count:count, freshness:freshness, market:market, offset:offset, promote:promote, response_filter:response_filter, safe_search:safe_search, set_lang:set_lang, text_decorations:text_decorations, text_format:text_format, custom_headers:custom_headers).value! end # @@ -715,12 +715,13 @@ module Azure::CognitiveServices::WebSearch::V1_0 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def search_async(query, accept_language = nil, pragma = nil, user_agent = nil, client_id = nil, client_ip = nil, location = nil, answer_count = nil, country_code = nil, count = nil, freshness = nil, market = 'en-us', offset = nil, promote = nil, response_filter = nil, safe_search = nil, set_lang = nil, text_decorations = nil, text_format = nil, custom_headers = nil) + def search_async(query, accept_language:nil, pragma:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, answer_count:nil, country_code:nil, count:nil, freshness:nil, market:'en-us', offset:nil, promote:nil, response_filter:nil, safe_search:nil, set_lang:nil, text_decorations:nil, text_format:nil, custom_headers:nil) x_bing_apis_sdk = 'true' fail ArgumentError, 'query is nil' if query.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/data/azure_cognitiveservices_websearch/lib/profiles/latest/modules/websearch_profile_module.rb b/data/azure_cognitiveservices_websearch/lib/profiles/latest/modules/websearch_profile_module.rb index 20debfacb..30fea0267 100644 --- a/data/azure_cognitiveservices_websearch/lib/profiles/latest/modules/websearch_profile_module.rb +++ b/data/azure_cognitiveservices_websearch/lib/profiles/latest/modules/websearch_profile_module.rb @@ -70,12 +70,12 @@ module Azure::WebSearch::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::WebSearch::V1_0::WebSearchClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::WebSearch::V1_0::WebSearchClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @web = client_0.web + add_telemetry(@client_0) + @web = @client_0.web @model_classes = ModelClasses.new end @@ -85,6 +85,14 @@ module Azure::WebSearch::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_event_grid/lib/2018-01-01/generated/azure_event_grid/event_grid_client.rb b/data/azure_event_grid/lib/2018-01-01/generated/azure_event_grid/event_grid_client.rb index 618d1a95e..38e8460e6 100644 --- a/data/azure_event_grid/lib/2018-01-01/generated/azure_event_grid/event_grid_client.rb +++ b/data/azure_event_grid/lib/2018-01-01/generated/azure_event_grid/event_grid_client.rb @@ -119,8 +119,8 @@ module Azure::EventGrid::V2018_01_01 # will be added to the HTTP request. # # - def publish_events(topic_hostname, events, custom_headers = nil) - response = publish_events_async(topic_hostname, events, custom_headers).value! + def publish_events(topic_hostname, events, custom_headers:nil) + response = publish_events_async(topic_hostname, events, custom_headers:custom_headers).value! nil end @@ -136,8 +136,8 @@ module Azure::EventGrid::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def publish_events_with_http_info(topic_hostname, events, custom_headers = nil) - publish_events_async(topic_hostname, events, custom_headers).value! + def publish_events_with_http_info(topic_hostname, events, custom_headers:nil) + publish_events_async(topic_hostname, events, custom_headers:custom_headers).value! end # @@ -152,14 +152,13 @@ module Azure::EventGrid::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def publish_events_async(topic_hostname, events, custom_headers = nil) + def publish_events_async(topic_hostname, events, custom_headers:nil) fail ArgumentError, 'topic_hostname is nil' if topic_hostname.nil? fail ArgumentError, 'events is nil' if events.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/data/azure_event_grid/lib/profiles/latest/modules/eventgrid_profile_module.rb b/data/azure_event_grid/lib/profiles/latest/modules/eventgrid_profile_module.rb index f3440e5a5..ba447075f 100644 --- a/data/azure_event_grid/lib/profiles/latest/modules/eventgrid_profile_module.rb +++ b/data/azure_event_grid/lib/profiles/latest/modules/eventgrid_profile_module.rb @@ -38,11 +38,11 @@ module Azure::EventGrid::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::EventGrid::V2018_01_01::EventGridClient.new(configurable.credentials, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::EventGrid::V2018_01_01::EventGridClient.new(configurable.credentials, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) + add_telemetry(@client_0) @model_classes = ModelClasses.new end @@ -52,6 +52,14 @@ module Azure::EventGrid::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/applications.rb b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/applications.rb index 83974754c..6bfe49c90 100644 --- a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/applications.rb +++ b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/applications.rb @@ -31,8 +31,8 @@ module Azure::GraphRbac::V1_6 # # @return [Application] operation results. # - def create(parameters, custom_headers = nil) - response = create_async(parameters, custom_headers).value! + def create(parameters, custom_headers:nil) + response = create_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(parameters, custom_headers = nil) - create_async(parameters, custom_headers).value! + def create_with_http_info(parameters, custom_headers:nil) + create_async(parameters, custom_headers:custom_headers).value! end # @@ -60,14 +60,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(parameters, custom_headers = nil) + def create_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -129,8 +128,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -143,8 +142,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -156,12 +155,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -214,8 +214,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def delete(application_object_id, custom_headers = nil) - response = delete_async(application_object_id, custom_headers).value! + def delete(application_object_id, custom_headers:nil) + response = delete_async(application_object_id, custom_headers:custom_headers).value! nil end @@ -228,8 +228,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(application_object_id, custom_headers = nil) - delete_async(application_object_id, custom_headers).value! + def delete_with_http_info(application_object_id, custom_headers:nil) + delete_async(application_object_id, custom_headers:custom_headers).value! end # @@ -241,13 +241,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(application_object_id, custom_headers = nil) + def delete_async(application_object_id, custom_headers:nil) fail ArgumentError, 'application_object_id is nil' if application_object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -292,8 +293,8 @@ module Azure::GraphRbac::V1_6 # # @return [Application] operation results. # - def get(application_object_id, custom_headers = nil) - response = get_async(application_object_id, custom_headers).value! + def get(application_object_id, custom_headers:nil) + response = get_async(application_object_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -306,8 +307,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(application_object_id, custom_headers = nil) - get_async(application_object_id, custom_headers).value! + def get_with_http_info(application_object_id, custom_headers:nil) + get_async(application_object_id, custom_headers:custom_headers).value! end # @@ -319,13 +320,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(application_object_id, custom_headers = nil) + def get_async(application_object_id, custom_headers:nil) fail ArgumentError, 'application_object_id is nil' if application_object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -381,8 +383,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def patch(application_object_id, parameters, custom_headers = nil) - response = patch_async(application_object_id, parameters, custom_headers).value! + def patch(application_object_id, parameters, custom_headers:nil) + response = patch_async(application_object_id, parameters, custom_headers:custom_headers).value! nil end @@ -397,8 +399,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def patch_with_http_info(application_object_id, parameters, custom_headers = nil) - patch_async(application_object_id, parameters, custom_headers).value! + def patch_with_http_info(application_object_id, parameters, custom_headers:nil) + patch_async(application_object_id, parameters, custom_headers:custom_headers).value! end # @@ -412,7 +414,7 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def patch_async(application_object_id, parameters, custom_headers = nil) + def patch_async(application_object_id, parameters, custom_headers:nil) fail ArgumentError, 'application_object_id is nil' if application_object_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -420,7 +422,6 @@ module Azure::GraphRbac::V1_6 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -473,8 +474,8 @@ module Azure::GraphRbac::V1_6 # # @return [KeyCredentialListResult] operation results. # - def list_key_credentials(application_object_id, custom_headers = nil) - response = list_key_credentials_async(application_object_id, custom_headers).value! + def list_key_credentials(application_object_id, custom_headers:nil) + response = list_key_credentials_async(application_object_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -487,8 +488,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_key_credentials_with_http_info(application_object_id, custom_headers = nil) - list_key_credentials_async(application_object_id, custom_headers).value! + def list_key_credentials_with_http_info(application_object_id, custom_headers:nil) + list_key_credentials_async(application_object_id, custom_headers:custom_headers).value! end # @@ -500,13 +501,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_key_credentials_async(application_object_id, custom_headers = nil) + def list_key_credentials_async(application_object_id, custom_headers:nil) fail ArgumentError, 'application_object_id is nil' if application_object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -562,8 +564,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def update_key_credentials(application_object_id, parameters, custom_headers = nil) - response = update_key_credentials_async(application_object_id, parameters, custom_headers).value! + def update_key_credentials(application_object_id, parameters, custom_headers:nil) + response = update_key_credentials_async(application_object_id, parameters, custom_headers:custom_headers).value! nil end @@ -578,8 +580,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_key_credentials_with_http_info(application_object_id, parameters, custom_headers = nil) - update_key_credentials_async(application_object_id, parameters, custom_headers).value! + def update_key_credentials_with_http_info(application_object_id, parameters, custom_headers:nil) + update_key_credentials_async(application_object_id, parameters, custom_headers:custom_headers).value! end # @@ -593,7 +595,7 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_key_credentials_async(application_object_id, parameters, custom_headers = nil) + def update_key_credentials_async(application_object_id, parameters, custom_headers:nil) fail ArgumentError, 'application_object_id is nil' if application_object_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -601,7 +603,6 @@ module Azure::GraphRbac::V1_6 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -654,8 +655,8 @@ module Azure::GraphRbac::V1_6 # # @return [PasswordCredentialListResult] operation results. # - def list_password_credentials(application_object_id, custom_headers = nil) - response = list_password_credentials_async(application_object_id, custom_headers).value! + def list_password_credentials(application_object_id, custom_headers:nil) + response = list_password_credentials_async(application_object_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -668,8 +669,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_password_credentials_with_http_info(application_object_id, custom_headers = nil) - list_password_credentials_async(application_object_id, custom_headers).value! + def list_password_credentials_with_http_info(application_object_id, custom_headers:nil) + list_password_credentials_async(application_object_id, custom_headers:custom_headers).value! end # @@ -681,13 +682,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_password_credentials_async(application_object_id, custom_headers = nil) + def list_password_credentials_async(application_object_id, custom_headers:nil) fail ArgumentError, 'application_object_id is nil' if application_object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -743,8 +745,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def update_password_credentials(application_object_id, parameters, custom_headers = nil) - response = update_password_credentials_async(application_object_id, parameters, custom_headers).value! + def update_password_credentials(application_object_id, parameters, custom_headers:nil) + response = update_password_credentials_async(application_object_id, parameters, custom_headers:custom_headers).value! nil end @@ -759,8 +761,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_password_credentials_with_http_info(application_object_id, parameters, custom_headers = nil) - update_password_credentials_async(application_object_id, parameters, custom_headers).value! + def update_password_credentials_with_http_info(application_object_id, parameters, custom_headers:nil) + update_password_credentials_async(application_object_id, parameters, custom_headers:custom_headers).value! end # @@ -774,7 +776,7 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_password_credentials_async(application_object_id, parameters, custom_headers = nil) + def update_password_credentials_async(application_object_id, parameters, custom_headers:nil) fail ArgumentError, 'application_object_id is nil' if application_object_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -782,7 +784,6 @@ module Azure::GraphRbac::V1_6 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -835,8 +836,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def list_next(next_link, custom_headers = nil) - response = list_next_async(next_link, custom_headers).value! + def list_next(next_link, custom_headers:nil) + response = list_next_async(next_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -849,8 +850,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_link, custom_headers = nil) - list_next_async(next_link, custom_headers).value! + def list_next_with_http_info(next_link, custom_headers:nil) + list_next_async(next_link, custom_headers:custom_headers).value! end # @@ -862,13 +863,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_link, custom_headers = nil) + def list_next_async(next_link, custom_headers:nil) fail ArgumentError, 'next_link is nil' if next_link.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -924,12 +926,12 @@ module Azure::GraphRbac::V1_6 # @return [ApplicationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_link| - list_next_async(next_link, custom_headers) + list_next_async(next_link, custom_headers:custom_headers) end page end diff --git a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/domains.rb b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/domains.rb index 7f1efec6a..12ed7e657 100644 --- a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/domains.rb +++ b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/domains.rb @@ -30,8 +30,8 @@ module Azure::GraphRbac::V1_6 # # @return [DomainListResult] operation results. # - def list(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -116,8 +117,8 @@ module Azure::GraphRbac::V1_6 # # @return [Domain] operation results. # - def get(domain_name, custom_headers = nil) - response = get_async(domain_name, custom_headers).value! + def get(domain_name, custom_headers:nil) + response = get_async(domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -130,8 +131,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(domain_name, custom_headers = nil) - get_async(domain_name, custom_headers).value! + def get_with_http_info(domain_name, custom_headers:nil) + get_async(domain_name, custom_headers:custom_headers).value! end # @@ -143,13 +144,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(domain_name, custom_headers = nil) + def get_async(domain_name, custom_headers:nil) fail ArgumentError, 'domain_name is nil' if domain_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/groups.rb b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/groups.rb index aad2b1c0b..6428b8266 100644 --- a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/groups.rb +++ b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/groups.rb @@ -32,8 +32,8 @@ module Azure::GraphRbac::V1_6 # # @return [CheckGroupMembershipResult] operation results. # - def is_member_of(parameters, custom_headers = nil) - response = is_member_of_async(parameters, custom_headers).value! + def is_member_of(parameters, custom_headers:nil) + response = is_member_of_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def is_member_of_with_http_info(parameters, custom_headers = nil) - is_member_of_async(parameters, custom_headers).value! + def is_member_of_with_http_info(parameters, custom_headers:nil) + is_member_of_async(parameters, custom_headers:custom_headers).value! end # @@ -63,14 +63,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def is_member_of_async(parameters, custom_headers = nil) + def is_member_of_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -133,8 +132,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def remove_member(group_object_id, member_object_id, custom_headers = nil) - response = remove_member_async(group_object_id, member_object_id, custom_headers).value! + def remove_member(group_object_id, member_object_id, custom_headers:nil) + response = remove_member_async(group_object_id, member_object_id, custom_headers:custom_headers).value! nil end @@ -149,8 +148,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def remove_member_with_http_info(group_object_id, member_object_id, custom_headers = nil) - remove_member_async(group_object_id, member_object_id, custom_headers).value! + def remove_member_with_http_info(group_object_id, member_object_id, custom_headers:nil) + remove_member_async(group_object_id, member_object_id, custom_headers:custom_headers).value! end # @@ -164,7 +163,7 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def remove_member_async(group_object_id, member_object_id, custom_headers = nil) + def remove_member_async(group_object_id, member_object_id, custom_headers:nil) fail ArgumentError, 'group_object_id is nil' if group_object_id.nil? fail ArgumentError, 'member_object_id is nil' if member_object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -172,6 +171,7 @@ module Azure::GraphRbac::V1_6 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -219,8 +219,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def add_member(group_object_id, parameters, custom_headers = nil) - response = add_member_async(group_object_id, parameters, custom_headers).value! + def add_member(group_object_id, parameters, custom_headers:nil) + response = add_member_async(group_object_id, parameters, custom_headers:custom_headers).value! nil end @@ -237,8 +237,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_member_with_http_info(group_object_id, parameters, custom_headers = nil) - add_member_async(group_object_id, parameters, custom_headers).value! + def add_member_with_http_info(group_object_id, parameters, custom_headers:nil) + add_member_async(group_object_id, parameters, custom_headers:custom_headers).value! end # @@ -254,7 +254,7 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_member_async(group_object_id, parameters, custom_headers = nil) + def add_member_async(group_object_id, parameters, custom_headers:nil) fail ArgumentError, 'group_object_id is nil' if group_object_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -262,7 +262,6 @@ module Azure::GraphRbac::V1_6 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -314,8 +313,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def delete(group_object_id, custom_headers = nil) - response = delete_async(group_object_id, custom_headers).value! + def delete(group_object_id, custom_headers:nil) + response = delete_async(group_object_id, custom_headers:custom_headers).value! nil end @@ -328,8 +327,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(group_object_id, custom_headers = nil) - delete_async(group_object_id, custom_headers).value! + def delete_with_http_info(group_object_id, custom_headers:nil) + delete_async(group_object_id, custom_headers:custom_headers).value! end # @@ -341,13 +340,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(group_object_id, custom_headers = nil) + def delete_async(group_object_id, custom_headers:nil) fail ArgumentError, 'group_object_id is nil' if group_object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -393,8 +393,8 @@ module Azure::GraphRbac::V1_6 # # @return [ADGroup] operation results. # - def create(parameters, custom_headers = nil) - response = create_async(parameters, custom_headers).value! + def create(parameters, custom_headers:nil) + response = create_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -408,8 +408,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(parameters, custom_headers = nil) - create_async(parameters, custom_headers).value! + def create_with_http_info(parameters, custom_headers:nil) + create_async(parameters, custom_headers:custom_headers).value! end # @@ -422,14 +422,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(parameters, custom_headers = nil) + def create_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -491,8 +490,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -505,8 +504,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -518,12 +517,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -578,8 +578,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def get_group_members(object_id, custom_headers = nil) - first_page = get_group_members_as_lazy(object_id, custom_headers) + def get_group_members(object_id, custom_headers:nil) + first_page = get_group_members_as_lazy(object_id, custom_headers:custom_headers) first_page.get_all_items end @@ -593,8 +593,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_group_members_with_http_info(object_id, custom_headers = nil) - get_group_members_async(object_id, custom_headers).value! + def get_group_members_with_http_info(object_id, custom_headers:nil) + get_group_members_async(object_id, custom_headers:custom_headers).value! end # @@ -607,13 +607,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_group_members_async(object_id, custom_headers = nil) + def get_group_members_async(object_id, custom_headers:nil) fail ArgumentError, 'object_id is nil' if object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -669,8 +670,8 @@ module Azure::GraphRbac::V1_6 # # @return [ADGroup] operation results. # - def get(object_id, custom_headers = nil) - response = get_async(object_id, custom_headers).value! + def get(object_id, custom_headers:nil) + response = get_async(object_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -684,8 +685,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(object_id, custom_headers = nil) - get_async(object_id, custom_headers).value! + def get_with_http_info(object_id, custom_headers:nil) + get_async(object_id, custom_headers:custom_headers).value! end # @@ -698,13 +699,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(object_id, custom_headers = nil) + def get_async(object_id, custom_headers:nil) fail ArgumentError, 'object_id is nil' if object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -763,8 +765,8 @@ module Azure::GraphRbac::V1_6 # # @return [GroupGetMemberGroupsResult] operation results. # - def get_member_groups(object_id, parameters, custom_headers = nil) - response = get_member_groups_async(object_id, parameters, custom_headers).value! + def get_member_groups(object_id, parameters, custom_headers:nil) + response = get_member_groups_async(object_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -781,8 +783,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_member_groups_with_http_info(object_id, parameters, custom_headers = nil) - get_member_groups_async(object_id, parameters, custom_headers).value! + def get_member_groups_with_http_info(object_id, parameters, custom_headers:nil) + get_member_groups_async(object_id, parameters, custom_headers:custom_headers).value! end # @@ -798,7 +800,7 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_member_groups_async(object_id, parameters, custom_headers = nil) + def get_member_groups_async(object_id, parameters, custom_headers:nil) fail ArgumentError, 'object_id is nil' if object_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -806,7 +808,6 @@ module Azure::GraphRbac::V1_6 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -869,8 +870,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def list_next(next_link, custom_headers = nil) - response = list_next_async(next_link, custom_headers).value! + def list_next(next_link, custom_headers:nil) + response = list_next_async(next_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -883,8 +884,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_link, custom_headers = nil) - list_next_async(next_link, custom_headers).value! + def list_next_with_http_info(next_link, custom_headers:nil) + list_next_async(next_link, custom_headers:custom_headers).value! end # @@ -896,13 +897,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_link, custom_headers = nil) + def list_next_async(next_link, custom_headers:nil) fail ArgumentError, 'next_link is nil' if next_link.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -957,8 +959,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def get_group_members_next(next_link, custom_headers = nil) - response = get_group_members_next_async(next_link, custom_headers).value! + def get_group_members_next(next_link, custom_headers:nil) + response = get_group_members_next_async(next_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -971,8 +973,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_group_members_next_with_http_info(next_link, custom_headers = nil) - get_group_members_next_async(next_link, custom_headers).value! + def get_group_members_next_with_http_info(next_link, custom_headers:nil) + get_group_members_next_async(next_link, custom_headers:custom_headers).value! end # @@ -984,13 +986,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_group_members_next_async(next_link, custom_headers = nil) + def get_group_members_next_async(next_link, custom_headers:nil) fail ArgumentError, 'next_link is nil' if next_link.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1045,12 +1048,12 @@ module Azure::GraphRbac::V1_6 # # @return [GroupListResult] which provide lazy access to pages of the response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_link| - list_next_async(next_link, custom_headers) + list_next_async(next_link, custom_headers:custom_headers) end page end @@ -1067,12 +1070,12 @@ module Azure::GraphRbac::V1_6 # @return [GetObjectsResult] which provide lazy access to pages of the # response. # - def get_group_members_as_lazy(object_id, custom_headers = nil) - response = get_group_members_async(object_id, custom_headers).value! + def get_group_members_as_lazy(object_id, custom_headers:nil) + response = get_group_members_async(object_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_link| - get_group_members_next_async(next_link, custom_headers) + get_group_members_next_async(next_link, custom_headers:custom_headers) end page end diff --git a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/objects.rb b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/objects.rb index 693cba6a1..d5cbcf909 100644 --- a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/objects.rb +++ b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/objects.rb @@ -29,8 +29,8 @@ module Azure::GraphRbac::V1_6 # # @return [AADObject] operation results. # - def get_current_user(custom_headers = nil) - response = get_current_user_async(custom_headers).value! + def get_current_user(custom_headers:nil) + response = get_current_user_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_current_user_with_http_info(custom_headers = nil) - get_current_user_async(custom_headers).value! + def get_current_user_with_http_info(custom_headers:nil) + get_current_user_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_current_user_async(custom_headers = nil) + def get_current_user_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -113,8 +114,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def get_objects_by_object_ids(parameters, custom_headers = nil) - first_page = get_objects_by_object_ids_as_lazy(parameters, custom_headers) + def get_objects_by_object_ids(parameters, custom_headers:nil) + first_page = get_objects_by_object_ids_as_lazy(parameters, custom_headers:custom_headers) first_page.get_all_items end @@ -127,8 +128,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_objects_by_object_ids_with_http_info(parameters, custom_headers = nil) - get_objects_by_object_ids_async(parameters, custom_headers).value! + def get_objects_by_object_ids_with_http_info(parameters, custom_headers:nil) + get_objects_by_object_ids_async(parameters, custom_headers:custom_headers).value! end # @@ -140,14 +141,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_objects_by_object_ids_async(parameters, custom_headers = nil) + def get_objects_by_object_ids_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -209,8 +209,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def get_objects_by_object_ids_next(next_link, custom_headers = nil) - response = get_objects_by_object_ids_next_async(next_link, custom_headers).value! + def get_objects_by_object_ids_next(next_link, custom_headers:nil) + response = get_objects_by_object_ids_next_async(next_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -223,8 +223,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_objects_by_object_ids_next_with_http_info(next_link, custom_headers = nil) - get_objects_by_object_ids_next_async(next_link, custom_headers).value! + def get_objects_by_object_ids_next_with_http_info(next_link, custom_headers:nil) + get_objects_by_object_ids_next_async(next_link, custom_headers:custom_headers).value! end # @@ -236,13 +236,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_objects_by_object_ids_next_async(next_link, custom_headers = nil) + def get_objects_by_object_ids_next_async(next_link, custom_headers:nil) fail ArgumentError, 'next_link is nil' if next_link.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,12 +299,12 @@ module Azure::GraphRbac::V1_6 # @return [GetObjectsResult] which provide lazy access to pages of the # response. # - def get_objects_by_object_ids_as_lazy(parameters, custom_headers = nil) - response = get_objects_by_object_ids_async(parameters, custom_headers).value! + def get_objects_by_object_ids_as_lazy(parameters, custom_headers:nil) + response = get_objects_by_object_ids_async(parameters, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_link| - get_objects_by_object_ids_next_async(next_link, custom_headers) + get_objects_by_object_ids_next_async(next_link, custom_headers:custom_headers) end page end diff --git a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/service_principals.rb b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/service_principals.rb index 32325b6d6..2798e5e24 100644 --- a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/service_principals.rb +++ b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/service_principals.rb @@ -31,8 +31,8 @@ module Azure::GraphRbac::V1_6 # # @return [ServicePrincipal] operation results. # - def create(parameters, custom_headers = nil) - response = create_async(parameters, custom_headers).value! + def create(parameters, custom_headers:nil) + response = create_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(parameters, custom_headers = nil) - create_async(parameters, custom_headers).value! + def create_with_http_info(parameters, custom_headers:nil) + create_async(parameters, custom_headers:custom_headers).value! end # @@ -60,14 +60,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(parameters, custom_headers = nil) + def create_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -129,8 +128,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -143,8 +142,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -156,12 +155,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -214,8 +214,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def delete(object_id, custom_headers = nil) - response = delete_async(object_id, custom_headers).value! + def delete(object_id, custom_headers:nil) + response = delete_async(object_id, custom_headers:custom_headers).value! nil end @@ -228,8 +228,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(object_id, custom_headers = nil) - delete_async(object_id, custom_headers).value! + def delete_with_http_info(object_id, custom_headers:nil) + delete_async(object_id, custom_headers:custom_headers).value! end # @@ -241,13 +241,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(object_id, custom_headers = nil) + def delete_async(object_id, custom_headers:nil) fail ArgumentError, 'object_id is nil' if object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -292,8 +293,8 @@ module Azure::GraphRbac::V1_6 # # @return [ServicePrincipal] operation results. # - def get(object_id, custom_headers = nil) - response = get_async(object_id, custom_headers).value! + def get(object_id, custom_headers:nil) + response = get_async(object_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -306,8 +307,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(object_id, custom_headers = nil) - get_async(object_id, custom_headers).value! + def get_with_http_info(object_id, custom_headers:nil) + get_async(object_id, custom_headers:custom_headers).value! end # @@ -319,13 +320,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(object_id, custom_headers = nil) + def get_async(object_id, custom_headers:nil) fail ArgumentError, 'object_id is nil' if object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -381,8 +383,8 @@ module Azure::GraphRbac::V1_6 # # @return [KeyCredentialListResult] operation results. # - def list_key_credentials(object_id, custom_headers = nil) - response = list_key_credentials_async(object_id, custom_headers).value! + def list_key_credentials(object_id, custom_headers:nil) + response = list_key_credentials_async(object_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -396,8 +398,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_key_credentials_with_http_info(object_id, custom_headers = nil) - list_key_credentials_async(object_id, custom_headers).value! + def list_key_credentials_with_http_info(object_id, custom_headers:nil) + list_key_credentials_async(object_id, custom_headers:custom_headers).value! end # @@ -410,13 +412,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_key_credentials_async(object_id, custom_headers = nil) + def list_key_credentials_async(object_id, custom_headers:nil) fail ArgumentError, 'object_id is nil' if object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -473,8 +476,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def update_key_credentials(object_id, parameters, custom_headers = nil) - response = update_key_credentials_async(object_id, parameters, custom_headers).value! + def update_key_credentials(object_id, parameters, custom_headers:nil) + response = update_key_credentials_async(object_id, parameters, custom_headers:custom_headers).value! nil end @@ -490,8 +493,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_key_credentials_with_http_info(object_id, parameters, custom_headers = nil) - update_key_credentials_async(object_id, parameters, custom_headers).value! + def update_key_credentials_with_http_info(object_id, parameters, custom_headers:nil) + update_key_credentials_async(object_id, parameters, custom_headers:custom_headers).value! end # @@ -506,7 +509,7 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_key_credentials_async(object_id, parameters, custom_headers = nil) + def update_key_credentials_async(object_id, parameters, custom_headers:nil) fail ArgumentError, 'object_id is nil' if object_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -514,7 +517,6 @@ module Azure::GraphRbac::V1_6 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -567,8 +569,8 @@ module Azure::GraphRbac::V1_6 # # @return [PasswordCredentialListResult] operation results. # - def list_password_credentials(object_id, custom_headers = nil) - response = list_password_credentials_async(object_id, custom_headers).value! + def list_password_credentials(object_id, custom_headers:nil) + response = list_password_credentials_async(object_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -581,8 +583,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_password_credentials_with_http_info(object_id, custom_headers = nil) - list_password_credentials_async(object_id, custom_headers).value! + def list_password_credentials_with_http_info(object_id, custom_headers:nil) + list_password_credentials_async(object_id, custom_headers:custom_headers).value! end # @@ -594,13 +596,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_password_credentials_async(object_id, custom_headers = nil) + def list_password_credentials_async(object_id, custom_headers:nil) fail ArgumentError, 'object_id is nil' if object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -656,8 +659,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def update_password_credentials(object_id, parameters, custom_headers = nil) - response = update_password_credentials_async(object_id, parameters, custom_headers).value! + def update_password_credentials(object_id, parameters, custom_headers:nil) + response = update_password_credentials_async(object_id, parameters, custom_headers:custom_headers).value! nil end @@ -672,8 +675,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_password_credentials_with_http_info(object_id, parameters, custom_headers = nil) - update_password_credentials_async(object_id, parameters, custom_headers).value! + def update_password_credentials_with_http_info(object_id, parameters, custom_headers:nil) + update_password_credentials_async(object_id, parameters, custom_headers:custom_headers).value! end # @@ -687,7 +690,7 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_password_credentials_async(object_id, parameters, custom_headers = nil) + def update_password_credentials_async(object_id, parameters, custom_headers:nil) fail ArgumentError, 'object_id is nil' if object_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -695,7 +698,6 @@ module Azure::GraphRbac::V1_6 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -748,8 +750,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def list_next(next_link, custom_headers = nil) - response = list_next_async(next_link, custom_headers).value! + def list_next(next_link, custom_headers:nil) + response = list_next_async(next_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -762,8 +764,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_link, custom_headers = nil) - list_next_async(next_link, custom_headers).value! + def list_next_with_http_info(next_link, custom_headers:nil) + list_next_async(next_link, custom_headers:custom_headers).value! end # @@ -775,13 +777,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_link, custom_headers = nil) + def list_next_async(next_link, custom_headers:nil) fail ArgumentError, 'next_link is nil' if next_link.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -837,12 +840,12 @@ module Azure::GraphRbac::V1_6 # @return [ServicePrincipalListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_link| - list_next_async(next_link, custom_headers) + list_next_async(next_link, custom_headers:custom_headers) end page end diff --git a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/users.rb b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/users.rb index 4da67a40e..78ea25188 100644 --- a/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/users.rb +++ b/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/users.rb @@ -30,8 +30,8 @@ module Azure::GraphRbac::V1_6 # # @return [User] operation results. # - def create(parameters, custom_headers = nil) - response = create_async(parameters, custom_headers).value! + def create(parameters, custom_headers:nil) + response = create_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(parameters, custom_headers = nil) - create_async(parameters, custom_headers).value! + def create_with_http_info(parameters, custom_headers:nil) + create_async(parameters, custom_headers:custom_headers).value! end # @@ -57,14 +57,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(parameters, custom_headers = nil) + def create_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -126,8 +125,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -140,8 +139,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -153,12 +152,13 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -213,8 +213,8 @@ module Azure::GraphRbac::V1_6 # # @return [User] operation results. # - def get(upn_or_object_id, custom_headers = nil) - response = get_async(upn_or_object_id, custom_headers).value! + def get(upn_or_object_id, custom_headers:nil) + response = get_async(upn_or_object_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -228,8 +228,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(upn_or_object_id, custom_headers = nil) - get_async(upn_or_object_id, custom_headers).value! + def get_with_http_info(upn_or_object_id, custom_headers:nil) + get_async(upn_or_object_id, custom_headers:custom_headers).value! end # @@ -242,13 +242,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(upn_or_object_id, custom_headers = nil) + def get_async(upn_or_object_id, custom_headers:nil) fail ArgumentError, 'upn_or_object_id is nil' if upn_or_object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +306,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def update(upn_or_object_id, parameters, custom_headers = nil) - response = update_async(upn_or_object_id, parameters, custom_headers).value! + def update(upn_or_object_id, parameters, custom_headers:nil) + response = update_async(upn_or_object_id, parameters, custom_headers:custom_headers).value! nil end @@ -322,8 +323,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(upn_or_object_id, parameters, custom_headers = nil) - update_async(upn_or_object_id, parameters, custom_headers).value! + def update_with_http_info(upn_or_object_id, parameters, custom_headers:nil) + update_async(upn_or_object_id, parameters, custom_headers:custom_headers).value! end # @@ -338,7 +339,7 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(upn_or_object_id, parameters, custom_headers = nil) + def update_async(upn_or_object_id, parameters, custom_headers:nil) fail ArgumentError, 'upn_or_object_id is nil' if upn_or_object_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -346,7 +347,6 @@ module Azure::GraphRbac::V1_6 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -399,8 +399,8 @@ module Azure::GraphRbac::V1_6 # will be added to the HTTP request. # # - def delete(upn_or_object_id, custom_headers = nil) - response = delete_async(upn_or_object_id, custom_headers).value! + def delete(upn_or_object_id, custom_headers:nil) + response = delete_async(upn_or_object_id, custom_headers:custom_headers).value! nil end @@ -414,8 +414,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(upn_or_object_id, custom_headers = nil) - delete_async(upn_or_object_id, custom_headers).value! + def delete_with_http_info(upn_or_object_id, custom_headers:nil) + delete_async(upn_or_object_id, custom_headers:custom_headers).value! end # @@ -428,13 +428,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(upn_or_object_id, custom_headers = nil) + def delete_async(upn_or_object_id, custom_headers:nil) fail ArgumentError, 'upn_or_object_id is nil' if upn_or_object_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -482,8 +483,8 @@ module Azure::GraphRbac::V1_6 # # @return [UserGetMemberGroupsResult] operation results. # - def get_member_groups(object_id, parameters, custom_headers = nil) - response = get_member_groups_async(object_id, parameters, custom_headers).value! + def get_member_groups(object_id, parameters, custom_headers:nil) + response = get_member_groups_async(object_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -499,8 +500,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_member_groups_with_http_info(object_id, parameters, custom_headers = nil) - get_member_groups_async(object_id, parameters, custom_headers).value! + def get_member_groups_with_http_info(object_id, parameters, custom_headers:nil) + get_member_groups_async(object_id, parameters, custom_headers:custom_headers).value! end # @@ -515,7 +516,7 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_member_groups_async(object_id, parameters, custom_headers = nil) + def get_member_groups_async(object_id, parameters, custom_headers:nil) fail ArgumentError, 'object_id is nil' if object_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -523,7 +524,6 @@ module Azure::GraphRbac::V1_6 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -586,8 +586,8 @@ module Azure::GraphRbac::V1_6 # # @return [Array] operation results. # - def list_next(next_link, custom_headers = nil) - response = list_next_async(next_link, custom_headers).value! + def list_next(next_link, custom_headers:nil) + response = list_next_async(next_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -600,8 +600,8 @@ module Azure::GraphRbac::V1_6 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_link, custom_headers = nil) - list_next_async(next_link, custom_headers).value! + def list_next_with_http_info(next_link, custom_headers:nil) + list_next_async(next_link, custom_headers:custom_headers).value! end # @@ -613,13 +613,14 @@ module Azure::GraphRbac::V1_6 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_link, custom_headers = nil) + def list_next_async(next_link, custom_headers:nil) fail ArgumentError, 'next_link is nil' if next_link.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.tenant_id is nil' if @client.tenant_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -674,12 +675,12 @@ module Azure::GraphRbac::V1_6 # # @return [UserListResult] which provide lazy access to pages of the response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_link| - list_next_async(next_link, custom_headers) + list_next_async(next_link, custom_headers:custom_headers) end page end diff --git a/data/azure_graph_rbac/lib/profiles/latest/modules/graphrbac_profile_module.rb b/data/azure_graph_rbac/lib/profiles/latest/modules/graphrbac_profile_module.rb index 756e11503..8ed14f764 100644 --- a/data/azure_graph_rbac/lib/profiles/latest/modules/graphrbac_profile_module.rb +++ b/data/azure_graph_rbac/lib/profiles/latest/modules/graphrbac_profile_module.rb @@ -73,17 +73,17 @@ module Azure::GraphRbac::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::GraphRbac::V1_6::GraphRbacClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::GraphRbac::V1_6::GraphRbacClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @objects = client_0.objects - @applications = client_0.applications - @groups = client_0.groups - @service_principals = client_0.service_principals - @users = client_0.users - @domains = client_0.domains + add_telemetry(@client_0) + @objects = @client_0.objects + @applications = @client_0.applications + @groups = @client_0.groups + @service_principals = @client_0.service_principals + @users = @client_0.users + @domains = @client_0.domains @model_classes = ModelClasses.new end @@ -93,6 +93,14 @@ module Azure::GraphRbac::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/data/azure_graph_rbac/spec/1.6/graph_spec.rb b/data/azure_graph_rbac/spec/1.6/graph_spec.rb index 7f3b04da8..d39d9ae76 100644 --- a/data/azure_graph_rbac/spec/1.6/graph_spec.rb +++ b/data/azure_graph_rbac/spec/1.6/graph_spec.rb @@ -11,7 +11,7 @@ describe 'GraphRbacClient' do end it 'should list all existing users using lazy paging' do - first_page = @graph_client.users.list_as_lazy("startswith(displayName,'Sample User')") + first_page = @graph_client.users.list_as_lazy(filter:"startswith(displayName,'Sample User')") expect(first_page).not_to be_nil expect(first_page.value).to be_a(Array) expect(first_page.value[0]).to be_a(Azure::GraphRbac::V1_6::Models::User) @@ -24,7 +24,7 @@ describe 'GraphRbacClient' do end it 'should list all existing users synchronously' do - all_users = @graph_client.users.list("startswith(displayName,'Sample User')") + all_users = @graph_client.users.list(filter:"startswith(displayName,'Sample User')") expect(all_users).not_to be_nil expect(all_users).to be_a(Array) expect(all_users[0]).to be_a(Azure::GraphRbac::V1_6::Models::User) diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/servers.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/servers.rb index d7c8337b4..b69b84bbc 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/servers.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/servers.rb @@ -36,8 +36,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [AnalysisServicesServer] operation results. # - def get_details(resource_group_name, server_name, custom_headers = nil) - response = get_details_async(resource_group_name, server_name, custom_headers).value! + def get_details(resource_group_name, server_name, custom_headers:nil) + response = get_details_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_details_with_http_info(resource_group_name, server_name, custom_headers = nil) - get_details_async(resource_group_name, server_name, custom_headers).value! + def get_details_with_http_info(resource_group_name, server_name, custom_headers:nil) + get_details_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -71,7 +71,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_details_async(resource_group_name, server_name, custom_headers = nil) + def get_details_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -85,6 +85,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -145,8 +146,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [AnalysisServicesServer] operation results. # - def create(resource_group_name, server_name, server_parameters, custom_headers = nil) - response = create_async(resource_group_name, server_name, server_parameters, custom_headers).value! + def create(resource_group_name, server_name, server_parameters, custom_headers:nil) + response = create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,9 +165,9 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, server_name, server_parameters, custom_headers = nil) + def create_async(resource_group_name, server_name, server_parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers) + promise = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -193,8 +194,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, server_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, custom_headers).value! + def delete(resource_group_name, server_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -210,9 +211,9 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, server_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, server_name, custom_headers) + promise = begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -241,8 +242,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [AnalysisServicesServer] operation results. # - def update(resource_group_name, server_name, server_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, server_update_parameters, custom_headers).value! + def update(resource_group_name, server_name, server_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -260,9 +261,9 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, server_name, server_update_parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, server_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -289,8 +290,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def suspend(resource_group_name, server_name, custom_headers = nil) - response = suspend_async(resource_group_name, server_name, custom_headers).value! + def suspend(resource_group_name, server_name, custom_headers:nil) + response = suspend_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -306,9 +307,9 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def suspend_async(resource_group_name, server_name, custom_headers = nil) + def suspend_async(resource_group_name, server_name, custom_headers:nil) # Send request - promise = begin_suspend_async(resource_group_name, server_name, custom_headers) + promise = begin_suspend_async(resource_group_name, server_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -333,8 +334,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def resume(resource_group_name, server_name, custom_headers = nil) - response = resume_async(resource_group_name, server_name, custom_headers).value! + def resume(resource_group_name, server_name, custom_headers:nil) + response = resume_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -350,9 +351,9 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def resume_async(resource_group_name, server_name, custom_headers = nil) + def resume_async(resource_group_name, server_name, custom_headers:nil) # Send request - promise = begin_resume_async(resource_group_name, server_name, custom_headers) + promise = begin_resume_async(resource_group_name, server_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -377,8 +378,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [AnalysisServicesServers] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -393,8 +394,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -408,7 +409,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -418,6 +419,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -470,8 +472,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [AnalysisServicesServers] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -483,8 +485,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -495,12 +497,13 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -553,8 +556,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [SkuEnumerationForNewResourceResult] operation results. # - def list_skus_for_new(custom_headers = nil) - response = list_skus_for_new_async(custom_headers).value! + def list_skus_for_new(custom_headers:nil) + response = list_skus_for_new_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -566,8 +569,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_for_new_with_http_info(custom_headers = nil) - list_skus_for_new_async(custom_headers).value! + def list_skus_for_new_with_http_info(custom_headers:nil) + list_skus_for_new_async(custom_headers:custom_headers).value! end # @@ -578,12 +581,13 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_for_new_async(custom_headers = nil) + def list_skus_for_new_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -641,8 +645,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [SkuEnumerationForExistingResourceResult] operation results. # - def list_skus_for_existing(resource_group_name, server_name, custom_headers = nil) - response = list_skus_for_existing_async(resource_group_name, server_name, custom_headers).value! + def list_skus_for_existing(resource_group_name, server_name, custom_headers:nil) + response = list_skus_for_existing_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -659,8 +663,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_for_existing_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_skus_for_existing_async(resource_group_name, server_name, custom_headers).value! + def list_skus_for_existing_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_skus_for_existing_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -676,7 +680,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_for_existing_async(resource_group_name, server_name, custom_headers = nil) + def list_skus_for_existing_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -690,6 +694,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -750,8 +755,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [AnalysisServicesServer] operation results. # - def begin_create(resource_group_name, server_name, server_parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers).value! + def begin_create(resource_group_name, server_name, server_parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -771,8 +776,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, server_name, server_parameters, custom_headers = nil) - begin_create_async(resource_group_name, server_name, server_parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, server_name, server_parameters, custom_headers:nil) + begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers).value! end # @@ -791,7 +796,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, server_name, server_parameters, custom_headers = nil) + def begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -806,7 +811,6 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -881,8 +885,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, server_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, server_name, custom_headers).value! + def begin_delete(resource_group_name, server_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -899,8 +903,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, server_name, custom_headers = nil) - begin_delete_async(resource_group_name, server_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, server_name, custom_headers:nil) + begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -916,7 +920,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, server_name, custom_headers = nil) + def begin_delete_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -930,6 +934,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -979,8 +984,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [AnalysisServicesServer] operation results. # - def begin_update(resource_group_name, server_name, server_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers).value! + def begin_update(resource_group_name, server_name, server_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -999,8 +1004,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, server_name, server_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, server_name, server_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers).value! end # @@ -1018,7 +1023,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1033,7 +1038,6 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1108,8 +1112,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # will be added to the HTTP request. # # - def begin_suspend(resource_group_name, server_name, custom_headers = nil) - response = begin_suspend_async(resource_group_name, server_name, custom_headers).value! + def begin_suspend(resource_group_name, server_name, custom_headers:nil) + response = begin_suspend_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -1126,8 +1130,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_suspend_with_http_info(resource_group_name, server_name, custom_headers = nil) - begin_suspend_async(resource_group_name, server_name, custom_headers).value! + def begin_suspend_with_http_info(resource_group_name, server_name, custom_headers:nil) + begin_suspend_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -1143,7 +1147,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_suspend_async(resource_group_name, server_name, custom_headers = nil) + def begin_suspend_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1157,6 +1161,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1203,8 +1208,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # will be added to the HTTP request. # # - def begin_resume(resource_group_name, server_name, custom_headers = nil) - response = begin_resume_async(resource_group_name, server_name, custom_headers).value! + def begin_resume(resource_group_name, server_name, custom_headers:nil) + response = begin_resume_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -1221,8 +1226,8 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_resume_with_http_info(resource_group_name, server_name, custom_headers = nil) - begin_resume_async(resource_group_name, server_name, custom_headers).value! + def begin_resume_with_http_info(resource_group_name, server_name, custom_headers:nil) + begin_resume_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -1238,7 +1243,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_resume_async(resource_group_name, server_name, custom_headers = nil) + def begin_resume_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1252,6 +1257,7 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/servers.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/servers.rb index e32fb5daa..b054fc1ce 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/servers.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/servers.rb @@ -36,8 +36,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [AnalysisServicesServer] operation results. # - def get_details(resource_group_name, server_name, custom_headers = nil) - response = get_details_async(resource_group_name, server_name, custom_headers).value! + def get_details(resource_group_name, server_name, custom_headers:nil) + response = get_details_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_details_with_http_info(resource_group_name, server_name, custom_headers = nil) - get_details_async(resource_group_name, server_name, custom_headers).value! + def get_details_with_http_info(resource_group_name, server_name, custom_headers:nil) + get_details_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -71,7 +71,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_details_async(resource_group_name, server_name, custom_headers = nil) + def get_details_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -85,6 +85,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -145,8 +146,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [AnalysisServicesServer] operation results. # - def create(resource_group_name, server_name, server_parameters, custom_headers = nil) - response = create_async(resource_group_name, server_name, server_parameters, custom_headers).value! + def create(resource_group_name, server_name, server_parameters, custom_headers:nil) + response = create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,9 +165,9 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, server_name, server_parameters, custom_headers = nil) + def create_async(resource_group_name, server_name, server_parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers) + promise = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -193,8 +194,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, server_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, custom_headers).value! + def delete(resource_group_name, server_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -210,9 +211,9 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, server_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, server_name, custom_headers) + promise = begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -241,8 +242,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [AnalysisServicesServer] operation results. # - def update(resource_group_name, server_name, server_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, server_update_parameters, custom_headers).value! + def update(resource_group_name, server_name, server_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -260,9 +261,9 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, server_name, server_update_parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, server_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -289,8 +290,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def suspend(resource_group_name, server_name, custom_headers = nil) - response = suspend_async(resource_group_name, server_name, custom_headers).value! + def suspend(resource_group_name, server_name, custom_headers:nil) + response = suspend_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -306,9 +307,9 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def suspend_async(resource_group_name, server_name, custom_headers = nil) + def suspend_async(resource_group_name, server_name, custom_headers:nil) # Send request - promise = begin_suspend_async(resource_group_name, server_name, custom_headers) + promise = begin_suspend_async(resource_group_name, server_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -333,8 +334,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def resume(resource_group_name, server_name, custom_headers = nil) - response = resume_async(resource_group_name, server_name, custom_headers).value! + def resume(resource_group_name, server_name, custom_headers:nil) + response = resume_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -350,9 +351,9 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def resume_async(resource_group_name, server_name, custom_headers = nil) + def resume_async(resource_group_name, server_name, custom_headers:nil) # Send request - promise = begin_resume_async(resource_group_name, server_name, custom_headers) + promise = begin_resume_async(resource_group_name, server_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -377,8 +378,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [AnalysisServicesServers] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -393,8 +394,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -408,7 +409,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -418,6 +419,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -470,8 +472,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [AnalysisServicesServers] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -483,8 +485,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -495,12 +497,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -553,8 +556,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [SkuEnumerationForNewResourceResult] operation results. # - def list_skus_for_new(custom_headers = nil) - response = list_skus_for_new_async(custom_headers).value! + def list_skus_for_new(custom_headers:nil) + response = list_skus_for_new_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -566,8 +569,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_for_new_with_http_info(custom_headers = nil) - list_skus_for_new_async(custom_headers).value! + def list_skus_for_new_with_http_info(custom_headers:nil) + list_skus_for_new_async(custom_headers:custom_headers).value! end # @@ -578,12 +581,13 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_for_new_async(custom_headers = nil) + def list_skus_for_new_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -641,8 +645,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [SkuEnumerationForExistingResourceResult] operation results. # - def list_skus_for_existing(resource_group_name, server_name, custom_headers = nil) - response = list_skus_for_existing_async(resource_group_name, server_name, custom_headers).value! + def list_skus_for_existing(resource_group_name, server_name, custom_headers:nil) + response = list_skus_for_existing_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -659,8 +663,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_for_existing_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_skus_for_existing_async(resource_group_name, server_name, custom_headers).value! + def list_skus_for_existing_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_skus_for_existing_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -676,7 +680,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_for_existing_async(resource_group_name, server_name, custom_headers = nil) + def list_skus_for_existing_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -690,6 +694,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -747,8 +752,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [GatewayListStatusLive] operation results. # - def list_gateway_status(resource_group_name, server_name, custom_headers = nil) - response = list_gateway_status_async(resource_group_name, server_name, custom_headers).value! + def list_gateway_status(resource_group_name, server_name, custom_headers:nil) + response = list_gateway_status_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -765,8 +770,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_gateway_status_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_gateway_status_async(resource_group_name, server_name, custom_headers).value! + def list_gateway_status_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_gateway_status_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -782,7 +787,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_gateway_status_async(resource_group_name, server_name, custom_headers = nil) + def list_gateway_status_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -796,6 +801,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -852,8 +858,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # will be added to the HTTP request. # # - def dissociate_gateway(resource_group_name, server_name, custom_headers = nil) - response = dissociate_gateway_async(resource_group_name, server_name, custom_headers).value! + def dissociate_gateway(resource_group_name, server_name, custom_headers:nil) + response = dissociate_gateway_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -870,8 +876,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def dissociate_gateway_with_http_info(resource_group_name, server_name, custom_headers = nil) - dissociate_gateway_async(resource_group_name, server_name, custom_headers).value! + def dissociate_gateway_with_http_info(resource_group_name, server_name, custom_headers:nil) + dissociate_gateway_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -887,7 +893,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def dissociate_gateway_async(resource_group_name, server_name, custom_headers = nil) + def dissociate_gateway_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -901,6 +907,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -951,8 +958,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [AnalysisServicesServer] operation results. # - def begin_create(resource_group_name, server_name, server_parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers).value! + def begin_create(resource_group_name, server_name, server_parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -972,8 +979,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, server_name, server_parameters, custom_headers = nil) - begin_create_async(resource_group_name, server_name, server_parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, server_name, server_parameters, custom_headers:nil) + begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:custom_headers).value! end # @@ -992,7 +999,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, server_name, server_parameters, custom_headers = nil) + def begin_create_async(resource_group_name, server_name, server_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1007,7 +1014,6 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1082,8 +1088,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, server_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, server_name, custom_headers).value! + def begin_delete(resource_group_name, server_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -1100,8 +1106,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, server_name, custom_headers = nil) - begin_delete_async(resource_group_name, server_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, server_name, custom_headers:nil) + begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -1117,7 +1123,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, server_name, custom_headers = nil) + def begin_delete_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1131,6 +1137,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1180,8 +1187,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [AnalysisServicesServer] operation results. # - def begin_update(resource_group_name, server_name, server_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers).value! + def begin_update(resource_group_name, server_name, server_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1200,8 +1207,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, server_name, server_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, server_name, server_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:custom_headers).value! end # @@ -1219,7 +1226,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1234,7 +1241,6 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1309,8 +1315,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # will be added to the HTTP request. # # - def begin_suspend(resource_group_name, server_name, custom_headers = nil) - response = begin_suspend_async(resource_group_name, server_name, custom_headers).value! + def begin_suspend(resource_group_name, server_name, custom_headers:nil) + response = begin_suspend_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -1327,8 +1333,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_suspend_with_http_info(resource_group_name, server_name, custom_headers = nil) - begin_suspend_async(resource_group_name, server_name, custom_headers).value! + def begin_suspend_with_http_info(resource_group_name, server_name, custom_headers:nil) + begin_suspend_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -1344,7 +1350,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_suspend_async(resource_group_name, server_name, custom_headers = nil) + def begin_suspend_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1358,6 +1364,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1404,8 +1411,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # will be added to the HTTP request. # # - def begin_resume(resource_group_name, server_name, custom_headers = nil) - response = begin_resume_async(resource_group_name, server_name, custom_headers).value! + def begin_resume(resource_group_name, server_name, custom_headers:nil) + response = begin_resume_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -1422,8 +1429,8 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_resume_with_http_info(resource_group_name, server_name, custom_headers = nil) - begin_resume_async(resource_group_name, server_name, custom_headers).value! + def begin_resume_with_http_info(resource_group_name, server_name, custom_headers:nil) + begin_resume_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -1439,7 +1446,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_resume_async(resource_group_name, server_name, custom_headers = nil) + def begin_resume_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1453,6 +1460,7 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_analysis_services/lib/profiles/latest/modules/analysisservices_profile_module.rb b/management/azure_mgmt_analysis_services/lib/profiles/latest/modules/analysisservices_profile_module.rb index 40c586782..1e24b5787 100644 --- a/management/azure_mgmt_analysis_services/lib/profiles/latest/modules/analysisservices_profile_module.rb +++ b/management/azure_mgmt_analysis_services/lib/profiles/latest/modules/analysisservices_profile_module.rb @@ -47,12 +47,12 @@ module Azure::AnalysisServices::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::AnalysisServices::Mgmt::V2017_07_14::AnalysisServicesManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::AnalysisServices::Mgmt::V2017_07_14::AnalysisServicesManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @servers = client_0.servers + add_telemetry(@client_0) + @servers = @client_0.servers @model_classes = ModelClasses.new end @@ -62,6 +62,14 @@ module Azure::AnalysisServices::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/classic_administrators.rb b/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/classic_administrators.rb index da9c6e2d5..c9a6c2b31 100644 --- a/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/classic_administrators.rb +++ b/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/classic_administrators.rb @@ -35,8 +35,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Array] operation results. # - def list(api_version, custom_headers = nil) - first_page = list_as_lazy(api_version, custom_headers) + def list(api_version, custom_headers:nil) + first_page = list_as_lazy(api_version, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(api_version, custom_headers = nil) - list_async(api_version, custom_headers).value! + def list_with_http_info(api_version, custom_headers:nil) + list_async(api_version, custom_headers:custom_headers).value! end # @@ -64,12 +64,13 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(api_version, custom_headers = nil) + def list_async(api_version, custom_headers:nil) fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -125,8 +126,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [ClassicAdministratorListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -141,8 +142,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -156,11 +157,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -215,12 +217,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # @return [ClassicAdministratorListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(api_version, custom_headers = nil) - response = list_async(api_version, custom_headers).value! + def list_as_lazy(api_version, custom_headers:nil) + response = list_async(api_version, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/permissions.rb b/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/permissions.rb index 80504a59d..626142078 100644 --- a/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/permissions.rb +++ b/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/permissions.rb @@ -35,8 +35,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Array] operation results. # - def list_for_resource_group(resource_group_name, custom_headers = nil) - first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers) + def list_for_resource_group(resource_group_name, custom_headers:nil) + first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_for_resource_group_async(resource_group_name, custom_headers).value! + def list_for_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -64,13 +64,14 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_async(resource_group_name, custom_headers = nil) + def list_for_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Array] operation results. # - def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil) - first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers) + def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:nil) + first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -152,8 +153,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil) - list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers).value! + def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:nil) + list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:custom_headers).value! end # @@ -172,7 +173,7 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil) + def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil? @@ -183,6 +184,7 @@ module Azure::Authorization::Mgmt::V2015_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -238,8 +240,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [PermissionGetResult] operation results. # - def list_for_resource_group_next(next_page_link, custom_headers = nil) - response = list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next(next_page_link, custom_headers:nil) + response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -253,8 +255,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -267,11 +269,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_next_async(next_page_link, custom_headers = nil) + def list_for_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -325,8 +328,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [PermissionGetResult] operation results. # - def list_for_resource_next(next_page_link, custom_headers = nil) - response = list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next(next_page_link, custom_headers:nil) + response = list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -340,8 +343,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -354,11 +357,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_next_async(next_page_link, custom_headers = nil) + def list_for_resource_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -413,12 +417,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # @return [PermissionGetResult] which provide lazy access to pages of the # response. # - def list_for_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_for_resource_group_async(resource_group_name, custom_headers).value! + def list_for_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_group_next_async(next_page_link, custom_headers) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -441,12 +445,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # @return [PermissionGetResult] which provide lazy access to pages of the # response. # - def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers = nil) - response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers).value! + def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:nil) + response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_next_async(next_page_link, custom_headers) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb b/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb index 542c34ccc..8762ccf18 100644 --- a/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb +++ b/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb @@ -37,8 +37,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [ProviderOperationsMetadata] operation results. # - def get(resource_provider_namespace, api_version, expand = 'resourceTypes', custom_headers = nil) - response = get_async(resource_provider_namespace, api_version, expand, custom_headers).value! + def get(resource_provider_namespace, api_version, expand:'resourceTypes', custom_headers:nil) + response = get_async(resource_provider_namespace, api_version, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_provider_namespace, api_version, expand = 'resourceTypes', custom_headers = nil) - get_async(resource_provider_namespace, api_version, expand, custom_headers).value! + def get_with_http_info(resource_provider_namespace, api_version, expand:'resourceTypes', custom_headers:nil) + get_async(resource_provider_namespace, api_version, expand:expand, custom_headers:custom_headers).value! end # @@ -70,12 +70,13 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_provider_namespace, api_version, expand = 'resourceTypes', custom_headers = nil) + def get_async(resource_provider_namespace, api_version, expand:'resourceTypes', custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -130,8 +131,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Array] operation results. # - def list(api_version, expand = 'resourceTypes', custom_headers = nil) - first_page = list_as_lazy(api_version, expand, custom_headers) + def list(api_version, expand:'resourceTypes', custom_headers:nil) + first_page = list_as_lazy(api_version, expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -145,8 +146,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(api_version, expand = 'resourceTypes', custom_headers = nil) - list_async(api_version, expand, custom_headers).value! + def list_with_http_info(api_version, expand:'resourceTypes', custom_headers:nil) + list_async(api_version, expand:expand, custom_headers:custom_headers).value! end # @@ -159,11 +160,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(api_version, expand = 'resourceTypes', custom_headers = nil) + def list_async(api_version, expand:'resourceTypes', custom_headers:nil) fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -217,8 +219,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [ProviderOperationsMetadataListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -232,8 +234,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -246,11 +248,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,12 +308,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # @return [ProviderOperationsMetadataListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(api_version, expand = 'resourceTypes', custom_headers = nil) - response = list_async(api_version, expand, custom_headers).value! + def list_as_lazy(api_version, expand:'resourceTypes', custom_headers:nil) + response = list_async(api_version, expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/role_assignments.rb b/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/role_assignments.rb index a76b17d9d..f78abdc68 100644 --- a/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/role_assignments.rb +++ b/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/role_assignments.rb @@ -44,8 +44,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Array] operation results. # - def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers) + def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -68,8 +68,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! end # @@ -91,7 +91,7 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) + def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, 'parent_resource_path is nil' if parent_resource_path.nil? @@ -102,6 +102,7 @@ module Azure::Authorization::Mgmt::V2015_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -160,8 +161,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Array] operation results. # - def list_for_resource_group(resource_group_name, filter = nil, custom_headers = nil) - first_page = list_for_resource_group_as_lazy(resource_group_name, filter, custom_headers) + def list_for_resource_group(resource_group_name, filter:nil, custom_headers:nil) + first_page = list_for_resource_group_as_lazy(resource_group_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -178,8 +179,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_with_http_info(resource_group_name, filter = nil, custom_headers = nil) - list_for_resource_group_async(resource_group_name, filter, custom_headers).value! + def list_for_resource_group_with_http_info(resource_group_name, filter:nil, custom_headers:nil) + list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -195,13 +196,14 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_async(resource_group_name, filter = nil, custom_headers = nil) + def list_for_resource_group_async(resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -257,8 +259,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleAssignment] operation results. # - def delete(scope, role_assignment_name, custom_headers = nil) - response = delete_async(scope, role_assignment_name, custom_headers).value! + def delete(scope, role_assignment_name, custom_headers:nil) + response = delete_async(scope, role_assignment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -273,8 +275,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(scope, role_assignment_name, custom_headers = nil) - delete_async(scope, role_assignment_name, custom_headers).value! + def delete_with_http_info(scope, role_assignment_name, custom_headers:nil) + delete_async(scope, role_assignment_name, custom_headers:custom_headers).value! end # @@ -288,13 +290,14 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(scope, role_assignment_name, custom_headers = nil) + def delete_async(scope, role_assignment_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'role_assignment_name is nil' if role_assignment_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -359,8 +362,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleAssignment] operation results. # - def create(scope, role_assignment_name, parameters, custom_headers = nil) - response = create_async(scope, role_assignment_name, parameters, custom_headers).value! + def create(scope, role_assignment_name, parameters, custom_headers:nil) + response = create_async(scope, role_assignment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -383,8 +386,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(scope, role_assignment_name, parameters, custom_headers = nil) - create_async(scope, role_assignment_name, parameters, custom_headers).value! + def create_with_http_info(scope, role_assignment_name, parameters, custom_headers:nil) + create_async(scope, role_assignment_name, parameters, custom_headers:custom_headers).value! end # @@ -406,7 +409,7 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(scope, role_assignment_name, parameters, custom_headers = nil) + def create_async(scope, role_assignment_name, parameters, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'role_assignment_name is nil' if role_assignment_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -414,7 +417,6 @@ module Azure::Authorization::Mgmt::V2015_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -478,8 +480,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleAssignment] operation results. # - def get(scope, role_assignment_name, custom_headers = nil) - response = get_async(scope, role_assignment_name, custom_headers).value! + def get(scope, role_assignment_name, custom_headers:nil) + response = get_async(scope, role_assignment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -493,8 +495,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(scope, role_assignment_name, custom_headers = nil) - get_async(scope, role_assignment_name, custom_headers).value! + def get_with_http_info(scope, role_assignment_name, custom_headers:nil) + get_async(scope, role_assignment_name, custom_headers:custom_headers).value! end # @@ -507,13 +509,14 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(scope, role_assignment_name, custom_headers = nil) + def get_async(scope, role_assignment_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'role_assignment_name is nil' if role_assignment_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -568,8 +571,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleAssignment] operation results. # - def delete_by_id(role_assignment_id, custom_headers = nil) - response = delete_by_id_async(role_assignment_id, custom_headers).value! + def delete_by_id(role_assignment_id, custom_headers:nil) + response = delete_by_id_async(role_assignment_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -582,8 +585,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_by_id_with_http_info(role_assignment_id, custom_headers = nil) - delete_by_id_async(role_assignment_id, custom_headers).value! + def delete_by_id_with_http_info(role_assignment_id, custom_headers:nil) + delete_by_id_async(role_assignment_id, custom_headers:custom_headers).value! end # @@ -595,12 +598,13 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_by_id_async(role_assignment_id, custom_headers = nil) + def delete_by_id_async(role_assignment_id, custom_headers:nil) fail ArgumentError, 'role_assignment_id is nil' if role_assignment_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -656,8 +660,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleAssignment] operation results. # - def create_by_id(role_assignment_id, parameters, custom_headers = nil) - response = create_by_id_async(role_assignment_id, parameters, custom_headers).value! + def create_by_id(role_assignment_id, parameters, custom_headers:nil) + response = create_by_id_async(role_assignment_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -672,8 +676,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_by_id_with_http_info(role_assignment_id, parameters, custom_headers = nil) - create_by_id_async(role_assignment_id, parameters, custom_headers).value! + def create_by_id_with_http_info(role_assignment_id, parameters, custom_headers:nil) + create_by_id_async(role_assignment_id, parameters, custom_headers:custom_headers).value! end # @@ -687,14 +691,13 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_by_id_async(role_assignment_id, parameters, custom_headers = nil) + def create_by_id_async(role_assignment_id, parameters, custom_headers:nil) fail ArgumentError, 'role_assignment_id is nil' if role_assignment_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -756,8 +759,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleAssignment] operation results. # - def get_by_id(role_assignment_id, custom_headers = nil) - response = get_by_id_async(role_assignment_id, custom_headers).value! + def get_by_id(role_assignment_id, custom_headers:nil) + response = get_by_id_async(role_assignment_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -770,8 +773,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_id_with_http_info(role_assignment_id, custom_headers = nil) - get_by_id_async(role_assignment_id, custom_headers).value! + def get_by_id_with_http_info(role_assignment_id, custom_headers:nil) + get_by_id_async(role_assignment_id, custom_headers:custom_headers).value! end # @@ -783,12 +786,13 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_id_async(role_assignment_id, custom_headers = nil) + def get_by_id_async(role_assignment_id, custom_headers:nil) fail ArgumentError, 'role_assignment_id is nil' if role_assignment_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -845,8 +849,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -862,8 +866,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -878,12 +882,13 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -941,8 +946,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Array] operation results. # - def list_for_scope(scope, filter = nil, custom_headers = nil) - first_page = list_for_scope_as_lazy(scope, filter, custom_headers) + def list_for_scope(scope, filter:nil, custom_headers:nil) + first_page = list_for_scope_as_lazy(scope, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -959,8 +964,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_scope_with_http_info(scope, filter = nil, custom_headers = nil) - list_for_scope_async(scope, filter, custom_headers).value! + def list_for_scope_with_http_info(scope, filter:nil, custom_headers:nil) + list_for_scope_async(scope, filter:filter, custom_headers:custom_headers).value! end # @@ -976,12 +981,13 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_scope_async(scope, filter = nil, custom_headers = nil) + def list_for_scope_async(scope, filter:nil, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1036,8 +1042,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleAssignmentListResult] operation results. # - def list_for_resource_next(next_page_link, custom_headers = nil) - response = list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next(next_page_link, custom_headers:nil) + response = list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1051,8 +1057,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1065,11 +1071,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_next_async(next_page_link, custom_headers = nil) + def list_for_resource_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1123,8 +1130,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleAssignmentListResult] operation results. # - def list_for_resource_group_next(next_page_link, custom_headers = nil) - response = list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next(next_page_link, custom_headers:nil) + response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1138,8 +1145,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1152,11 +1159,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_next_async(next_page_link, custom_headers = nil) + def list_for_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1210,8 +1218,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleAssignmentListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1225,8 +1233,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1239,11 +1247,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1297,8 +1306,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleAssignmentListResult] operation results. # - def list_for_scope_next(next_page_link, custom_headers = nil) - response = list_for_scope_next_async(next_page_link, custom_headers).value! + def list_for_scope_next(next_page_link, custom_headers:nil) + response = list_for_scope_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1312,8 +1321,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_scope_next_with_http_info(next_page_link, custom_headers = nil) - list_for_scope_next_async(next_page_link, custom_headers).value! + def list_for_scope_next_with_http_info(next_page_link, custom_headers:nil) + list_for_scope_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1326,11 +1335,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_scope_next_async(next_page_link, custom_headers = nil) + def list_for_scope_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1394,12 +1404,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # @return [RoleAssignmentListResult] which provide lazy access to pages of the # response. # - def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_next_async(next_page_link, custom_headers) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1419,12 +1429,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # @return [RoleAssignmentListResult] which provide lazy access to pages of the # response. # - def list_for_resource_group_as_lazy(resource_group_name, filter = nil, custom_headers = nil) - response = list_for_resource_group_async(resource_group_name, filter, custom_headers).value! + def list_for_resource_group_as_lazy(resource_group_name, filter:nil, custom_headers:nil) + response = list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_group_next_async(next_page_link, custom_headers) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1443,12 +1453,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # @return [RoleAssignmentListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1468,12 +1478,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # @return [RoleAssignmentListResult] which provide lazy access to pages of the # response. # - def list_for_scope_as_lazy(scope, filter = nil, custom_headers = nil) - response = list_for_scope_async(scope, filter, custom_headers).value! + def list_for_scope_as_lazy(scope, filter:nil, custom_headers:nil) + response = list_for_scope_async(scope, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_scope_next_async(next_page_link, custom_headers) + list_for_scope_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/role_definitions.rb b/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/role_definitions.rb index 189744936..0aa6297b7 100644 --- a/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/role_definitions.rb +++ b/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/role_definitions.rb @@ -35,8 +35,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleDefinition] operation results. # - def delete(scope, role_definition_id, custom_headers = nil) - response = delete_async(scope, role_definition_id, custom_headers).value! + def delete(scope, role_definition_id, custom_headers:nil) + response = delete_async(scope, role_definition_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(scope, role_definition_id, custom_headers = nil) - delete_async(scope, role_definition_id, custom_headers).value! + def delete_with_http_info(scope, role_definition_id, custom_headers:nil) + delete_async(scope, role_definition_id, custom_headers:custom_headers).value! end # @@ -64,13 +64,14 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(scope, role_definition_id, custom_headers = nil) + def delete_async(scope, role_definition_id, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleDefinition] operation results. # - def get(scope, role_definition_id, custom_headers = nil) - response = get_async(scope, role_definition_id, custom_headers).value! + def get(scope, role_definition_id, custom_headers:nil) + response = get_async(scope, role_definition_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -141,8 +142,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(scope, role_definition_id, custom_headers = nil) - get_async(scope, role_definition_id, custom_headers).value! + def get_with_http_info(scope, role_definition_id, custom_headers:nil) + get_async(scope, role_definition_id, custom_headers:custom_headers).value! end # @@ -155,13 +156,14 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(scope, role_definition_id, custom_headers = nil) + def get_async(scope, role_definition_id, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -218,8 +220,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleDefinition] operation results. # - def create_or_update(scope, role_definition_id, role_definition, custom_headers = nil) - response = create_or_update_async(scope, role_definition_id, role_definition, custom_headers).value! + def create_or_update(scope, role_definition_id, role_definition, custom_headers:nil) + response = create_or_update_async(scope, role_definition_id, role_definition, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -234,8 +236,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(scope, role_definition_id, role_definition, custom_headers = nil) - create_or_update_async(scope, role_definition_id, role_definition, custom_headers).value! + def create_or_update_with_http_info(scope, role_definition_id, role_definition, custom_headers:nil) + create_or_update_async(scope, role_definition_id, role_definition, custom_headers:custom_headers).value! end # @@ -249,7 +251,7 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(scope, role_definition_id, role_definition, custom_headers = nil) + def create_or_update_async(scope, role_definition_id, role_definition, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil? fail ArgumentError, 'role_definition is nil' if role_definition.nil? @@ -257,7 +259,6 @@ module Azure::Authorization::Mgmt::V2015_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -321,8 +322,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleDefinition] operation results. # - def get_by_id(role_definition_id, custom_headers = nil) - response = get_by_id_async(role_definition_id, custom_headers).value! + def get_by_id(role_definition_id, custom_headers:nil) + response = get_by_id_async(role_definition_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -336,8 +337,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_id_with_http_info(role_definition_id, custom_headers = nil) - get_by_id_async(role_definition_id, custom_headers).value! + def get_by_id_with_http_info(role_definition_id, custom_headers:nil) + get_by_id_async(role_definition_id, custom_headers:custom_headers).value! end # @@ -350,12 +351,13 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_id_async(role_definition_id, custom_headers = nil) + def get_by_id_async(role_definition_id, custom_headers:nil) fail ArgumentError, 'role_definition_id is nil' if role_definition_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -411,8 +413,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Array] operation results. # - def list(scope, filter = nil, custom_headers = nil) - first_page = list_as_lazy(scope, filter, custom_headers) + def list(scope, filter:nil, custom_headers:nil) + first_page = list_as_lazy(scope, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -427,8 +429,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(scope, filter = nil, custom_headers = nil) - list_async(scope, filter, custom_headers).value! + def list_with_http_info(scope, filter:nil, custom_headers:nil) + list_async(scope, filter:filter, custom_headers:custom_headers).value! end # @@ -442,12 +444,13 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(scope, filter = nil, custom_headers = nil) + def list_async(scope, filter:nil, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -502,8 +505,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [RoleDefinitionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -517,8 +520,8 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -531,11 +534,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -591,12 +595,12 @@ module Azure::Authorization::Mgmt::V2015_07_01 # @return [RoleDefinitionListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(scope, filter = nil, custom_headers = nil) - response = list_async(scope, filter, custom_headers).value! + def list_as_lazy(scope, filter:nil, custom_headers:nil) + response = list_async(scope, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_authorization/lib/profiles/latest/modules/authorization_profile_module.rb b/management/azure_mgmt_authorization/lib/profiles/latest/modules/authorization_profile_module.rb index 5bf4cb36c..6b3240d4f 100644 --- a/management/azure_mgmt_authorization/lib/profiles/latest/modules/authorization_profile_module.rb +++ b/management/azure_mgmt_authorization/lib/profiles/latest/modules/authorization_profile_module.rb @@ -53,16 +53,16 @@ module Azure::Authorization::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Authorization::Mgmt::V2015_07_01::AuthorizationManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Authorization::Mgmt::V2015_07_01::AuthorizationManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @classic_administrators = client_0.classic_administrators - @permissions = client_0.permissions - @provider_operations_metadata_operations = client_0.provider_operations_metadata_operations - @role_assignments = client_0.role_assignments - @role_definitions = client_0.role_definitions + add_telemetry(@client_0) + @classic_administrators = @client_0.classic_administrators + @permissions = @client_0.permissions + @provider_operations_metadata_operations = @client_0.provider_operations_metadata_operations + @role_assignments = @client_0.role_assignments + @role_definitions = @client_0.role_definitions @model_classes = ModelClasses.new end @@ -72,6 +72,14 @@ module Azure::Authorization::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb index 51d204fa3..bc5caed9c 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb @@ -34,8 +34,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Activity] operation results. # - def get(resource_group_name, automation_account_name, module_name, activity_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, module_name, activity_name, custom_headers).value! + def get(resource_group_name, automation_account_name, module_name, activity_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, module_name, activity_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, module_name, activity_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, module_name, activity_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, module_name, activity_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, module_name, activity_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, module_name, activity_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, module_name, activity_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -80,6 +80,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_module(resource_group_name, automation_account_name, module_name, custom_headers = nil) - first_page = list_by_module_as_lazy(resource_group_name, automation_account_name, module_name, custom_headers) + def list_by_module(resource_group_name, automation_account_name, module_name, custom_headers:nil) + first_page = list_by_module_as_lazy(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers) first_page.get_all_items end @@ -151,8 +152,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_module_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers = nil) - list_by_module_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def list_by_module_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers:nil) + list_by_module_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value! end # @@ -166,7 +167,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_module_async(resource_group_name, automation_account_name, module_name, custom_headers = nil) + def list_by_module_async(resource_group_name, automation_account_name, module_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -176,6 +177,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -230,8 +232,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [ActivityListResult] operation results. # - def list_by_module_next(next_page_link, custom_headers = nil) - response = list_by_module_next_async(next_page_link, custom_headers).value! + def list_by_module_next(next_page_link, custom_headers:nil) + response = list_by_module_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -245,8 +247,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_module_next_with_http_info(next_page_link, custom_headers = nil) - list_by_module_next_async(next_page_link, custom_headers).value! + def list_by_module_next_with_http_info(next_page_link, custom_headers:nil) + list_by_module_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -259,11 +261,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_module_next_async(next_page_link, custom_headers = nil) + def list_by_module_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -319,12 +322,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [ActivityListResult] which provide lazy access to pages of the # response. # - def list_by_module_as_lazy(resource_group_name, automation_account_name, module_name, custom_headers = nil) - response = list_by_module_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def list_by_module_as_lazy(resource_group_name, automation_account_name, module_name, custom_headers:nil) + response = list_by_module_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_module_next_async(next_page_link, custom_headers) + list_by_module_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb index fb6e89b13..bd4e33695 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb @@ -31,8 +31,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [AgentRegistration] operation results. # - def get(resource_group_name, automation_account_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, custom_headers).value! + def get(resource_group_name, automation_account_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -69,6 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -125,8 +126,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [AgentRegistration] operation results. # - def regenerate_key(resource_group_name, automation_account_name, parameters, custom_headers = nil) - response = regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers).value! + def regenerate_key(resource_group_name, automation_account_name, parameters, custom_headers:nil) + response = regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -142,8 +143,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers = nil) - regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil) + regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! end # @@ -158,7 +159,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers = nil) + def regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -168,7 +169,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb index 4a82403e4..58ff1bcae 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb @@ -33,8 +33,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [AutomationAccount] operation results. # - def update(resource_group_name, automation_account_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, parameters, custom_headers).value! + def update(resource_group_name, automation_account_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil) + update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, parameters, custom_headers = nil) + def update_async(resource_group_name, automation_account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -76,7 +76,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -142,8 +141,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [AutomationAccount] operation results. # - def create_or_update(resource_group_name, automation_account_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -160,8 +159,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! end # @@ -177,7 +176,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -187,7 +186,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -259,8 +257,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! nil end @@ -274,8 +272,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -288,7 +286,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -297,6 +295,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -341,8 +340,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [AutomationAccount] operation results. # - def get(resource_group_name, automation_account_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, custom_headers).value! + def get(resource_group_name, automation_account_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -356,8 +355,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -370,7 +369,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -379,6 +378,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -432,8 +432,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -446,8 +446,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -459,7 +459,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -467,6 +467,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -521,8 +522,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -536,8 +537,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -550,12 +551,13 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -610,8 +612,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [AutomationAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -625,8 +627,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -639,11 +641,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -699,8 +702,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [AutomationAccountListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -716,8 +719,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -732,11 +735,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -790,12 +794,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [AutomationAccountListResult] which provide lazy access to pages of # the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -812,12 +816,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [AutomationAccountListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb index 525d8af79..1f9a1ad82 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb @@ -31,8 +31,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, certificate_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, certificate_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value! nil end @@ -47,8 +47,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value! end # @@ -62,7 +62,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -72,6 +72,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Certificate] operation results. # - def get(resource_group_name, automation_account_name, certificate_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value! + def get(resource_group_name, automation_account_name, certificate_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -133,8 +134,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value! end # @@ -148,7 +149,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, certificate_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, certificate_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -158,6 +159,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -216,8 +218,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Certificate] operation results. # - def create_or_update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -235,8 +237,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value! end # @@ -253,7 +255,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -264,7 +266,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -341,8 +342,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Certificate] operation results. # - def update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value! + def update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -360,8 +361,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil) + update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value! end # @@ -378,7 +379,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil) + def update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -389,7 +390,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -452,8 +452,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -467,8 +467,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -481,7 +481,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -490,6 +490,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -544,8 +545,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [CertificateListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -559,8 +560,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -573,11 +574,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -632,12 +634,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [CertificateListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb index 46b1ecefc..47832b440 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb @@ -32,8 +32,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Connection] operation results. # - def delete(resource_group_name, automation_account_name, connection_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, connection_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, connection_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, connection_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, connection_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -73,6 +73,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -128,8 +129,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Connection] operation results. # - def get(resource_group_name, automation_account_name, connection_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, connection_name, custom_headers).value! + def get(resource_group_name, automation_account_name, connection_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, connection_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, connection_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -169,6 +170,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -227,8 +229,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Connection] operation results. # - def create_or_update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -246,8 +248,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value! end # @@ -264,7 +266,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -275,7 +277,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -352,8 +353,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Connection] operation results. # - def update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value! + def update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -371,8 +372,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil) + update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value! end # @@ -389,7 +390,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil) + def update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -400,7 +401,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -463,8 +463,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -478,8 +478,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -492,7 +492,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -501,6 +501,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -555,8 +556,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [ConnectionListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -570,8 +571,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -584,11 +585,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -643,12 +645,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [ConnectionListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb index 0195b74e7..8b6d9ad14 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb @@ -31,8 +31,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value! nil end @@ -47,8 +47,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value! end # @@ -62,7 +62,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -72,6 +72,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [ConnectionType] operation results. # - def get(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value! + def get(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -133,8 +134,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value! end # @@ -148,7 +149,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -158,6 +159,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -216,8 +218,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [ConnectionType] operation results. # - def create_or_update(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -235,8 +237,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:custom_headers).value! end # @@ -253,7 +255,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -264,7 +266,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -337,8 +338,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -352,8 +353,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -366,7 +367,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -375,6 +376,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -429,8 +431,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [ConnectionTypeListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -444,8 +446,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -458,11 +460,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -517,12 +520,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [ConnectionTypeListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb index 1b0ebb8db..f44ba5921 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb @@ -31,8 +31,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, credential_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, credential_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, credential_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value! nil end @@ -47,8 +47,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, credential_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, credential_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, credential_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value! end # @@ -62,7 +62,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, credential_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, credential_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -72,6 +72,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Credential] operation results. # - def get(resource_group_name, automation_account_name, credential_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, credential_name, custom_headers).value! + def get(resource_group_name, automation_account_name, credential_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -133,8 +134,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, credential_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, credential_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, credential_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value! end # @@ -148,7 +149,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, credential_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, credential_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -158,6 +159,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -216,8 +218,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Credential] operation results. # - def create_or_update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -235,8 +237,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value! end # @@ -253,7 +255,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -264,7 +266,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -341,8 +342,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Credential] operation results. # - def update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value! + def update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -360,8 +361,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil) + update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value! end # @@ -378,7 +379,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil) + def update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -389,7 +390,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -452,8 +452,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -467,8 +467,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -481,7 +481,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -490,6 +490,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -544,8 +545,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [CredentialListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -559,8 +560,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -573,11 +574,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -632,12 +634,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [CredentialListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb index 474dc414f..eef424b9d 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb @@ -34,8 +34,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscCompilationJob] operation results. # - def create(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers = nil) - response = create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers).value! + def create(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:nil) + response = create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers = nil) - create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers).value! + def create_with_http_info(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:nil) + create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers = nil) + def create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -80,7 +80,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -144,8 +143,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscCompilationJob] operation results. # - def get(resource_group_name, automation_account_name, compilation_job_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers).value! + def get(resource_group_name, automation_account_name, compilation_job_id, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -160,8 +159,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, compilation_job_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, compilation_job_id, custom_headers:nil) + get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers:custom_headers).value! end # @@ -175,7 +174,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -185,6 +184,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -240,8 +240,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -256,8 +256,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! end # @@ -271,7 +271,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -280,6 +280,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -336,8 +337,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [JobStream] operation results. # - def get_stream(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) - response = get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value! + def get_stream(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil) + response = get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -353,8 +354,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_stream_with_http_info(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) - get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value! + def get_stream_with_http_info(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil) + get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value! end # @@ -369,7 +370,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) + def get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -380,6 +381,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -434,8 +436,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscCompilationJobListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -449,8 +451,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -463,11 +465,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -523,12 +526,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [DscCompilationJobListResult] which provide lazy access to pages of # the response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb index da32ad34f..7a713b966 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb @@ -31,8 +31,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, configuration_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value! nil end @@ -47,8 +47,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value! end # @@ -62,7 +62,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -72,6 +72,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscConfiguration] operation results. # - def get(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def get(resource_group_name, automation_account_name, configuration_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -133,8 +134,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value! end # @@ -148,7 +149,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, configuration_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -158,6 +159,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -216,8 +218,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscConfiguration] operation results. # - def create_or_update(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -235,8 +237,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:custom_headers).value! end # @@ -253,7 +255,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -264,7 +266,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -338,8 +339,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [NOT_IMPLEMENTED] operation results. # - def get_content(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - response = get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def get_content(resource_group_name, automation_account_name, configuration_name, custom_headers:nil) + response = get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -354,8 +355,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_content_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def get_content_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers:nil) + get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value! end # @@ -369,7 +370,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) + def get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -379,6 +380,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +442,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -455,8 +457,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -469,7 +471,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -478,6 +480,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -532,8 +535,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscConfigurationListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -547,8 +550,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -561,11 +564,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -620,12 +624,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [DscConfigurationListResult] which provide lazy access to pages of # the response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb index 2becac205..392c2d53d 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb @@ -31,8 +31,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, node_configuration_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value! nil end @@ -47,8 +47,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value! end # @@ -62,7 +62,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -72,6 +72,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscNodeConfiguration] operation results. # - def get(resource_group_name, automation_account_name, node_configuration_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value! + def get(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -133,8 +134,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value! end # @@ -148,7 +149,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -158,6 +159,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -216,8 +218,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscNodeConfiguration] operation results. # - def create_or_update(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -235,8 +237,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:custom_headers).value! end # @@ -253,7 +255,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -264,7 +266,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -338,8 +339,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -354,8 +355,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! end # @@ -369,7 +370,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -378,6 +379,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -432,8 +434,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscNodeConfigurationListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -447,8 +449,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -461,11 +463,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -521,12 +524,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [DscNodeConfigurationListResult] which provide lazy access to pages # of the response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb index 6179f62ea..d566fdb8e 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb @@ -32,8 +32,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscNode] operation results. # - def delete(resource_group_name, automation_account_name, node_id, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, node_id, custom_headers).value! + def delete(resource_group_name, automation_account_name, node_id, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, node_id, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, node_id, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, node_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -73,6 +73,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -128,8 +129,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscNode] operation results. # - def get(resource_group_name, automation_account_name, node_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, node_id, custom_headers).value! + def get(resource_group_name, automation_account_name, node_id, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, node_id, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers:nil) + get_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, node_id, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, node_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -169,6 +170,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -226,8 +228,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscNode] operation results. # - def update(resource_group_name, automation_account_name, node_id, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers).value! + def update(resource_group_name, automation_account_name, node_id, parameters, custom_headers:nil) + response = update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -244,8 +246,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, node_id, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, node_id, parameters, custom_headers:nil) + update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers:custom_headers).value! end # @@ -261,7 +263,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers = nil) + def update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -272,7 +274,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -336,8 +337,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -352,8 +353,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! end # @@ -367,7 +368,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -376,6 +377,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -430,8 +432,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscNodeListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -445,8 +447,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -459,11 +461,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -519,12 +522,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [DscNodeListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb index ca0923fbe..85e511483 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb @@ -33,8 +33,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [TypeFieldListResult] operation results. # - def list_by_type(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil) - response = list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value! + def list_by_type(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil) + response = list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_type_with_http_info(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil) - list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value! + def list_by_type_with_http_info(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil) + list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil) + def list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -77,6 +77,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb index 00d66a76c..ac83d8fbb 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb @@ -32,8 +32,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value! nil end @@ -49,8 +49,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value! end # @@ -65,7 +65,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -75,6 +75,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -121,8 +122,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [HybridRunbookWorkerGroup] operation results. # - def get(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! + def get(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -138,8 +139,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value! end # @@ -154,7 +155,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -164,6 +165,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +224,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [HybridRunbookWorkerGroup] operation results. # - def update(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers).value! + def update(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -241,8 +243,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil) + update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:custom_headers).value! end # @@ -259,7 +261,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil) + def update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -270,7 +272,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -333,8 +334,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -348,8 +349,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -362,7 +363,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -371,6 +372,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -425,8 +427,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [HybridRunbookWorkerGroupsListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -440,8 +442,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -454,11 +456,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -513,12 +516,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [HybridRunbookWorkerGroupsListResult] which provide lazy access to # pages of the response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb index d5581691b..595e154f3 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb @@ -32,8 +32,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [NOT_IMPLEMENTED] operation results. # - def get_output(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = get_output_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get_output(resource_group_name, automation_account_name, job_id, custom_headers:nil) + response = get_output_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_output_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - get_output_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get_output_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil) + get_output_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_output_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) + def get_output_async(resource_group_name, automation_account_name, job_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -73,6 +73,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [NOT_IMPLEMENTED] operation results. # - def get_runbook_content(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get_runbook_content(resource_group_name, automation_account_name, job_id, custom_headers:nil) + response = get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_runbook_content_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get_runbook_content_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil) + get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! end # @@ -166,7 +167,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) + def get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -176,6 +177,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -237,8 +239,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def suspend(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = suspend_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def suspend(resource_group_name, automation_account_name, job_id, custom_headers:nil) + response = suspend_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! nil end @@ -253,8 +255,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def suspend_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - suspend_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def suspend_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil) + suspend_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! end # @@ -268,7 +270,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def suspend_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) + def suspend_async(resource_group_name, automation_account_name, job_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -278,6 +280,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -322,8 +325,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def stop(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = stop_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def stop(resource_group_name, automation_account_name, job_id, custom_headers:nil) + response = stop_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! nil end @@ -338,8 +341,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - stop_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def stop_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil) + stop_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! end # @@ -353,7 +356,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) + def stop_async(resource_group_name, automation_account_name, job_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -363,6 +366,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -408,8 +412,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Job] operation results. # - def get(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get(resource_group_name, automation_account_name, job_id, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -424,8 +428,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil) + get_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! end # @@ -439,7 +443,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, job_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -449,6 +453,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -506,8 +511,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Job] operation results. # - def create(resource_group_name, automation_account_name, job_id, parameters, custom_headers = nil) - response = create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers).value! + def create(resource_group_name, automation_account_name, job_id, parameters, custom_headers:nil) + response = create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -524,8 +529,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, automation_account_name, job_id, parameters, custom_headers = nil) - create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers).value! + def create_with_http_info(resource_group_name, automation_account_name, job_id, parameters, custom_headers:nil) + create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers:custom_headers).value! end # @@ -541,7 +546,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers = nil) + def create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -552,7 +557,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -616,8 +620,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -632,8 +636,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! end # @@ -647,7 +651,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -656,6 +660,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -710,8 +715,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def resume(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = resume_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def resume(resource_group_name, automation_account_name, job_id, custom_headers:nil) + response = resume_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! nil end @@ -726,8 +731,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def resume_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - resume_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def resume_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil) + resume_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value! end # @@ -741,7 +746,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def resume_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) + def resume_async(resource_group_name, automation_account_name, job_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -751,6 +756,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -795,8 +801,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [JobListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -810,8 +816,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -824,11 +830,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -883,12 +890,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [JobListResult] which provide lazy access to pages of the response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb index f28066bc4..7db8080e7 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb @@ -31,8 +31,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value! + def delete(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:custom_headers).value! nil end @@ -47,8 +47,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:custom_headers).value! end # @@ -62,7 +62,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -72,6 +72,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [JobSchedule] operation results. # - def get(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value! + def get(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -133,8 +134,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil) + get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:custom_headers).value! end # @@ -148,7 +149,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -158,6 +159,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -215,8 +217,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [JobSchedule] operation results. # - def create(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers = nil) - response = create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers).value! + def create(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers:nil) + response = create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -233,8 +235,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers = nil) - create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers).value! + def create_with_http_info(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers:nil) + create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers:custom_headers).value! end # @@ -250,7 +252,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers = nil) + def create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -261,7 +263,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -324,8 +325,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -339,8 +340,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -353,7 +354,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -362,6 +363,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -416,8 +418,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [JobScheduleListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -431,8 +433,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -445,11 +447,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -504,12 +507,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [JobScheduleListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb index 340a6c039..e5fead5b9 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb @@ -33,8 +33,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [JobStream] operation results. # - def get(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value! + def get(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil) + get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -77,6 +77,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_job(resource_group_name, automation_account_name, job_id, filter = nil, custom_headers = nil) - first_page = list_by_job_as_lazy(resource_group_name, automation_account_name, job_id, filter, custom_headers) + def list_by_job(resource_group_name, automation_account_name, job_id, filter:nil, custom_headers:nil) + first_page = list_by_job_as_lazy(resource_group_name, automation_account_name, job_id, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -150,8 +151,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_job_with_http_info(resource_group_name, automation_account_name, job_id, filter = nil, custom_headers = nil) - list_by_job_async(resource_group_name, automation_account_name, job_id, filter, custom_headers).value! + def list_by_job_with_http_info(resource_group_name, automation_account_name, job_id, filter:nil, custom_headers:nil) + list_by_job_async(resource_group_name, automation_account_name, job_id, filter:filter, custom_headers:custom_headers).value! end # @@ -166,7 +167,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_job_async(resource_group_name, automation_account_name, job_id, filter = nil, custom_headers = nil) + def list_by_job_async(resource_group_name, automation_account_name, job_id, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -176,6 +177,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -230,8 +232,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [JobStreamListResult] operation results. # - def list_by_job_next(next_page_link, custom_headers = nil) - response = list_by_job_next_async(next_page_link, custom_headers).value! + def list_by_job_next(next_page_link, custom_headers:nil) + response = list_by_job_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -245,8 +247,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_job_next_with_http_info(next_page_link, custom_headers = nil) - list_by_job_next_async(next_page_link, custom_headers).value! + def list_by_job_next_with_http_info(next_page_link, custom_headers:nil) + list_by_job_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -259,11 +261,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_job_next_async(next_page_link, custom_headers = nil) + def list_by_job_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -320,12 +323,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [JobStreamListResult] which provide lazy access to pages of the # response. # - def list_by_job_as_lazy(resource_group_name, automation_account_name, job_id, filter = nil, custom_headers = nil) - response = list_by_job_async(resource_group_name, automation_account_name, job_id, filter, custom_headers).value! + def list_by_job_as_lazy(resource_group_name, automation_account_name, job_id, filter:nil, custom_headers:nil) + response = list_by_job_async(resource_group_name, automation_account_name, job_id, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_job_next_async(next_page_link, custom_headers) + list_by_job_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb index 9a2f7ebaf..4004b7f50 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb @@ -31,8 +31,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, module_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, module_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value! nil end @@ -47,8 +47,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value! end # @@ -62,7 +62,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, module_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, module_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -72,6 +72,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [ModuleModel] operation results. # - def get(resource_group_name, automation_account_name, module_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def get(resource_group_name, automation_account_name, module_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -133,8 +134,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value! end # @@ -148,7 +149,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, module_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, module_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -158,6 +159,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -215,8 +217,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [ModuleModel] operation results. # - def create_or_update(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -233,8 +235,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value! end # @@ -250,7 +252,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -261,7 +263,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -336,8 +337,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [ModuleModel] operation results. # - def update(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value! + def update(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -353,8 +354,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil) + update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value! end # @@ -369,7 +370,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil) + def update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -380,7 +381,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -443,8 +443,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -458,8 +458,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -472,7 +472,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -481,6 +481,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -535,8 +536,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [ModuleListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -550,8 +551,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -564,11 +565,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -623,12 +625,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [ModuleListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb index f06b71e71..480e64289 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb @@ -33,8 +33,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_node(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil) - first_page = list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter, custom_headers) + def list_by_node(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil) + first_page = list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_node_with_http_info(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil) - list_by_node_async(resource_group_name, automation_account_name, node_id, filter, custom_headers).value! + def list_by_node_with_http_info(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil) + list_by_node_async(resource_group_name, automation_account_name, node_id, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_node_async(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil) + def list_by_node_async(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -76,6 +76,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -132,8 +133,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscNodeReport] operation results. # - def get(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value! + def get(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -149,8 +150,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil) + get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value! end # @@ -165,7 +166,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -176,6 +177,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -232,8 +234,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [NOT_IMPLEMENTED] operation results. # - def get_content(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) - response = get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value! + def get_content(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil) + response = get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -249,8 +251,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_content_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) - get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value! + def get_content_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil) + get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value! end # @@ -265,7 +267,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) + def get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -276,6 +278,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -337,8 +340,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [DscNodeReportListResult] operation results. # - def list_by_node_next(next_page_link, custom_headers = nil) - response = list_by_node_next_async(next_page_link, custom_headers).value! + def list_by_node_next(next_page_link, custom_headers:nil) + response = list_by_node_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -352,8 +355,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_node_next_with_http_info(next_page_link, custom_headers = nil) - list_by_node_next_async(next_page_link, custom_headers).value! + def list_by_node_next_with_http_info(next_page_link, custom_headers:nil) + list_by_node_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -366,11 +369,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_node_next_async(next_page_link, custom_headers = nil) + def list_by_node_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -427,12 +431,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [DscNodeReportListResult] which provide lazy access to pages of the # response. # - def list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil) - response = list_by_node_async(resource_group_name, automation_account_name, node_id, filter, custom_headers).value! + def list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil) + response = list_by_node_async(resource_group_name, automation_account_name, node_id, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_node_next_async(next_page_link, custom_headers) + list_by_node_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb index 8d42fb4c1..9c63ccbc1 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb @@ -33,8 +33,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [TypeFieldListResult] operation results. # - def list_fields_by_module_and_type(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil) - response = list_fields_by_module_and_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value! + def list_fields_by_module_and_type(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil) + response = list_fields_by_module_and_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_fields_by_module_and_type_with_http_info(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil) - list_fields_by_module_and_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value! + def list_fields_by_module_and_type_with_http_info(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil) + list_fields_by_module_and_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_fields_by_module_and_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil) + def list_fields_by_module_and_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -77,6 +77,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -132,8 +133,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [TypeFieldListResult] operation results. # - def list_fields_by_type(resource_group_name, automation_account_name, type_name, custom_headers = nil) - response = list_fields_by_type_async(resource_group_name, automation_account_name, type_name, custom_headers).value! + def list_fields_by_type(resource_group_name, automation_account_name, type_name, custom_headers:nil) + response = list_fields_by_type_async(resource_group_name, automation_account_name, type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +149,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_fields_by_type_with_http_info(resource_group_name, automation_account_name, type_name, custom_headers = nil) - list_fields_by_type_async(resource_group_name, automation_account_name, type_name, custom_headers).value! + def list_fields_by_type_with_http_info(resource_group_name, automation_account_name, type_name, custom_headers:nil) + list_fields_by_type_async(resource_group_name, automation_account_name, type_name, custom_headers:custom_headers).value! end # @@ -163,7 +164,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_fields_by_type_async(resource_group_name, automation_account_name, type_name, custom_headers = nil) + def list_fields_by_type_async(resource_group_name, automation_account_name, type_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -173,6 +174,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb index f4b92eb94..ecf9322e5 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb @@ -29,8 +29,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [OperationListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb index d33f77c3a..1cb81c5d0 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb @@ -32,8 +32,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [NOT_IMPLEMENTED] operation results. # - def get_content(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_content(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -73,6 +73,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def create_or_update(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers:custom_headers).value! nil end @@ -150,9 +151,9 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers) + promise = begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -177,8 +178,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [RunbookDraft] operation results. # - def get(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -193,8 +194,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end # @@ -208,7 +209,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -218,6 +219,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -274,8 +276,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Runbook] operation results. # - def publish(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def publish(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -290,9 +292,9 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) # Send request - promise = begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers) + promise = begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -319,8 +321,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [RunbookDraftUndoEditResult] operation results. # - def undo_edit(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = undo_edit_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def undo_edit(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = undo_edit_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -335,8 +337,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def undo_edit_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - undo_edit_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def undo_edit_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + undo_edit_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end # @@ -350,7 +352,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def undo_edit_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def undo_edit_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -360,6 +362,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -415,8 +418,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def begin_create_or_update(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers).value! + def begin_create_or_update(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers:custom_headers).value! nil end @@ -432,8 +435,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) - begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers:nil) + begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers:custom_headers).value! end # @@ -448,7 +451,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -459,7 +462,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -521,8 +523,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Runbook] operation results. # - def begin_publish(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def begin_publish(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -538,8 +540,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_publish_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def begin_publish_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end # @@ -554,7 +556,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -564,6 +566,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb index db2bef3b6..a1c7302c7 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb @@ -32,8 +32,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [NOT_IMPLEMENTED] operation results. # - def get_content(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_content(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -73,6 +73,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Runbook] operation results. # - def get(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end # @@ -166,7 +167,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -176,6 +177,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -233,8 +235,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def create_or_update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value! nil end @@ -252,8 +254,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value! end # @@ -270,7 +272,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -281,7 +283,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -337,8 +338,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Runbook] operation results. # - def update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -355,8 +356,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil) + update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value! end # @@ -372,7 +373,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) + def update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -383,7 +384,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -446,8 +446,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! nil end @@ -462,8 +462,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end # @@ -477,7 +477,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -487,6 +487,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -531,8 +532,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -546,8 +547,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -560,7 +561,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -569,6 +570,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -623,8 +625,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [RunbookListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -638,8 +640,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -652,11 +654,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -711,12 +714,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [RunbookListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb index 0529a3681..af87cf0df 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb @@ -34,8 +34,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Schedule] operation results. # - def create_or_update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -80,7 +80,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -146,8 +145,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Schedule] operation results. # - def update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value! + def update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,8 +163,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil) + update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value! end # @@ -181,7 +180,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers = nil) + def update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -192,7 +191,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -256,8 +254,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Schedule] operation results. # - def get(resource_group_name, automation_account_name, schedule_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value! + def get(resource_group_name, automation_account_name, schedule_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -272,8 +270,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value! end # @@ -287,7 +285,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, schedule_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, schedule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -297,6 +295,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -351,8 +350,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, schedule_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, schedule_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value! nil end @@ -367,8 +366,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value! end # @@ -382,7 +381,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -392,6 +391,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -436,8 +436,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -451,8 +451,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -465,7 +465,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -474,6 +474,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -528,8 +529,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [ScheduleListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -543,8 +544,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -557,11 +558,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -616,12 +618,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [ScheduleListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb index 187c1b51e..751171885 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb @@ -32,8 +32,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [StatisticsListResult] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -72,6 +72,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb index a133159cf..27140e382 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb @@ -33,8 +33,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [JobStream] operation results. # - def get(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers).value! + def get(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers:nil) + get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -77,6 +77,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_test_job(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil) - first_page = list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter, custom_headers) + def list_by_test_job(resource_group_name, automation_account_name, runbook_name, filter:nil, custom_headers:nil) + first_page = list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -150,8 +151,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_test_job_with_http_info(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil) - list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter, custom_headers).value! + def list_by_test_job_with_http_info(resource_group_name, automation_account_name, runbook_name, filter:nil, custom_headers:nil) + list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers).value! end # @@ -166,7 +167,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil) + def list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -176,6 +177,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -230,8 +232,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [JobStreamListResult] operation results. # - def list_by_test_job_next(next_page_link, custom_headers = nil) - response = list_by_test_job_next_async(next_page_link, custom_headers).value! + def list_by_test_job_next(next_page_link, custom_headers:nil) + response = list_by_test_job_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -245,8 +247,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_test_job_next_with_http_info(next_page_link, custom_headers = nil) - list_by_test_job_next_async(next_page_link, custom_headers).value! + def list_by_test_job_next_with_http_info(next_page_link, custom_headers:nil) + list_by_test_job_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -259,11 +261,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_test_job_next_async(next_page_link, custom_headers = nil) + def list_by_test_job_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -320,12 +323,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [JobStreamListResult] which provide lazy access to pages of the # response. # - def list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil) - response = list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter, custom_headers).value! + def list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter:nil, custom_headers:nil) + response = list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_test_job_next_async(next_page_link, custom_headers) + list_by_test_job_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb index 0adee2b18..43297e857 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb @@ -35,8 +35,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [TestJob] operation results. # - def create(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def create(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def create_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil) + create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) + def create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -83,7 +83,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -147,8 +146,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [TestJob] operation results. # - def get(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -163,8 +162,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end # @@ -178,7 +177,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -188,6 +187,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -242,8 +242,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def resume(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def resume(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! nil end @@ -258,8 +258,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def resume_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def resume_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end # @@ -273,7 +273,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -283,6 +283,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -327,8 +328,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def stop(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def stop(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! nil end @@ -343,8 +344,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def stop_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end # @@ -358,7 +359,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -368,6 +369,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -412,8 +414,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def suspend(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def suspend(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + response = suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! nil end @@ -428,8 +430,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def suspend_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def suspend_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) + suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end # @@ -443,7 +445,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -453,6 +455,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb index 2740bbea8..0c186fdf0 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb @@ -31,8 +31,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [UsageListResult] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -69,6 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb index 5b6ed3c37..410ae6ce4 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb @@ -34,8 +34,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Variable] operation results. # - def create_or_update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -80,7 +80,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -156,8 +155,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Variable] operation results. # - def update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value! + def update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -174,8 +173,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil) + update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value! end # @@ -191,7 +190,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil) + def update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -202,7 +201,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -265,8 +263,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, variable_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, variable_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, variable_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value! nil end @@ -281,8 +279,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, variable_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value! end # @@ -296,7 +294,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, variable_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, variable_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -306,6 +304,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -351,8 +350,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Variable] operation results. # - def get(resource_group_name, automation_account_name, variable_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, variable_name, custom_headers).value! + def get(resource_group_name, automation_account_name, variable_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -367,8 +366,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, variable_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value! end # @@ -382,7 +381,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, variable_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, variable_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -392,6 +391,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -446,8 +446,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -461,8 +461,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -475,7 +475,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -484,6 +484,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -538,8 +539,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [VariableListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -553,8 +554,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -567,11 +568,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -626,12 +628,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [VariableListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb index 1922dc692..d590c4c23 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb @@ -31,8 +31,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [String] operation results. # - def generate_uri(resource_group_name, automation_account_name, custom_headers = nil) - response = generate_uri_async(resource_group_name, automation_account_name, custom_headers).value! + def generate_uri(resource_group_name, automation_account_name, custom_headers:nil) + response = generate_uri_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_uri_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - generate_uri_async(resource_group_name, automation_account_name, custom_headers).value! + def generate_uri_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) + generate_uri_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_uri_async(resource_group_name, automation_account_name, custom_headers = nil) + def generate_uri_async(resource_group_name, automation_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -69,6 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -130,8 +131,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, webhook_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value! + def delete(resource_group_name, automation_account_name, webhook_name, custom_headers:nil) + response = delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers:custom_headers).value! nil end @@ -146,8 +147,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers:nil) + delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers:custom_headers).value! end # @@ -161,7 +162,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers = nil) + def delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -171,6 +172,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -216,8 +218,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Webhook] operation results. # - def get(resource_group_name, automation_account_name, webhook_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value! + def get(resource_group_name, automation_account_name, webhook_name, custom_headers:nil) + response = get_async(resource_group_name, automation_account_name, webhook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -232,8 +234,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value! + def get_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers:nil) + get_async(resource_group_name, automation_account_name, webhook_name, custom_headers:custom_headers).value! end # @@ -247,7 +249,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, webhook_name, custom_headers = nil) + def get_async(resource_group_name, automation_account_name, webhook_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -257,6 +259,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +317,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Webhook] operation results. # - def create_or_update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -332,8 +335,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value! end # @@ -349,7 +352,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -360,7 +363,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -436,8 +438,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Webhook] operation results. # - def update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value! + def update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -454,8 +456,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil) + update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value! end # @@ -471,7 +473,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil) + def update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -482,7 +484,6 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -546,8 +547,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -562,8 +563,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! end # @@ -577,7 +578,7 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) + def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? @@ -586,6 +587,7 @@ module Azure::Automation::Mgmt::V2015_10_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -640,8 +642,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [WebhookListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers = nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers:nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -655,8 +657,8 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_automation_account_next_async(next_page_link, custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -669,11 +671,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers = nil) + def list_by_automation_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -729,12 +732,12 @@ module Azure::Automation::Mgmt::V2015_10_31 # @return [WebhookListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/profiles/latest/modules/automation_profile_module.rb b/management/azure_mgmt_automation/lib/profiles/latest/modules/automation_profile_module.rb index 893093002..d6c9c05c4 100644 --- a/management/azure_mgmt_automation/lib/profiles/latest/modules/automation_profile_module.rb +++ b/management/azure_mgmt_automation/lib/profiles/latest/modules/automation_profile_module.rb @@ -185,40 +185,40 @@ module Azure::Automation::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Automation::Mgmt::V2015_10_31::AutomationClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Automation::Mgmt::V2015_10_31::AutomationClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @automation_account_operations = client_0.automation_account_operations - @operations = client_0.operations - @statistics_operations = client_0.statistics_operations - @usages = client_0.usages - @certificate_operations = client_0.certificate_operations - @connection_operations = client_0.connection_operations - @connection_type_operations = client_0.connection_type_operations - @credential_operations = client_0.credential_operations - @dsc_compilation_job_operations = client_0.dsc_compilation_job_operations - @dsc_configuration_operations = client_0.dsc_configuration_operations - @agent_registration_information = client_0.agent_registration_information - @dsc_node_operations = client_0.dsc_node_operations - @node_reports = client_0.node_reports - @dsc_node_configuration_operations = client_0.dsc_node_configuration_operations - @hybrid_runbook_worker_group_operations = client_0.hybrid_runbook_worker_group_operations - @job_operations = client_0.job_operations - @job_stream_operations = client_0.job_stream_operations - @job_schedule_operations = client_0.job_schedule_operations - @activity_operations = client_0.activity_operations - @module_model_operations = client_0.module_model_operations - @object_data_types = client_0.object_data_types - @fields = client_0.fields - @runbook_draft_operations = client_0.runbook_draft_operations - @runbook_operations = client_0.runbook_operations - @test_job_streams = client_0.test_job_streams - @test_jobs = client_0.test_jobs - @schedule_operations = client_0.schedule_operations - @variable_operations = client_0.variable_operations - @webhook_operations = client_0.webhook_operations + add_telemetry(@client_0) + @automation_account_operations = @client_0.automation_account_operations + @operations = @client_0.operations + @statistics_operations = @client_0.statistics_operations + @usages = @client_0.usages + @certificate_operations = @client_0.certificate_operations + @connection_operations = @client_0.connection_operations + @connection_type_operations = @client_0.connection_type_operations + @credential_operations = @client_0.credential_operations + @dsc_compilation_job_operations = @client_0.dsc_compilation_job_operations + @dsc_configuration_operations = @client_0.dsc_configuration_operations + @agent_registration_information = @client_0.agent_registration_information + @dsc_node_operations = @client_0.dsc_node_operations + @node_reports = @client_0.node_reports + @dsc_node_configuration_operations = @client_0.dsc_node_configuration_operations + @hybrid_runbook_worker_group_operations = @client_0.hybrid_runbook_worker_group_operations + @job_operations = @client_0.job_operations + @job_stream_operations = @client_0.job_stream_operations + @job_schedule_operations = @client_0.job_schedule_operations + @activity_operations = @client_0.activity_operations + @module_model_operations = @client_0.module_model_operations + @object_data_types = @client_0.object_data_types + @fields = @client_0.fields + @runbook_draft_operations = @client_0.runbook_draft_operations + @runbook_operations = @client_0.runbook_operations + @test_job_streams = @client_0.test_job_streams + @test_jobs = @client_0.test_jobs + @schedule_operations = @client_0.schedule_operations + @variable_operations = @client_0.variable_operations + @webhook_operations = @client_0.webhook_operations @model_classes = ModelClasses.new end @@ -228,6 +228,14 @@ module Azure::Automation::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb b/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb index 1a429bef1..ca2cd150d 100644 --- a/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb +++ b/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb @@ -34,8 +34,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Application] operation results. # - def create(resource_group_name, account_name, application_id, parameters = nil, custom_headers = nil) - response = create_async(resource_group_name, account_name, application_id, parameters, custom_headers).value! + def create(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil) + response = create_async(resource_group_name, account_name, application_id, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, account_name, application_id, parameters = nil, custom_headers = nil) - create_async(resource_group_name, account_name, application_id, parameters, custom_headers).value! + def create_with_http_info(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil) + create_async(resource_group_name, account_name, application_id, parameters:parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, account_name, application_id, parameters = nil, custom_headers = nil) + def create_async(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -82,7 +82,6 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -146,8 +145,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, application_id, custom_headers = nil) - response = delete_async(resource_group_name, account_name, application_id, custom_headers).value! + def delete(resource_group_name, account_name, application_id, custom_headers:nil) + response = delete_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value! nil end @@ -163,8 +162,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, application_id, custom_headers = nil) - delete_async(resource_group_name, account_name, application_id, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, application_id, custom_headers:nil) + delete_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value! end # @@ -179,7 +178,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, application_id, custom_headers = nil) + def delete_async(resource_group_name, account_name, application_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -192,6 +191,7 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -238,8 +238,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Application] operation results. # - def get(resource_group_name, account_name, application_id, custom_headers = nil) - response = get_async(resource_group_name, account_name, application_id, custom_headers).value! + def get(resource_group_name, account_name, application_id, custom_headers:nil) + response = get_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -255,8 +255,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, application_id, custom_headers = nil) - get_async(resource_group_name, account_name, application_id, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, application_id, custom_headers:nil) + get_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value! end # @@ -271,7 +271,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, application_id, custom_headers = nil) + def get_async(resource_group_name, account_name, application_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -284,6 +284,7 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -341,8 +342,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # will be added to the HTTP request. # # - def update(resource_group_name, account_name, application_id, parameters, custom_headers = nil) - response = update_async(resource_group_name, account_name, application_id, parameters, custom_headers).value! + def update(resource_group_name, account_name, application_id, parameters, custom_headers:nil) + response = update_async(resource_group_name, account_name, application_id, parameters, custom_headers:custom_headers).value! nil end @@ -360,8 +361,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, application_id, parameters, custom_headers = nil) - update_async(resource_group_name, account_name, application_id, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, application_id, parameters, custom_headers:nil) + update_async(resource_group_name, account_name, application_id, parameters, custom_headers:custom_headers).value! end # @@ -378,7 +379,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, application_id, parameters, custom_headers = nil) + def update_async(resource_group_name, account_name, application_id, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -392,7 +393,6 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -448,8 +448,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Array] operation results. # - def list(resource_group_name, account_name, maxresults = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, account_name, maxresults, custom_headers) + def list(resource_group_name, account_name, maxresults:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers) first_page.get_all_items end @@ -466,8 +466,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, account_name, maxresults = nil, custom_headers = nil) - list_async(resource_group_name, account_name, maxresults, custom_headers).value! + def list_with_http_info(resource_group_name, account_name, maxresults:nil, custom_headers:nil) + list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value! end # @@ -483,7 +483,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, account_name, maxresults = nil, custom_headers = nil) + def list_async(resource_group_name, account_name, maxresults:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -495,6 +495,7 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -549,8 +550,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [ListApplicationsResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -564,8 +565,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -578,11 +579,12 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -640,12 +642,12 @@ module Azure::Batch::Mgmt::V2015_12_01 # @return [ListApplicationsResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, account_name, maxresults = nil, custom_headers = nil) - response = list_async(resource_group_name, account_name, maxresults, custom_headers).value! + def list_as_lazy(resource_group_name, account_name, maxresults:nil, custom_headers:nil) + response = list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/application_package_operations.rb b/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/application_package_operations.rb index 3a1fb6a1b..47e826483 100644 --- a/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/application_package_operations.rb +++ b/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/application_package_operations.rb @@ -35,8 +35,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # will be added to the HTTP request. # # - def activate(resource_group_name, account_name, application_id, version, parameters, custom_headers = nil) - response = activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers).value! + def activate(resource_group_name, account_name, application_id, version, parameters, custom_headers:nil) + response = activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers:custom_headers).value! nil end @@ -55,8 +55,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def activate_with_http_info(resource_group_name, account_name, application_id, version, parameters, custom_headers = nil) - activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers).value! + def activate_with_http_info(resource_group_name, account_name, application_id, version, parameters, custom_headers:nil) + activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers:custom_headers).value! end # @@ -74,7 +74,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers = nil) + def activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -89,7 +89,6 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -145,8 +144,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [ApplicationPackage] operation results. # - def create(resource_group_name, account_name, application_id, version, custom_headers = nil) - response = create_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def create(resource_group_name, account_name, application_id, version, custom_headers:nil) + response = create_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -163,8 +162,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, account_name, application_id, version, custom_headers = nil) - create_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def create_with_http_info(resource_group_name, account_name, application_id, version, custom_headers:nil) + create_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! end # @@ -180,7 +179,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, account_name, application_id, version, custom_headers = nil) + def create_async(resource_group_name, account_name, application_id, version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -194,6 +193,7 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -250,8 +250,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, application_id, version, custom_headers = nil) - response = delete_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def delete(resource_group_name, account_name, application_id, version, custom_headers:nil) + response = delete_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! nil end @@ -268,8 +268,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, application_id, version, custom_headers = nil) - delete_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, application_id, version, custom_headers:nil) + delete_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! end # @@ -285,7 +285,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, application_id, version, custom_headers = nil) + def delete_async(resource_group_name, account_name, application_id, version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -299,6 +299,7 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -346,8 +347,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [ApplicationPackage] operation results. # - def get(resource_group_name, account_name, application_id, version, custom_headers = nil) - response = get_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def get(resource_group_name, account_name, application_id, version, custom_headers:nil) + response = get_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -364,8 +365,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, application_id, version, custom_headers = nil) - get_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, application_id, version, custom_headers:nil) + get_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! end # @@ -381,7 +382,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, application_id, version, custom_headers = nil) + def get_async(resource_group_name, account_name, application_id, version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -395,6 +396,7 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb b/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb index 25a464350..33a686988 100644 --- a/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +++ b/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb @@ -41,8 +41,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [BatchAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -63,9 +63,9 @@ module Azure::Batch::Mgmt::V2015_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def create_async(resource_group_name, account_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -94,8 +94,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [BatchAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -112,8 +112,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -129,7 +129,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers = nil) + def update_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -142,7 +142,6 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -204,8 +203,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -219,9 +218,9 @@ module Azure::Batch::Mgmt::V2015_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, account_name, custom_headers) + promise = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -246,8 +245,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [BatchAccount] operation results. # - def get(resource_group_name, account_name, custom_headers = nil) - response = get_async(resource_group_name, account_name, custom_headers).value! + def get(resource_group_name, account_name, custom_headers:nil) + response = get_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -262,8 +261,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_async(resource_group_name, account_name, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -277,7 +276,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, custom_headers = nil) + def get_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -289,6 +288,7 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -341,8 +341,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -354,8 +354,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -366,12 +366,13 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -427,8 +428,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -443,8 +444,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -458,7 +459,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -466,6 +467,7 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -521,8 +523,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # will be added to the HTTP request. # # - def synchronize_auto_storage_keys(resource_group_name, account_name, custom_headers = nil) - response = synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers).value! + def synchronize_auto_storage_keys(resource_group_name, account_name, custom_headers:nil) + response = synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -538,8 +540,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def synchronize_auto_storage_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) - synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers).value! + def synchronize_auto_storage_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) + synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -554,7 +556,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers = nil) + def synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -566,6 +568,7 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -613,8 +616,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [BatchAccountKeys] operation results. # - def regenerate_key(resource_group_name, account_name, parameters, custom_headers = nil) - response = regenerate_key_async(resource_group_name, account_name, parameters, custom_headers).value! + def regenerate_key(resource_group_name, account_name, parameters, custom_headers:nil) + response = regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -631,8 +634,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - regenerate_key_async(resource_group_name, account_name, parameters, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -648,7 +651,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, parameters, custom_headers = nil) + def regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -661,7 +664,6 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -725,8 +727,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [BatchAccountKeys] operation results. # - def get_keys(resource_group_name, account_name, custom_headers = nil) - response = get_keys_async(resource_group_name, account_name, custom_headers).value! + def get_keys(resource_group_name, account_name, custom_headers:nil) + response = get_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -741,8 +743,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_keys_async(resource_group_name, account_name, custom_headers).value! + def get_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -756,7 +758,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_keys_async(resource_group_name, account_name, custom_headers = nil) + def get_keys_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -768,6 +770,7 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -832,8 +835,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [BatchAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -857,8 +860,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -881,7 +884,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -894,7 +897,6 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -957,8 +959,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, account_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, account_name, custom_headers).value! + def begin_delete(resource_group_name, account_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -973,8 +975,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - begin_delete_async(resource_group_name, account_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -988,7 +990,7 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, account_name, custom_headers = nil) + def begin_delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -1000,6 +1002,7 @@ module Azure::Batch::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1044,8 +1047,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [BatchAccountListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1059,8 +1062,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1073,11 +1076,12 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1132,8 +1136,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [BatchAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1148,8 +1152,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1163,11 +1167,12 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1220,12 +1225,12 @@ module Azure::Batch::Mgmt::V2015_12_01 # @return [BatchAccountListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1243,12 +1248,12 @@ module Azure::Batch::Mgmt::V2015_12_01 # @return [BatchAccountListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/location.rb b/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/location.rb index 40bf15b35..e9c895505 100644 --- a/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/location.rb +++ b/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/location.rb @@ -31,8 +31,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [BatchLocationQuota] operation results. # - def get_quotas(location_name, custom_headers = nil) - response = get_quotas_async(location_name, custom_headers).value! + def get_quotas(location_name, custom_headers:nil) + response = get_quotas_async(location_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_quotas_with_http_info(location_name, custom_headers = nil) - get_quotas_async(location_name, custom_headers).value! + def get_quotas_with_http_info(location_name, custom_headers:nil) + get_quotas_async(location_name, custom_headers:custom_headers).value! end # @@ -60,13 +60,14 @@ module Azure::Batch::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_quotas_async(location_name, custom_headers = nil) + def get_quotas_async(location_name, custom_headers:nil) fail ArgumentError, 'location_name is nil' if location_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/application_operations.rb b/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/application_operations.rb index e480ebda1..2a4bad3ef 100644 --- a/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/application_operations.rb +++ b/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/application_operations.rb @@ -35,8 +35,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Application] operation results. # - def create(resource_group_name, account_name, application_id, parameters = nil, custom_headers = nil) - response = create_async(resource_group_name, account_name, application_id, parameters, custom_headers).value! + def create(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil) + response = create_async(resource_group_name, account_name, application_id, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, account_name, application_id, parameters = nil, custom_headers = nil) - create_async(resource_group_name, account_name, application_id, parameters, custom_headers).value! + def create_with_http_info(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil) + create_async(resource_group_name, account_name, application_id, parameters:parameters, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, account_name, application_id, parameters = nil, custom_headers = nil) + def create_async(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -85,7 +85,6 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -149,8 +148,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, application_id, custom_headers = nil) - response = delete_async(resource_group_name, account_name, application_id, custom_headers).value! + def delete(resource_group_name, account_name, application_id, custom_headers:nil) + response = delete_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value! nil end @@ -166,8 +165,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, application_id, custom_headers = nil) - delete_async(resource_group_name, account_name, application_id, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, application_id, custom_headers:nil) + delete_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value! end # @@ -182,7 +181,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, application_id, custom_headers = nil) + def delete_async(resource_group_name, account_name, application_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -195,6 +194,7 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +241,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Application] operation results. # - def get(resource_group_name, account_name, application_id, custom_headers = nil) - response = get_async(resource_group_name, account_name, application_id, custom_headers).value! + def get(resource_group_name, account_name, application_id, custom_headers:nil) + response = get_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -258,8 +258,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, application_id, custom_headers = nil) - get_async(resource_group_name, account_name, application_id, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, application_id, custom_headers:nil) + get_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value! end # @@ -274,7 +274,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, application_id, custom_headers = nil) + def get_async(resource_group_name, account_name, application_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -287,6 +287,7 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -344,8 +345,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # will be added to the HTTP request. # # - def update(resource_group_name, account_name, application_id, parameters, custom_headers = nil) - response = update_async(resource_group_name, account_name, application_id, parameters, custom_headers).value! + def update(resource_group_name, account_name, application_id, parameters, custom_headers:nil) + response = update_async(resource_group_name, account_name, application_id, parameters, custom_headers:custom_headers).value! nil end @@ -363,8 +364,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, application_id, parameters, custom_headers = nil) - update_async(resource_group_name, account_name, application_id, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, application_id, parameters, custom_headers:nil) + update_async(resource_group_name, account_name, application_id, parameters, custom_headers:custom_headers).value! end # @@ -381,7 +382,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, application_id, parameters, custom_headers = nil) + def update_async(resource_group_name, account_name, application_id, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -395,7 +396,6 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -451,8 +451,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Array] operation results. # - def list(resource_group_name, account_name, maxresults = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, account_name, maxresults, custom_headers) + def list(resource_group_name, account_name, maxresults:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers) first_page.get_all_items end @@ -469,8 +469,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, account_name, maxresults = nil, custom_headers = nil) - list_async(resource_group_name, account_name, maxresults, custom_headers).value! + def list_with_http_info(resource_group_name, account_name, maxresults:nil, custom_headers:nil) + list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value! end # @@ -486,7 +486,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, account_name, maxresults = nil, custom_headers = nil) + def list_async(resource_group_name, account_name, maxresults:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -498,6 +498,7 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -552,8 +553,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [ListApplicationsResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -567,8 +568,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -581,11 +582,12 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -643,12 +645,12 @@ module Azure::Batch::Mgmt::V2017_05_01 # @return [ListApplicationsResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, account_name, maxresults = nil, custom_headers = nil) - response = list_async(resource_group_name, account_name, maxresults, custom_headers).value! + def list_as_lazy(resource_group_name, account_name, maxresults:nil, custom_headers:nil) + response = list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb b/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb index db624ca69..1c0bb0897 100644 --- a/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb +++ b/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb @@ -35,8 +35,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # will be added to the HTTP request. # # - def activate(resource_group_name, account_name, application_id, version, parameters, custom_headers = nil) - response = activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers).value! + def activate(resource_group_name, account_name, application_id, version, parameters, custom_headers:nil) + response = activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers:custom_headers).value! nil end @@ -55,8 +55,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def activate_with_http_info(resource_group_name, account_name, application_id, version, parameters, custom_headers = nil) - activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers).value! + def activate_with_http_info(resource_group_name, account_name, application_id, version, parameters, custom_headers:nil) + activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers:custom_headers).value! end # @@ -74,7 +74,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers = nil) + def activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -89,7 +89,6 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -145,8 +144,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [ApplicationPackage] operation results. # - def create(resource_group_name, account_name, application_id, version, custom_headers = nil) - response = create_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def create(resource_group_name, account_name, application_id, version, custom_headers:nil) + response = create_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -163,8 +162,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, account_name, application_id, version, custom_headers = nil) - create_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def create_with_http_info(resource_group_name, account_name, application_id, version, custom_headers:nil) + create_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! end # @@ -180,7 +179,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, account_name, application_id, version, custom_headers = nil) + def create_async(resource_group_name, account_name, application_id, version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -194,6 +193,7 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -250,8 +250,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, application_id, version, custom_headers = nil) - response = delete_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def delete(resource_group_name, account_name, application_id, version, custom_headers:nil) + response = delete_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! nil end @@ -268,8 +268,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, application_id, version, custom_headers = nil) - delete_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, application_id, version, custom_headers:nil) + delete_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! end # @@ -285,7 +285,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, application_id, version, custom_headers = nil) + def delete_async(resource_group_name, account_name, application_id, version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -299,6 +299,7 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -346,8 +347,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [ApplicationPackage] operation results. # - def get(resource_group_name, account_name, application_id, version, custom_headers = nil) - response = get_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def get(resource_group_name, account_name, application_id, version, custom_headers:nil) + response = get_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -364,8 +365,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, application_id, version, custom_headers = nil) - get_async(resource_group_name, account_name, application_id, version, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, application_id, version, custom_headers:nil) + get_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value! end # @@ -381,7 +382,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, application_id, version, custom_headers = nil) + def get_async(resource_group_name, account_name, application_id, version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -395,6 +396,7 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/batch_account_operations.rb b/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/batch_account_operations.rb index 0338e3187..62823d8b4 100644 --- a/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/batch_account_operations.rb +++ b/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/batch_account_operations.rb @@ -41,8 +41,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [BatchAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -63,9 +63,9 @@ module Azure::Batch::Mgmt::V2017_05_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def create_async(resource_group_name, account_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -94,8 +94,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [BatchAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -112,8 +112,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -129,7 +129,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers = nil) + def update_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -142,7 +142,6 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -204,8 +203,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -219,9 +218,9 @@ module Azure::Batch::Mgmt::V2017_05_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, account_name, custom_headers) + promise = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -246,8 +245,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [BatchAccount] operation results. # - def get(resource_group_name, account_name, custom_headers = nil) - response = get_async(resource_group_name, account_name, custom_headers).value! + def get(resource_group_name, account_name, custom_headers:nil) + response = get_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -262,8 +261,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_async(resource_group_name, account_name, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -277,7 +276,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, custom_headers = nil) + def get_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -289,6 +288,7 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -341,8 +341,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -354,8 +354,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -366,12 +366,13 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -427,8 +428,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -443,8 +444,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -458,7 +459,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -466,6 +467,7 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -521,8 +523,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # will be added to the HTTP request. # # - def synchronize_auto_storage_keys(resource_group_name, account_name, custom_headers = nil) - response = synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers).value! + def synchronize_auto_storage_keys(resource_group_name, account_name, custom_headers:nil) + response = synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -538,8 +540,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def synchronize_auto_storage_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) - synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers).value! + def synchronize_auto_storage_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) + synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -554,7 +556,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers = nil) + def synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -566,6 +568,7 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -613,8 +616,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [BatchAccountKeys] operation results. # - def regenerate_key(resource_group_name, account_name, parameters, custom_headers = nil) - response = regenerate_key_async(resource_group_name, account_name, parameters, custom_headers).value! + def regenerate_key(resource_group_name, account_name, parameters, custom_headers:nil) + response = regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -631,8 +634,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - regenerate_key_async(resource_group_name, account_name, parameters, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -648,7 +651,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, parameters, custom_headers = nil) + def regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -661,7 +664,6 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -731,8 +733,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [BatchAccountKeys] operation results. # - def get_keys(resource_group_name, account_name, custom_headers = nil) - response = get_keys_async(resource_group_name, account_name, custom_headers).value! + def get_keys(resource_group_name, account_name, custom_headers:nil) + response = get_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -753,8 +755,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_keys_async(resource_group_name, account_name, custom_headers).value! + def get_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -774,7 +776,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_keys_async(resource_group_name, account_name, custom_headers = nil) + def get_keys_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -786,6 +788,7 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -850,8 +853,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [BatchAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -875,8 +878,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -899,7 +902,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -912,7 +915,6 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -975,8 +977,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, account_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, account_name, custom_headers).value! + def begin_delete(resource_group_name, account_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -991,8 +993,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - begin_delete_async(resource_group_name, account_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -1006,7 +1008,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, account_name, custom_headers = nil) + def begin_delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? @@ -1018,6 +1020,7 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1062,8 +1065,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [BatchAccountListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1077,8 +1080,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1091,11 +1094,12 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1150,8 +1154,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [BatchAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1166,8 +1170,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1181,11 +1185,12 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1238,12 +1243,12 @@ module Azure::Batch::Mgmt::V2017_05_01 # @return [BatchAccountListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1261,12 +1266,12 @@ module Azure::Batch::Mgmt::V2017_05_01 # @return [BatchAccountListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/location.rb b/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/location.rb index 7029915d5..560df27d7 100644 --- a/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/location.rb +++ b/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/location.rb @@ -32,8 +32,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [BatchLocationQuota] operation results. # - def get_quotas(location_name, custom_headers = nil) - response = get_quotas_async(location_name, custom_headers).value! + def get_quotas(location_name, custom_headers:nil) + response = get_quotas_async(location_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_quotas_with_http_info(location_name, custom_headers = nil) - get_quotas_async(location_name, custom_headers).value! + def get_quotas_with_http_info(location_name, custom_headers:nil) + get_quotas_async(location_name, custom_headers:custom_headers).value! end # @@ -63,13 +63,14 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_quotas_async(location_name, custom_headers = nil) + def get_quotas_async(location_name, custom_headers:nil) fail ArgumentError, 'location_name is nil' if location_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -125,8 +126,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(location_name, parameters, custom_headers = nil) - response = check_name_availability_async(location_name, parameters, custom_headers).value! + def check_name_availability(location_name, parameters, custom_headers:nil) + response = check_name_availability_async(location_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -141,8 +142,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(location_name, parameters, custom_headers = nil) - check_name_availability_async(location_name, parameters, custom_headers).value! + def check_name_availability_with_http_info(location_name, parameters, custom_headers:nil) + check_name_availability_async(location_name, parameters, custom_headers:custom_headers).value! end # @@ -156,7 +157,7 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(location_name, parameters, custom_headers = nil) + def check_name_availability_async(location_name, parameters, custom_headers:nil) fail ArgumentError, 'location_name is nil' if location_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -164,7 +165,6 @@ module Azure::Batch::Mgmt::V2017_05_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/operations.rb b/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/operations.rb index 3b1c938e8..4b8be61a5 100644 --- a/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/operations.rb +++ b/management/azure_mgmt_batch/lib/2017-05-01/generated/azure_mgmt_batch/operations.rb @@ -29,8 +29,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::Batch::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::Batch::Mgmt::V2017_05_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_batch/lib/profiles/latest/modules/batch_profile_module.rb b/management/azure_mgmt_batch/lib/profiles/latest/modules/batch_profile_module.rb index 61dbc4d41..5c2f8ded8 100644 --- a/management/azure_mgmt_batch/lib/profiles/latest/modules/batch_profile_module.rb +++ b/management/azure_mgmt_batch/lib/profiles/latest/modules/batch_profile_module.rb @@ -61,16 +61,16 @@ module Azure::Batch::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Batch::Mgmt::V2017_05_01::BatchManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Batch::Mgmt::V2017_05_01::BatchManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @batch_account_operations = client_0.batch_account_operations - @application_package_operations = client_0.application_package_operations - @application_operations = client_0.application_operations - @location = client_0.location - @operations = client_0.operations + add_telemetry(@client_0) + @batch_account_operations = @client_0.batch_account_operations + @application_package_operations = @client_0.application_package_operations + @application_operations = @client_0.application_operations + @location = @client_0.location + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -80,6 +80,14 @@ module Azure::Batch::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/billing_periods.rb b/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/billing_periods.rb index c7fc53ac0..7e1a0b2cb 100644 --- a/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/billing_periods.rb +++ b/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/billing_periods.rb @@ -41,8 +41,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Array] operation results. # - def list(filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(filter, skiptoken, top, custom_headers) + def list(filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -64,8 +64,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - list_async(filter, skiptoken, top, custom_headers).value! + def list_with_http_info(filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + list_async(filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers).value! end # @@ -86,7 +86,7 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, skiptoken = nil, top = nil, custom_headers = nil) + def list_async(filter:nil, skiptoken:nil, top:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '100'" if !top.nil? && top > 100 @@ -94,6 +94,7 @@ module Azure::Billing::Mgmt::V2017_04_24_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +148,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [BillingPeriod] operation results. # - def get(billing_period_name, custom_headers = nil) - response = get_async(billing_period_name, custom_headers).value! + def get(billing_period_name, custom_headers:nil) + response = get_async(billing_period_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -161,8 +162,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(billing_period_name, custom_headers = nil) - get_async(billing_period_name, custom_headers).value! + def get_with_http_info(billing_period_name, custom_headers:nil) + get_async(billing_period_name, custom_headers:custom_headers).value! end # @@ -174,13 +175,14 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(billing_period_name, custom_headers = nil) + def get_async(billing_period_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'billing_period_name is nil' if billing_period_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -236,8 +238,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [BillingPeriodsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -252,8 +254,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -267,11 +269,12 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -334,12 +337,12 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # @return [BillingPeriodsListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - response = list_async(filter, skiptoken, top, custom_headers).value! + def list_as_lazy(filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + response = list_async(filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/invoices.rb b/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/invoices.rb index 754776728..27e8fe7df 100644 --- a/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/invoices.rb +++ b/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/invoices.rb @@ -47,8 +47,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Array] operation results. # - def list(expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(expand, filter, skiptoken, top, custom_headers) + def list(expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(expand:expand, filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -76,8 +76,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - list_async(expand, filter, skiptoken, top, custom_headers).value! + def list_with_http_info(expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + list_async(expand:expand, filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) + def list_async(expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '100'" if !top.nil? && top > 100 @@ -112,6 +112,7 @@ module Azure::Billing::Mgmt::V2017_04_24_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -166,8 +167,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Invoice] operation results. # - def get(invoice_name, custom_headers = nil) - response = get_async(invoice_name, custom_headers).value! + def get(invoice_name, custom_headers:nil) + response = get_async(invoice_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,8 +182,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(invoice_name, custom_headers = nil) - get_async(invoice_name, custom_headers).value! + def get_with_http_info(invoice_name, custom_headers:nil) + get_async(invoice_name, custom_headers:custom_headers).value! end # @@ -195,13 +196,14 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(invoice_name, custom_headers = nil) + def get_async(invoice_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'invoice_name is nil' if invoice_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -255,8 +257,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Invoice] operation results. # - def get_latest(custom_headers = nil) - response = get_latest_async(custom_headers).value! + def get_latest(custom_headers:nil) + response = get_latest_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -269,8 +271,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_latest_with_http_info(custom_headers = nil) - get_latest_async(custom_headers).value! + def get_latest_with_http_info(custom_headers:nil) + get_latest_async(custom_headers:custom_headers).value! end # @@ -282,12 +284,13 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_latest_async(custom_headers = nil) + def get_latest_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -345,8 +348,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [InvoicesListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -363,8 +366,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -380,11 +383,12 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -453,12 +457,12 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # @return [InvoicesListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - response = list_async(expand, filter, skiptoken, top, custom_headers).value! + def list_as_lazy(expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + response = list_async(expand:expand, filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/operations.rb b/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/operations.rb index 65c2e4b44..c7b7be4d3 100644 --- a/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/operations.rb +++ b/management/azure_mgmt_billing/lib/2017-04-24-preview/generated/azure_mgmt_billing/operations.rb @@ -31,8 +31,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -56,11 +56,12 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,8 +115,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -129,8 +130,8 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -143,11 +144,12 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -200,12 +202,12 @@ module Azure::Billing::Mgmt::V2017_04_24_preview # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_billing/lib/profiles/latest/modules/billing_profile_module.rb b/management/azure_mgmt_billing/lib/profiles/latest/modules/billing_profile_module.rb index 5ba05ccb2..558090bf9 100644 --- a/management/azure_mgmt_billing/lib/profiles/latest/modules/billing_profile_module.rb +++ b/management/azure_mgmt_billing/lib/profiles/latest/modules/billing_profile_module.rb @@ -43,14 +43,14 @@ module Azure::Billing::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Billing::Mgmt::V2017_04_24_preview::BillingManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Billing::Mgmt::V2017_04_24_preview::BillingManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @billing_periods = client_0.billing_periods - @invoices = client_0.invoices - @operations = client_0.operations + add_telemetry(@client_0) + @billing_periods = @client_0.billing_periods + @invoices = @client_0.invoices + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -60,6 +60,14 @@ module Azure::Billing::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb index f4ca4acfe..a04808623 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb @@ -37,8 +37,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [CustomDomainListResult] operation results. # - def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [CustomDomain] operation results. # - def get(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def get(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -160,8 +161,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def get_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -179,7 +180,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -189,6 +190,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -250,8 +252,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [CustomDomain] operation results. # - def create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -271,9 +273,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers) + promise = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -306,8 +308,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [ErrorResponse] operation results. # - def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -328,8 +330,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def update_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -349,7 +351,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -360,7 +362,6 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -425,8 +426,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [CustomDomain] operation results. # - def delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -444,9 +445,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers) + promise = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -479,8 +480,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [CustomDomain] operation results. # - def begin_create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -501,8 +502,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_create_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -522,7 +523,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -533,7 +534,6 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -621,8 +621,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [CustomDomain] operation results. # - def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -641,8 +641,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_delete_if_exists_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -660,7 +660,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -670,6 +670,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb index 75b802126..736fd65d8 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb @@ -36,8 +36,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [EndpointListResult] operation results. # - def list_by_profile(profile_name, resource_group_name, custom_headers = nil) - response = list_by_profile_async(profile_name, resource_group_name, custom_headers).value! + def list_by_profile(profile_name, resource_group_name, custom_headers:nil) + response = list_by_profile_async(profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_with_http_info(profile_name, resource_group_name, custom_headers = nil) - list_by_profile_async(profile_name, resource_group_name, custom_headers).value! + def list_by_profile_with_http_info(profile_name, resource_group_name, custom_headers:nil) + list_by_profile_async(profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_async(profile_name, resource_group_name, custom_headers = nil) + def list_by_profile_async(profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -77,6 +77,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Endpoint] operation results. # - def get(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = get_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def get(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = get_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -152,8 +153,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - get_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def get_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + get_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -169,7 +170,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def get_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -178,6 +179,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -236,8 +238,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Endpoint] operation results. # - def create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) - response = create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! + def create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + response = create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -254,9 +256,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + def create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers) + promise = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -289,8 +291,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Endpoint] operation results. # - def update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) - response = update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! + def update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + response = update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -307,9 +309,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + def update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers) + promise = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -336,8 +338,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! nil end @@ -353,9 +355,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers) + promise = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -382,8 +384,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Endpoint] operation results. # - def start(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = start_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def start(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -399,9 +401,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def start_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers) + promise = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -430,8 +432,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Endpoint] operation results. # - def stop(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = stop_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -447,9 +449,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers) + promise = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -478,8 +480,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) - response = purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! + def purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + response = purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! nil end @@ -497,9 +499,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + def purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers) + promise = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -526,8 +528,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) - response = load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! + def load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + response = load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! nil end @@ -545,9 +547,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + def load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers) + promise = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -577,8 +579,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [ValidateCustomDomainOutput] operation results. # - def validate_custom_domain(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers = nil) - response = validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers).value! + def validate_custom_domain(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil) + response = validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -598,8 +600,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_custom_domain_with_http_info(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers = nil) - validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers).value! + def validate_custom_domain_with_http_info(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil) + validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -618,7 +620,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers = nil) + def validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -628,7 +630,6 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -695,8 +696,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Endpoint] operation results. # - def begin_create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) - response = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! + def begin_create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + response = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -714,8 +715,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) - begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! + def begin_create_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -732,7 +733,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + def begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint_properties is nil' if endpoint_properties.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -742,7 +743,6 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -832,8 +832,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Endpoint] operation results. # - def begin_update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) - response = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! + def begin_update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + response = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -854,8 +854,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) - begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! + def begin_update_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -875,7 +875,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + def begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint_properties is nil' if endpoint_properties.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -885,7 +885,6 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -960,8 +959,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # will be added to the HTTP request. # # - def begin_delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! nil end @@ -978,8 +977,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_delete_if_exists_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -995,7 +994,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1004,6 +1003,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1051,8 +1051,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Endpoint] operation results. # - def begin_start(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_start(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1069,8 +1069,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_start_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -1086,7 +1086,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1095,6 +1095,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1152,8 +1153,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Endpoint] operation results. # - def begin_stop(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1170,8 +1171,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_stop_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -1187,7 +1188,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1196,6 +1197,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1254,8 +1256,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # will be added to the HTTP request. # # - def begin_purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) - response = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! + def begin_purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + response = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! nil end @@ -1274,8 +1276,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) - begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! + def begin_purge_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -1293,7 +1295,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + def begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -1303,7 +1305,6 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1360,8 +1361,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # will be added to the HTTP request. # # - def begin_load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) - response = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! + def begin_load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + response = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! nil end @@ -1380,8 +1381,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_load_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) - begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! + def begin_load_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -1399,7 +1400,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + def begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -1409,7 +1410,6 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb index 8a342c657..124830e1f 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb @@ -36,8 +36,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [CheckNameAvailabilityOutput] operation results. # - def check_name_availability(check_name_availability_input, custom_headers = nil) - response = check_name_availability_async(check_name_availability_input, custom_headers).value! + def check_name_availability(check_name_availability_input, custom_headers:nil) + response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(check_name_availability_input, custom_headers = nil) - check_name_availability_async(check_name_availability_input, custom_headers).value! + def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil) + check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! end # @@ -69,13 +69,12 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(check_name_availability_input, custom_headers = nil) + def check_name_availability_async(check_name_availability_input, custom_headers:nil) fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb index d89527e1b..b32c99922 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb @@ -32,8 +32,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [OperationListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -45,8 +45,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,11 +57,12 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb index 86e14962a..87bb0b302 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb @@ -37,8 +37,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [OriginListResult] operation results. # - def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) - list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! + def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Origin] operation results. # - def get(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def get(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -160,8 +161,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def get_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -179,7 +180,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -189,6 +190,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -249,8 +251,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Origin] operation results. # - def create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -269,9 +271,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers) + promise = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -303,8 +305,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Origin] operation results. # - def update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -323,9 +325,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers) + promise = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -356,8 +358,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Origin] operation results. # - def delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -375,9 +377,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers) + promise = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -409,8 +411,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Origin] operation results. # - def begin_create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -430,8 +432,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_create_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -450,7 +452,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'origin_properties is nil' if origin_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -461,7 +463,6 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -550,8 +551,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Origin] operation results. # - def begin_update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -571,8 +572,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_update_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -591,7 +592,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'origin_properties is nil' if origin_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -602,7 +603,6 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -680,8 +680,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Origin] operation results. # - def begin_delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - response = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + response = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -700,8 +700,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) - begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! + def begin_delete_if_exists_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -719,7 +719,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + def begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -729,6 +729,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb index 6bfe6fe23..eb17264da 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb @@ -32,8 +32,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [ProfileListResult] operation results. # - def list_by_subscription_id(custom_headers = nil) - response = list_by_subscription_id_async(custom_headers).value! + def list_by_subscription_id(custom_headers:nil) + response = list_by_subscription_id_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -45,8 +45,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_id_with_http_info(custom_headers = nil) - list_by_subscription_id_async(custom_headers).value! + def list_by_subscription_id_with_http_info(custom_headers:nil) + list_by_subscription_id_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_id_async(custom_headers = nil) + def list_by_subscription_id_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [ProfileListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +133,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -146,13 +147,14 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -209,8 +211,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Profile] operation results. # - def get(profile_name, resource_group_name, custom_headers = nil) - response = get_async(profile_name, resource_group_name, custom_headers).value! + def get(profile_name, resource_group_name, custom_headers:nil) + response = get_async(profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -226,8 +228,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(profile_name, resource_group_name, custom_headers = nil) - get_async(profile_name, resource_group_name, custom_headers).value! + def get_with_http_info(profile_name, resource_group_name, custom_headers:nil) + get_async(profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -242,7 +244,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(profile_name, resource_group_name, custom_headers = nil) + def get_async(profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -250,6 +252,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +311,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Profile] operation results. # - def create(profile_name, profile_properties, resource_group_name, custom_headers = nil) - response = create_async(profile_name, profile_properties, resource_group_name, custom_headers).value! + def create(profile_name, profile_properties, resource_group_name, custom_headers:nil) + response = create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -326,9 +329,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) + def create_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) # Send request - promise = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers) + promise = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -358,8 +361,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Profile] operation results. # - def update(profile_name, profile_properties, resource_group_name, custom_headers = nil) - response = update_async(profile_name, profile_properties, resource_group_name, custom_headers).value! + def update(profile_name, profile_properties, resource_group_name, custom_headers:nil) + response = update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -376,9 +379,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) + def update_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) # Send request - promise = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers) + promise = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -406,8 +409,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete_if_exists(profile_name, resource_group_name, custom_headers = nil) - response = delete_if_exists_async(profile_name, resource_group_name, custom_headers).value! + def delete_if_exists(profile_name, resource_group_name, custom_headers:nil) + response = delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value! nil end @@ -422,9 +425,9 @@ module Azure::CDN::Mgmt::V2015_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(profile_name, resource_group_name, custom_headers = nil) + def delete_if_exists_async(profile_name, resource_group_name, custom_headers:nil) # Send request - promise = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers) + promise = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -453,8 +456,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [SsoUri] operation results. # - def generate_sso_uri(profile_name, resource_group_name, custom_headers = nil) - response = generate_sso_uri_async(profile_name, resource_group_name, custom_headers).value! + def generate_sso_uri(profile_name, resource_group_name, custom_headers:nil) + response = generate_sso_uri_async(profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -473,8 +476,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_sso_uri_with_http_info(profile_name, resource_group_name, custom_headers = nil) - generate_sso_uri_async(profile_name, resource_group_name, custom_headers).value! + def generate_sso_uri_with_http_info(profile_name, resource_group_name, custom_headers:nil) + generate_sso_uri_async(profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -492,7 +495,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_sso_uri_async(profile_name, resource_group_name, custom_headers = nil) + def generate_sso_uri_async(profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -500,6 +503,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -558,8 +562,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Profile] operation results. # - def begin_create(profile_name, profile_properties, resource_group_name, custom_headers = nil) - response = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers).value! + def begin_create(profile_name, profile_properties, resource_group_name, custom_headers:nil) + response = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -577,8 +581,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers = nil) - begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers).value! + def begin_create_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers:nil) + begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! end # @@ -595,7 +599,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) + def begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile_properties is nil' if profile_properties.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -604,7 +608,6 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -691,8 +694,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Profile] operation results. # - def begin_update(profile_name, profile_properties, resource_group_name, custom_headers = nil) - response = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers).value! + def begin_update(profile_name, profile_properties, resource_group_name, custom_headers:nil) + response = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -710,8 +713,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers = nil) - begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers).value! + def begin_update_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers:nil) + begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! end # @@ -728,7 +731,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) + def begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile_properties is nil' if profile_properties.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -737,7 +740,6 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -813,8 +815,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # will be added to the HTTP request. # # - def begin_delete_if_exists(profile_name, resource_group_name, custom_headers = nil) - response = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers).value! + def begin_delete_if_exists(profile_name, resource_group_name, custom_headers:nil) + response = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value! nil end @@ -832,8 +834,8 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(profile_name, resource_group_name, custom_headers = nil) - begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers).value! + def begin_delete_if_exists_with_http_info(profile_name, resource_group_name, custom_headers:nil) + begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -850,7 +852,7 @@ module Azure::CDN::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers = nil) + def begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -858,6 +860,7 @@ module Azure::CDN::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb index 0a5694b8c..d6313357f 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb @@ -144,8 +144,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [CheckNameAvailabilityOutput] operation results. # - def check_name_availability(check_name_availability_input, custom_headers = nil) - response = check_name_availability_async(check_name_availability_input, custom_headers).value! + def check_name_availability(check_name_availability_input, custom_headers:nil) + response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -160,8 +160,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(check_name_availability_input, custom_headers = nil) - check_name_availability_async(check_name_availability_input, custom_headers).value! + def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil) + check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! end # @@ -175,13 +175,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(check_name_availability_input, custom_headers = nil) + def check_name_availability_async(check_name_availability_input, custom_headers:nil) fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -242,8 +241,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Array] operation results. # - def list_resource_usage(custom_headers = nil) - first_page = list_resource_usage_as_lazy(custom_headers) + def list_resource_usage(custom_headers:nil) + first_page = list_resource_usage_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -256,8 +255,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(custom_headers = nil) - list_resource_usage_async(custom_headers).value! + def list_resource_usage_with_http_info(custom_headers:nil) + list_resource_usage_async(custom_headers:custom_headers).value! end # @@ -269,12 +268,13 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(custom_headers = nil) + def list_resource_usage_async(custom_headers:nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -327,8 +327,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Array] operation results. # - def list_operations(custom_headers = nil) - first_page = list_operations_as_lazy(custom_headers) + def list_operations(custom_headers:nil) + first_page = list_operations_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -340,8 +340,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_with_http_info(custom_headers = nil) - list_operations_async(custom_headers).value! + def list_operations_with_http_info(custom_headers:nil) + list_operations_async(custom_headers:custom_headers).value! end # @@ -352,11 +352,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_async(custom_headers = nil) + def list_operations_async(custom_headers:nil) fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -411,8 +412,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers = nil) - response = list_resource_usage_next_async(next_page_link, custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers:nil) + response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -427,8 +428,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) - list_resource_usage_next_async(next_page_link, custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) + list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -442,11 +443,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers = nil) + def list_resource_usage_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,8 +502,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [OperationListResult] operation results. # - def list_operations_next(next_page_link, custom_headers = nil) - response = list_operations_next_async(next_page_link, custom_headers).value! + def list_operations_next(next_page_link, custom_headers:nil) + response = list_operations_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -515,8 +517,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_next_with_http_info(next_page_link, custom_headers = nil) - list_operations_next_async(next_page_link, custom_headers).value! + def list_operations_next_with_http_info(next_page_link, custom_headers:nil) + list_operations_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -529,11 +531,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_next_async(next_page_link, custom_headers = nil) + def list_operations_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -586,8 +589,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_as_lazy(custom_headers = nil) - first_page = list_resource_usage_as_lazy_as_lazy(custom_headers) + def list_resource_usage_as_lazy(custom_headers:nil) + first_page = list_resource_usage_as_lazy_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -600,8 +603,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_as_lazy_with_http_info(custom_headers = nil) - list_resource_usage_as_lazy_async(custom_headers).value! + def list_resource_usage_as_lazy_with_http_info(custom_headers:nil) + list_resource_usage_as_lazy_async(custom_headers:custom_headers).value! end # @@ -613,10 +616,11 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_as_lazy_async(custom_headers = nil) + def list_resource_usage_as_lazy_async(custom_headers:nil) request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkResourceUsage' request_url = @base_url || self.base_url @@ -663,8 +667,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [OperationListResult] operation results. # - def list_operations_as_lazy(custom_headers = nil) - first_page = list_operations_as_lazy_as_lazy(custom_headers) + def list_operations_as_lazy(custom_headers:nil) + first_page = list_operations_as_lazy_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -676,8 +680,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_as_lazy_with_http_info(custom_headers = nil) - list_operations_as_lazy_async(custom_headers).value! + def list_operations_as_lazy_with_http_info(custom_headers:nil) + list_operations_as_lazy_async(custom_headers:custom_headers).value! end # @@ -688,10 +692,11 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_as_lazy_async(custom_headers = nil) + def list_operations_as_lazy_async(custom_headers:nil) request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' path_template = 'providers/Microsoft.Cdn/operations' request_url = @base_url || self.base_url diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb index 35c1cc223..44195e9b5 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb @@ -37,8 +37,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Array] operation results. # - def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) + def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -74,7 +74,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -86,6 +86,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [CustomDomain] operation results. # - def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -167,8 +168,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! end # @@ -187,7 +188,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -200,6 +201,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -262,8 +264,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [CustomDomain] operation results. # - def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) - response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! + def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -284,9 +286,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers) + promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -318,8 +320,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [CustomDomain] operation results. # - def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -338,9 +340,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -372,8 +374,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [CustomDomain] operation results. # - def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -393,8 +395,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! end # @@ -413,7 +415,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -426,6 +428,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -486,8 +489,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [CustomDomain] operation results. # - def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -507,8 +510,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! end # @@ -527,7 +530,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -540,6 +543,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -602,8 +606,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [CustomDomain] operation results. # - def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) - response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! + def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -625,8 +629,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) - begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! end # @@ -647,7 +651,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -661,7 +665,6 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -750,8 +753,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [CustomDomain] operation results. # - def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -771,8 +774,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! end # @@ -791,7 +794,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -804,6 +807,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -858,8 +862,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [CustomDomainListResult] operation results. # - def list_by_endpoint_next(next_page_link, custom_headers = nil) - response = list_by_endpoint_next_async(next_page_link, custom_headers).value! + def list_by_endpoint_next(next_page_link, custom_headers:nil) + response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -873,8 +877,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_next_with_http_info(next_page_link, custom_headers = nil) - list_by_endpoint_next_async(next_page_link, custom_headers).value! + def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) + list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -887,11 +891,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_next_async(next_page_link, custom_headers = nil) + def list_by_endpoint_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -950,12 +955,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [CustomDomainListResult] which provide lazy access to pages of the # response. # - def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_endpoint_next_async(next_page_link, custom_headers) + list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb index 3d16bc067..61cefd24b 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb @@ -31,8 +31,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -56,11 +56,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,8 +115,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [EdgenodeResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -129,8 +130,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -143,11 +144,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -199,12 +201,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [EdgenodeResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb index 2e40d644d..1765c7121 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb @@ -35,8 +35,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Array] operation results. # - def list_by_profile(resource_group_name, profile_name, custom_headers = nil) - first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers) + def list_by_profile(resource_group_name, profile_name, custom_headers:nil) + first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers = nil) - list_by_profile_async(resource_group_name, profile_name, custom_headers).value! + def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers:nil) + list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -68,7 +68,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_async(resource_group_name, profile_name, custom_headers = nil) + def list_by_profile_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -79,6 +79,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -138,8 +139,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Endpoint] operation results. # - def get(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -158,8 +159,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - get_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -177,7 +178,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -189,6 +190,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -249,8 +251,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Endpoint] operation results. # - def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) - response = create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! + def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + response = create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -268,9 +270,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + def create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers) + promise = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -306,8 +308,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Endpoint] operation results. # - def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) - response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! + def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -326,9 +328,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + def update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers) + promise = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -357,8 +359,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! nil end @@ -375,9 +377,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -405,8 +407,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Endpoint] operation results. # - def start(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -423,9 +425,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers) + promise = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -455,8 +457,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Endpoint] operation results. # - def stop(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -473,9 +475,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers) + promise = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -507,8 +509,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - response = purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + response = purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! nil end @@ -529,9 +531,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + def purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) # Send request - promise = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers) + promise = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -560,8 +562,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - response = load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + response = load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! nil end @@ -581,9 +583,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + def load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) # Send request - promise = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers) + promise = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -614,8 +616,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [ValidateCustomDomainOutput] operation results. # - def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) - response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers).value! + def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) + response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -636,8 +638,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_custom_domain_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) - validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers).value! + def validate_custom_domain_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) + validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value! end # @@ -657,7 +659,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) + def validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -670,7 +672,6 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -738,8 +739,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Array] operation results. # - def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) + def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) first_page.get_all_items end @@ -758,8 +759,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -777,7 +778,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -789,6 +790,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -849,8 +851,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Endpoint] operation results. # - def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) - response = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! + def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + response = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -870,8 +872,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) - begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! end # @@ -890,7 +892,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -903,7 +905,6 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -996,8 +997,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Endpoint] operation results. # - def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) - response = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! + def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + response = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1021,8 +1022,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) - begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! end # @@ -1045,7 +1046,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1058,7 +1059,6 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1135,8 +1135,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! nil end @@ -1155,8 +1155,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -1174,7 +1174,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1186,6 +1186,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1234,8 +1235,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Endpoint] operation results. # - def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1253,8 +1254,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -1271,7 +1272,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1283,6 +1284,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1341,8 +1343,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Endpoint] operation results. # - def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1360,8 +1362,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -1378,7 +1380,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1390,6 +1392,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1451,8 +1454,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # will be added to the HTTP request. # # - def begin_purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - response = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def begin_purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + response = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! nil end @@ -1474,8 +1477,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! end # @@ -1496,7 +1499,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1509,7 +1512,6 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1568,8 +1570,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # will be added to the HTTP request. # # - def begin_load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - response = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def begin_load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + response = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! nil end @@ -1590,8 +1592,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_load_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def begin_load_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! end # @@ -1611,7 +1613,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + def begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1624,7 +1626,6 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1677,8 +1678,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [EndpointListResult] operation results. # - def list_by_profile_next(next_page_link, custom_headers = nil) - response = list_by_profile_next_async(next_page_link, custom_headers).value! + def list_by_profile_next(next_page_link, custom_headers:nil) + response = list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1692,8 +1693,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_next_with_http_info(next_page_link, custom_headers = nil) - list_by_profile_next_async(next_page_link, custom_headers).value! + def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil) + list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1706,11 +1707,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_next_async(next_page_link, custom_headers = nil) + def list_by_profile_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1765,8 +1767,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers = nil) - response = list_resource_usage_next_async(next_page_link, custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers:nil) + response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1781,8 +1783,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) - list_resource_usage_next_async(next_page_link, custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) + list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1796,11 +1798,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers = nil) + def list_resource_usage_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1857,12 +1860,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [EndpointListResult] which provide lazy access to pages of the # response. # - def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers = nil) - response = list_by_profile_async(resource_group_name, profile_name, custom_headers).value! + def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:nil) + response = list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_profile_next_async(next_page_link, custom_headers) + list_by_profile_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1884,12 +1887,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [ResourceUsageListResult] which provide lazy access to pages of the # response. # - def list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resource_usage_next_async(next_page_link, custom_headers) + list_resource_usage_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb index 7cb42e6b5..bc8b1c367 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb @@ -37,8 +37,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Array] operation results. # - def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) + def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -74,7 +74,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -86,6 +86,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Origin] operation results. # - def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -167,8 +168,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) - get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) + get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value! end # @@ -187,7 +188,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -200,6 +201,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -261,8 +263,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Origin] operation results. # - def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) - response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! + def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -282,9 +284,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers) + promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -317,8 +319,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Origin] operation results. # - def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) - response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! + def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -339,8 +341,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) - begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! end # @@ -360,7 +362,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -374,7 +376,6 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -447,8 +448,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [OriginListResult] operation results. # - def list_by_endpoint_next(next_page_link, custom_headers = nil) - response = list_by_endpoint_next_async(next_page_link, custom_headers).value! + def list_by_endpoint_next(next_page_link, custom_headers:nil) + response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -462,8 +463,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_next_with_http_info(next_page_link, custom_headers = nil) - list_by_endpoint_next_async(next_page_link, custom_headers).value! + def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) + list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -476,11 +477,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_next_async(next_page_link, custom_headers = nil) + def list_by_endpoint_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -539,12 +541,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [OriginListResult] which provide lazy access to pages of the # response. # - def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_endpoint_next_async(next_page_link, custom_headers) + list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb index 76c3e97ad..1ef11a198 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb @@ -31,8 +31,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -56,12 +56,13 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -116,8 +117,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -131,8 +132,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -145,7 +146,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -155,6 +156,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -212,8 +214,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Profile] operation results. # - def get(resource_group_name, profile_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, custom_headers).value! + def get(resource_group_name, profile_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -230,8 +232,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, custom_headers = nil) - get_async(resource_group_name, profile_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, custom_headers:nil) + get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -247,7 +249,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -258,6 +260,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -316,8 +319,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Profile] operation results. # - def create(resource_group_name, profile_name, profile, custom_headers = nil) - response = create_async(resource_group_name, profile_name, profile, custom_headers).value! + def create(resource_group_name, profile_name, profile, custom_headers:nil) + response = create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -333,9 +336,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, profile, custom_headers = nil) + def create_async(resource_group_name, profile_name, profile, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers) + promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -366,8 +369,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Profile] operation results. # - def update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! + def update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -384,9 +387,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -414,8 +417,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, profile_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, custom_headers).value! + def delete(resource_group_name, profile_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! nil end @@ -430,9 +433,9 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -462,8 +465,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [SsoUri] operation results. # - def generate_sso_uri(resource_group_name, profile_name, custom_headers = nil) - response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value! + def generate_sso_uri(resource_group_name, profile_name, custom_headers:nil) + response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -483,8 +486,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers = nil) - generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value! + def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers:nil) + generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -503,7 +506,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_sso_uri_async(resource_group_name, profile_name, custom_headers = nil) + def generate_sso_uri_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -514,6 +517,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -571,8 +575,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [SupportedOptimizationTypesResult] operation results. # - def get_supported_optimization_types(resource_group_name, profile_name, custom_headers = nil) - response = get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value! + def get_supported_optimization_types(resource_group_name, profile_name, custom_headers:nil) + response = get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -589,8 +593,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers = nil) - get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value! + def get_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers:nil) + get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -606,7 +610,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers = nil) + def get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -617,6 +621,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -673,8 +678,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Array] operation results. # - def list_resource_usage(resource_group_name, profile_name, custom_headers = nil) - first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers) + def list_resource_usage(resource_group_name, profile_name, custom_headers:nil) + first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers) first_page.get_all_items end @@ -690,8 +695,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers = nil) - list_resource_usage_async(resource_group_name, profile_name, custom_headers).value! + def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers:nil) + list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -706,7 +711,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(resource_group_name, profile_name, custom_headers = nil) + def list_resource_usage_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -717,6 +722,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -775,8 +781,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Profile] operation results. # - def begin_create(resource_group_name, profile_name, profile, custom_headers = nil) - response = begin_create_async(resource_group_name, profile_name, profile, custom_headers).value! + def begin_create(resource_group_name, profile_name, profile, custom_headers:nil) + response = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -794,8 +800,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers = nil) - begin_create_async(resource_group_name, profile_name, profile, custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers:nil) + begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! end # @@ -812,7 +818,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, profile, custom_headers = nil) + def begin_create_async(resource_group_name, profile_name, profile, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -824,7 +830,6 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -912,8 +917,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Profile] operation results. # - def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! + def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -932,8 +937,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! end # @@ -951,7 +956,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -963,7 +968,6 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1039,8 +1043,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, profile_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, profile_name, custom_headers).value! + def begin_delete(resource_group_name, profile_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! nil end @@ -1058,8 +1062,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers = nil) - begin_delete_async(resource_group_name, profile_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers:nil) + begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -1076,7 +1080,7 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, custom_headers = nil) + def begin_delete_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1087,6 +1091,7 @@ module Azure::CDN::Mgmt::V2016_10_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1131,8 +1136,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [ProfileListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1146,8 +1151,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1160,11 +1165,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1218,8 +1224,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [ProfileListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1233,8 +1239,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1247,11 +1253,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1305,8 +1312,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers = nil) - response = list_resource_usage_next_async(next_page_link, custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers:nil) + response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1320,8 +1327,8 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) - list_resource_usage_next_async(next_page_link, custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) + list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1334,11 +1341,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers = nil) + def list_resource_usage_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1391,12 +1399,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [ProfileListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1413,12 +1421,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [ProfileListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1437,12 +1445,12 @@ module Azure::CDN::Mgmt::V2016_10_02 # @return [ResourceUsageListResult] which provide lazy access to pages of the # response. # - def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers = nil) - response = list_resource_usage_async(resource_group_name, profile_name, custom_headers).value! + def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:nil) + response = list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resource_usage_next_async(next_page_link, custom_headers) + list_resource_usage_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb index 67aab51d3..50c3f5963 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb @@ -152,8 +152,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [CheckNameAvailabilityOutput] operation results. # - def check_name_availability(check_name_availability_input, custom_headers = nil) - response = check_name_availability_async(check_name_availability_input, custom_headers).value! + def check_name_availability(check_name_availability_input, custom_headers:nil) + response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -168,8 +168,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(check_name_availability_input, custom_headers = nil) - check_name_availability_async(check_name_availability_input, custom_headers).value! + def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil) + check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! end # @@ -183,13 +183,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(check_name_availability_input, custom_headers = nil) + def check_name_availability_async(check_name_availability_input, custom_headers:nil) fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -253,8 +252,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [ValidateProbeOutput] operation results. # - def validate_probe(validate_probe_input, custom_headers = nil) - response = validate_probe_async(validate_probe_input, custom_headers).value! + def validate_probe(validate_probe_input, custom_headers:nil) + response = validate_probe_async(validate_probe_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -270,8 +269,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_probe_with_http_info(validate_probe_input, custom_headers = nil) - validate_probe_async(validate_probe_input, custom_headers).value! + def validate_probe_with_http_info(validate_probe_input, custom_headers:nil) + validate_probe_async(validate_probe_input, custom_headers:custom_headers).value! end # @@ -286,14 +285,13 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_probe_async(validate_probe_input, custom_headers = nil) + def validate_probe_async(validate_probe_input, custom_headers:nil) fail ArgumentError, 'validate_probe_input is nil' if validate_probe_input.nil? fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb index f028e9733..d03de5c1e 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb @@ -37,8 +37,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Array] operation results. # - def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) + def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -74,7 +74,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -86,6 +86,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [CustomDomain] operation results. # - def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -167,8 +168,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! end # @@ -187,7 +188,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -200,6 +201,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -262,8 +264,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [CustomDomain] operation results. # - def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) - response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! + def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -284,9 +286,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers) + promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -318,8 +320,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [CustomDomain] operation results. # - def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -338,9 +340,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -372,8 +374,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [CustomDomain] operation results. # - def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -393,8 +395,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! end # @@ -413,7 +415,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -426,6 +428,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -486,8 +489,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [CustomDomain] operation results. # - def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -507,8 +510,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! end # @@ -527,7 +530,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -540,6 +543,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -602,8 +606,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [CustomDomain] operation results. # - def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) - response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! + def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -625,8 +629,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) - begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! end # @@ -647,7 +651,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -661,7 +665,6 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -750,8 +753,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [CustomDomain] operation results. # - def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -771,8 +774,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) - begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! end # @@ -791,7 +794,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -804,6 +807,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -858,8 +862,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [CustomDomainListResult] operation results. # - def list_by_endpoint_next(next_page_link, custom_headers = nil) - response = list_by_endpoint_next_async(next_page_link, custom_headers).value! + def list_by_endpoint_next(next_page_link, custom_headers:nil) + response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -873,8 +877,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_next_with_http_info(next_page_link, custom_headers = nil) - list_by_endpoint_next_async(next_page_link, custom_headers).value! + def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) + list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -887,11 +891,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_next_async(next_page_link, custom_headers = nil) + def list_by_endpoint_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -950,12 +955,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [CustomDomainListResult] which provide lazy access to pages of the # response. # - def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_endpoint_next_async(next_page_link, custom_headers) + list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb index 4db0b20e4..85cba06a1 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb @@ -32,8 +32,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -59,11 +59,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -118,8 +119,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [EdgenodeResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -149,11 +150,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -206,12 +208,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [EdgenodeResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb index 6b8bda9ea..0e298dff6 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb @@ -35,8 +35,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Array] operation results. # - def list_by_profile(resource_group_name, profile_name, custom_headers = nil) - first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers) + def list_by_profile(resource_group_name, profile_name, custom_headers:nil) + first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers = nil) - list_by_profile_async(resource_group_name, profile_name, custom_headers).value! + def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers:nil) + list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -68,7 +68,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_async(resource_group_name, profile_name, custom_headers = nil) + def list_by_profile_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -79,6 +79,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -138,8 +139,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Endpoint] operation results. # - def get(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -158,8 +159,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - get_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -177,7 +178,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -189,6 +190,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -249,8 +251,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Endpoint] operation results. # - def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) - response = create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! + def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + response = create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -268,9 +270,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + def create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers) + promise = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -306,8 +308,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Endpoint] operation results. # - def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) - response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! + def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -326,9 +328,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + def update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers) + promise = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -357,8 +359,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! nil end @@ -375,9 +377,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -405,8 +407,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Endpoint] operation results. # - def start(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -423,9 +425,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers) + promise = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -455,8 +457,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Endpoint] operation results. # - def stop(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -473,9 +475,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers) + promise = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -507,8 +509,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - response = purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + response = purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! nil end @@ -529,9 +531,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + def purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) # Send request - promise = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers) + promise = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -560,8 +562,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - response = load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + response = load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! nil end @@ -581,9 +583,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + def load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) # Send request - promise = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers) + promise = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -614,8 +616,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [ValidateCustomDomainOutput] operation results. # - def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) - response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers).value! + def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) + response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -636,8 +638,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_custom_domain_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) - validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers).value! + def validate_custom_domain_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) + validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value! end # @@ -657,7 +659,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) + def validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -670,7 +672,6 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -738,8 +739,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Array] operation results. # - def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) + def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) first_page.get_all_items end @@ -758,8 +759,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -777,7 +778,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -789,6 +790,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -849,8 +851,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Endpoint] operation results. # - def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) - response = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! + def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + response = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -870,8 +872,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) - begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! end # @@ -890,7 +892,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -903,7 +905,6 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -996,8 +997,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Endpoint] operation results. # - def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) - response = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! + def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + response = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1021,8 +1022,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) - begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! end # @@ -1045,7 +1046,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1058,7 +1059,6 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1135,8 +1135,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! nil end @@ -1155,8 +1155,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -1174,7 +1174,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1186,6 +1186,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1234,8 +1235,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Endpoint] operation results. # - def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1253,8 +1254,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -1271,7 +1272,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1283,6 +1284,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1341,8 +1343,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Endpoint] operation results. # - def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1360,8 +1362,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -1378,7 +1380,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1390,6 +1392,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1451,8 +1454,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # will be added to the HTTP request. # # - def begin_purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - response = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def begin_purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + response = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! nil end @@ -1474,8 +1477,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! end # @@ -1496,7 +1499,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1509,7 +1512,6 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1568,8 +1570,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # will be added to the HTTP request. # # - def begin_load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - response = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def begin_load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + response = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! nil end @@ -1590,8 +1592,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_load_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) - begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! + def begin_load_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! end # @@ -1611,7 +1613,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + def begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1624,7 +1626,6 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1677,8 +1678,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [EndpointListResult] operation results. # - def list_by_profile_next(next_page_link, custom_headers = nil) - response = list_by_profile_next_async(next_page_link, custom_headers).value! + def list_by_profile_next(next_page_link, custom_headers:nil) + response = list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1692,8 +1693,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_next_with_http_info(next_page_link, custom_headers = nil) - list_by_profile_next_async(next_page_link, custom_headers).value! + def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil) + list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1706,11 +1707,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_next_async(next_page_link, custom_headers = nil) + def list_by_profile_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1765,8 +1767,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers = nil) - response = list_resource_usage_next_async(next_page_link, custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers:nil) + response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1781,8 +1783,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) - list_resource_usage_next_async(next_page_link, custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) + list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1796,11 +1798,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers = nil) + def list_resource_usage_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1857,12 +1860,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [EndpointListResult] which provide lazy access to pages of the # response. # - def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers = nil) - response = list_by_profile_async(resource_group_name, profile_name, custom_headers).value! + def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:nil) + response = list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_profile_next_async(next_page_link, custom_headers) + list_by_profile_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1884,12 +1887,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [ResourceUsageListResult] which provide lazy access to pages of the # response. # - def list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resource_usage_next_async(next_page_link, custom_headers) + list_resource_usage_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb index eccab1c56..34dd9446e 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb @@ -31,8 +31,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -56,11 +56,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,8 +115,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [OperationsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -129,8 +130,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -143,11 +144,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -200,12 +202,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [OperationsListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb index 675ccdc88..f3ac8512f 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb @@ -37,8 +37,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Array] operation results. # - def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) + def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! end # @@ -74,7 +74,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -86,6 +86,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Origin] operation results. # - def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -167,8 +168,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) - get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) + get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value! end # @@ -187,7 +188,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -200,6 +201,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -261,8 +263,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Origin] operation results. # - def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) - response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! + def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -282,9 +284,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers) + promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -317,8 +319,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Origin] operation results. # - def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) - response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! + def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -339,8 +341,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) - begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! end # @@ -360,7 +362,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -374,7 +376,6 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -447,8 +448,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [OriginListResult] operation results. # - def list_by_endpoint_next(next_page_link, custom_headers = nil) - response = list_by_endpoint_next_async(next_page_link, custom_headers).value! + def list_by_endpoint_next(next_page_link, custom_headers:nil) + response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -462,8 +463,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_next_with_http_info(next_page_link, custom_headers = nil) - list_by_endpoint_next_async(next_page_link, custom_headers).value! + def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) + list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -476,11 +477,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_next_async(next_page_link, custom_headers = nil) + def list_by_endpoint_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -539,12 +541,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [OriginListResult] which provide lazy access to pages of the # response. # - def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) - response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! + def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_endpoint_next_async(next_page_link, custom_headers) + list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb index 47150e15a..d313c5deb 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb @@ -31,8 +31,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -56,12 +56,13 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -116,8 +117,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -131,8 +132,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -145,7 +146,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -155,6 +156,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -212,8 +214,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Profile] operation results. # - def get(resource_group_name, profile_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, custom_headers).value! + def get(resource_group_name, profile_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -230,8 +232,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, custom_headers = nil) - get_async(resource_group_name, profile_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, custom_headers:nil) + get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -247,7 +249,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -258,6 +260,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -316,8 +319,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Profile] operation results. # - def create(resource_group_name, profile_name, profile, custom_headers = nil) - response = create_async(resource_group_name, profile_name, profile, custom_headers).value! + def create(resource_group_name, profile_name, profile, custom_headers:nil) + response = create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -333,9 +336,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, profile, custom_headers = nil) + def create_async(resource_group_name, profile_name, profile, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers) + promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -366,8 +369,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Profile] operation results. # - def update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! + def update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -384,9 +387,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -414,8 +417,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, profile_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, custom_headers).value! + def delete(resource_group_name, profile_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! nil end @@ -430,9 +433,9 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -462,8 +465,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [SsoUri] operation results. # - def generate_sso_uri(resource_group_name, profile_name, custom_headers = nil) - response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value! + def generate_sso_uri(resource_group_name, profile_name, custom_headers:nil) + response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -483,8 +486,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers = nil) - generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value! + def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers:nil) + generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -503,7 +506,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_sso_uri_async(resource_group_name, profile_name, custom_headers = nil) + def generate_sso_uri_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -514,6 +517,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -571,8 +575,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [SupportedOptimizationTypesListResult] operation results. # - def list_supported_optimization_types(resource_group_name, profile_name, custom_headers = nil) - response = list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value! + def list_supported_optimization_types(resource_group_name, profile_name, custom_headers:nil) + response = list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -589,8 +593,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers = nil) - list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value! + def list_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers:nil) + list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -606,7 +610,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers = nil) + def list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -617,6 +621,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -673,8 +678,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Array] operation results. # - def list_resource_usage(resource_group_name, profile_name, custom_headers = nil) - first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers) + def list_resource_usage(resource_group_name, profile_name, custom_headers:nil) + first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers) first_page.get_all_items end @@ -690,8 +695,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers = nil) - list_resource_usage_async(resource_group_name, profile_name, custom_headers).value! + def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers:nil) + list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -706,7 +711,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(resource_group_name, profile_name, custom_headers = nil) + def list_resource_usage_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -717,6 +722,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -775,8 +781,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Profile] operation results. # - def begin_create(resource_group_name, profile_name, profile, custom_headers = nil) - response = begin_create_async(resource_group_name, profile_name, profile, custom_headers).value! + def begin_create(resource_group_name, profile_name, profile, custom_headers:nil) + response = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -794,8 +800,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers = nil) - begin_create_async(resource_group_name, profile_name, profile, custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers:nil) + begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! end # @@ -812,7 +818,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, profile, custom_headers = nil) + def begin_create_async(resource_group_name, profile_name, profile, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -824,7 +830,6 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -912,8 +917,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Profile] operation results. # - def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! + def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -932,8 +937,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! end # @@ -951,7 +956,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -963,7 +968,6 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1039,8 +1043,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, profile_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, profile_name, custom_headers).value! + def begin_delete(resource_group_name, profile_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! nil end @@ -1058,8 +1062,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers = nil) - begin_delete_async(resource_group_name, profile_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers:nil) + begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -1076,7 +1080,7 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, custom_headers = nil) + def begin_delete_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1087,6 +1091,7 @@ module Azure::CDN::Mgmt::V2017_04_02 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1131,8 +1136,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [ProfileListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1146,8 +1151,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1160,11 +1165,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1218,8 +1224,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [ProfileListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1233,8 +1239,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1247,11 +1253,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1305,8 +1312,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers = nil) - response = list_resource_usage_next_async(next_page_link, custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers:nil) + response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1320,8 +1327,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) - list_resource_usage_next_async(next_page_link, custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) + list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1334,11 +1341,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers = nil) + def list_resource_usage_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1391,12 +1399,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [ProfileListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1413,12 +1421,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [ProfileListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1437,12 +1445,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [ResourceUsageListResult] which provide lazy access to pages of the # response. # - def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers = nil) - response = list_resource_usage_async(resource_group_name, profile_name, custom_headers).value! + def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:nil) + response = list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resource_usage_next_async(next_page_link, custom_headers) + list_resource_usage_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb index f61c0be10..af3a6e0e9 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb @@ -32,8 +32,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -59,12 +59,13 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -120,8 +121,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [ResourceUsageListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -136,8 +137,8 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -151,11 +152,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -209,12 +211,12 @@ module Azure::CDN::Mgmt::V2017_04_02 # @return [ResourceUsageListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/profiles/latest/modules/cdn_profile_module.rb b/management/azure_mgmt_cdn/lib/profiles/latest/modules/cdn_profile_module.rb index 874b99a9c..0d28d1e3e 100644 --- a/management/azure_mgmt_cdn/lib/profiles/latest/modules/cdn_profile_module.rb +++ b/management/azure_mgmt_cdn/lib/profiles/latest/modules/cdn_profile_module.rb @@ -83,18 +83,18 @@ module Azure::CDN::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CDN::Mgmt::V2017_04_02::CdnManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CDN::Mgmt::V2017_04_02::CdnManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @profiles = client_0.profiles - @endpoints = client_0.endpoints - @origins = client_0.origins - @custom_domains = client_0.custom_domains - @resource_usage_operations = client_0.resource_usage_operations - @operations = client_0.operations - @edge_nodes = client_0.edge_nodes + add_telemetry(@client_0) + @profiles = @client_0.profiles + @endpoints = @client_0.endpoints + @origins = @client_0.origins + @custom_domains = @client_0.custom_domains + @resource_usage_operations = @client_0.resource_usage_operations + @operations = @client_0.operations + @edge_nodes = @client_0.edge_nodes @model_classes = ModelClasses.new end @@ -104,6 +104,14 @@ module Azure::CDN::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb b/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb index 657f02710..854545b14 100644 --- a/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb +++ b/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb @@ -36,8 +36,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [CognitiveServicesAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -56,8 +56,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - create_async(resource_group_name, account_name, parameters, custom_headers).value! + def create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def create_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64 @@ -87,7 +87,6 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -167,8 +166,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [CognitiveServicesAccount] operation results. # - def update(resource_group_name, account_name, sku = nil, tags = nil, custom_headers = nil) - response = update_async(resource_group_name, account_name, sku, tags, custom_headers).value! + def update(resource_group_name, account_name, sku:nil, tags:nil, custom_headers:nil) + response = update_async(resource_group_name, account_name, sku:sku, tags:tags, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,8 +188,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, sku = nil, tags = nil, custom_headers = nil) - update_async(resource_group_name, account_name, sku, tags, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, sku:nil, tags:nil, custom_headers:nil) + update_async(resource_group_name, account_name, sku:sku, tags:tags, custom_headers:custom_headers).value! end # @@ -210,7 +209,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, sku = nil, tags = nil, custom_headers = nil) + def update_async(resource_group_name, account_name, sku:nil, tags:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64 @@ -226,7 +225,6 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -289,8 +287,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -305,8 +303,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - delete_async(resource_group_name, account_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -320,7 +318,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64 @@ -331,6 +329,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -376,8 +375,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [CognitiveServicesAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers = nil) - response = get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers:nil) + response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -392,8 +391,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -407,7 +406,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers = nil) + def get_properties_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64 @@ -418,6 +417,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -472,8 +472,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -487,8 +487,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -501,13 +501,14 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -560,8 +561,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -573,8 +574,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -585,12 +586,13 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -646,8 +648,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [CognitiveServicesAccountKeys] operation results. # - def list_keys(resource_group_name, account_name, custom_headers = nil) - response = list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers:nil) + response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -662,8 +664,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -677,7 +679,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers = nil) + def list_keys_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64 @@ -688,6 +690,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -746,8 +749,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [CognitiveServicesAccountKeys] operation results. # - def regenerate_key(resource_group_name, account_name, key_name, custom_headers = nil) - response = regenerate_key_async(resource_group_name, account_name, key_name, custom_headers).value! + def regenerate_key(resource_group_name, account_name, key_name, custom_headers:nil) + response = regenerate_key_async(resource_group_name, account_name, key_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -765,8 +768,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, key_name, custom_headers = nil) - regenerate_key_async(resource_group_name, account_name, key_name, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, key_name, custom_headers:nil) + regenerate_key_async(resource_group_name, account_name, key_name, custom_headers:custom_headers).value! end # @@ -783,7 +786,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, key_name, custom_headers = nil) + def regenerate_key_async(resource_group_name, account_name, key_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64 @@ -799,7 +802,6 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -863,8 +865,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [CognitiveServicesAccountEnumerateSkusResult] operation results. # - def list_skus(resource_group_name, account_name, custom_headers = nil) - response = list_skus_async(resource_group_name, account_name, custom_headers).value! + def list_skus(resource_group_name, account_name, custom_headers:nil) + response = list_skus_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -879,8 +881,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_skus_async(resource_group_name, account_name, custom_headers).value! + def list_skus_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_skus_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -894,7 +896,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(resource_group_name, account_name, custom_headers = nil) + def list_skus_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64 @@ -905,6 +907,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -959,8 +962,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [CognitiveServicesAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -974,8 +977,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -988,11 +991,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1046,8 +1050,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [CognitiveServicesAccountListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1061,8 +1065,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1075,11 +1079,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1134,12 +1139,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # @return [CognitiveServicesAccountListResult] which provide lazy access to # pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1154,12 +1159,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # @return [CognitiveServicesAccountListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb b/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb index 670324645..21716d1a3 100644 --- a/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb +++ b/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb @@ -37,8 +37,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [CheckSkuAvailabilityResultList] operation results. # - def list(location, skus, kind, type, custom_headers = nil) - response = list_async(location, skus, kind, type, custom_headers).value! + def list(location, skus, kind, type, custom_headers:nil) + response = list_async(location, skus, kind, type, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -58,8 +58,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, skus, kind, type, custom_headers = nil) - list_async(location, skus, kind, type, custom_headers).value! + def list_with_http_info(location, skus, kind, type, custom_headers:nil) + list_async(location, skus, kind, type, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, skus, kind, type, custom_headers = nil) + def list_async(location, skus, kind, type, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'location is nil' if location.nil? @@ -94,7 +94,6 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb b/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb index a5362e280..34e187d4b 100644 --- a/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb +++ b/management/azure_mgmt_cognitive_services/lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb @@ -29,8 +29,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [OperationEntityListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18 # @return [OperationEntityListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_cognitive_services/lib/profiles/latest/modules/cognitiveservices_profile_module.rb b/management/azure_mgmt_cognitive_services/lib/profiles/latest/modules/cognitiveservices_profile_module.rb index a63ab7ecb..0f1d94737 100644 --- a/management/azure_mgmt_cognitive_services/lib/profiles/latest/modules/cognitiveservices_profile_module.rb +++ b/management/azure_mgmt_cognitive_services/lib/profiles/latest/modules/cognitiveservices_profile_module.rb @@ -54,14 +54,14 @@ module Azure::CognitiveServices::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CognitiveServices::Mgmt::V2017_04_18::CognitiveServicesManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CognitiveServices::Mgmt::V2017_04_18::CognitiveServicesManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @accounts = client_0.accounts - @operations = client_0.operations - @check_sku_availability = client_0.check_sku_availability + add_telemetry(@client_0) + @accounts = @client_0.accounts + @operations = @client_0.operations + @check_sku_availability = @client_0.check_sku_availability @model_classes = ModelClasses.new end @@ -71,6 +71,14 @@ module Azure::CognitiveServices::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_commerce/lib/2015-06-01-preview/generated/azure_mgmt_commerce/rate_card.rb b/management/azure_mgmt_commerce/lib/2015-06-01-preview/generated/azure_mgmt_commerce/rate_card.rb index 37faa4f5c..41350e2de 100644 --- a/management/azure_mgmt_commerce/lib/2015-06-01-preview/generated/azure_mgmt_commerce/rate_card.rb +++ b/management/azure_mgmt_commerce/lib/2015-06-01-preview/generated/azure_mgmt_commerce/rate_card.rb @@ -40,8 +40,8 @@ module Azure::Commerce::Mgmt::V2015_06_01_preview # # @return [ResourceRateCardInfo] operation results. # - def get(filter, custom_headers = nil) - response = get_async(filter, custom_headers).value! + def get(filter, custom_headers:nil) + response = get_async(filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -64,8 +64,8 @@ module Azure::Commerce::Mgmt::V2015_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(filter, custom_headers = nil) - get_async(filter, custom_headers).value! + def get_with_http_info(filter, custom_headers:nil) + get_async(filter, custom_headers:custom_headers).value! end # @@ -87,13 +87,14 @@ module Azure::Commerce::Mgmt::V2015_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(filter, custom_headers = nil) + def get_async(filter, custom_headers:nil) fail ArgumentError, 'filter is nil' if filter.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_commerce/lib/2015-06-01-preview/generated/azure_mgmt_commerce/usage_aggregates.rb b/management/azure_mgmt_commerce/lib/2015-06-01-preview/generated/azure_mgmt_commerce/usage_aggregates.rb index 0114d5f10..93530e2d2 100644 --- a/management/azure_mgmt_commerce/lib/2015-06-01-preview/generated/azure_mgmt_commerce/usage_aggregates.rb +++ b/management/azure_mgmt_commerce/lib/2015-06-01-preview/generated/azure_mgmt_commerce/usage_aggregates.rb @@ -47,8 +47,8 @@ module Azure::Commerce::Mgmt::V2015_06_01_preview # # @return [Array] operation results. # - def list(reported_start_time, reported_end_time, show_details = nil, aggregation_granularity = nil, continuation_token = nil, custom_headers = nil) - first_page = list_as_lazy(reported_start_time, reported_end_time, show_details, aggregation_granularity, continuation_token, custom_headers) + def list(reported_start_time, reported_end_time, show_details:nil, aggregation_granularity:nil, continuation_token:nil, custom_headers:nil) + first_page = list_as_lazy(reported_start_time, reported_end_time, show_details:show_details, aggregation_granularity:aggregation_granularity, continuation_token:continuation_token, custom_headers:custom_headers) first_page.get_all_items end @@ -78,8 +78,8 @@ module Azure::Commerce::Mgmt::V2015_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(reported_start_time, reported_end_time, show_details = nil, aggregation_granularity = nil, continuation_token = nil, custom_headers = nil) - list_async(reported_start_time, reported_end_time, show_details, aggregation_granularity, continuation_token, custom_headers).value! + def list_with_http_info(reported_start_time, reported_end_time, show_details:nil, aggregation_granularity:nil, continuation_token:nil, custom_headers:nil) + list_async(reported_start_time, reported_end_time, show_details:show_details, aggregation_granularity:aggregation_granularity, continuation_token:continuation_token, custom_headers:custom_headers).value! end # @@ -108,7 +108,7 @@ module Azure::Commerce::Mgmt::V2015_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(reported_start_time, reported_end_time, show_details = nil, aggregation_granularity = nil, continuation_token = nil, custom_headers = nil) + def list_async(reported_start_time, reported_end_time, show_details:nil, aggregation_granularity:nil, continuation_token:nil, custom_headers:nil) fail ArgumentError, 'reported_start_time is nil' if reported_start_time.nil? fail ArgumentError, 'reported_end_time is nil' if reported_end_time.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -116,6 +116,7 @@ module Azure::Commerce::Mgmt::V2015_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -170,8 +171,8 @@ module Azure::Commerce::Mgmt::V2015_06_01_preview # # @return [UsageAggregationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -185,8 +186,8 @@ module Azure::Commerce::Mgmt::V2015_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -199,11 +200,12 @@ module Azure::Commerce::Mgmt::V2015_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -274,12 +276,12 @@ module Azure::Commerce::Mgmt::V2015_06_01_preview # @return [UsageAggregationListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(reported_start_time, reported_end_time, show_details = nil, aggregation_granularity = nil, continuation_token = nil, custom_headers = nil) - response = list_async(reported_start_time, reported_end_time, show_details, aggregation_granularity, continuation_token, custom_headers).value! + def list_as_lazy(reported_start_time, reported_end_time, show_details:nil, aggregation_granularity:nil, continuation_token:nil, custom_headers:nil) + response = list_async(reported_start_time, reported_end_time, show_details:show_details, aggregation_granularity:aggregation_granularity, continuation_token:continuation_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_commerce/lib/profiles/latest/modules/commerce_profile_module.rb b/management/azure_mgmt_commerce/lib/profiles/latest/modules/commerce_profile_module.rb index d1bb88d33..fd9c32cd6 100644 --- a/management/azure_mgmt_commerce/lib/profiles/latest/modules/commerce_profile_module.rb +++ b/management/azure_mgmt_commerce/lib/profiles/latest/modules/commerce_profile_module.rb @@ -43,13 +43,13 @@ module Azure::Commerce::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Commerce::Mgmt::V2015_06_01_preview::UsageManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Commerce::Mgmt::V2015_06_01_preview::UsageManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @usage_aggregates = client_0.usage_aggregates - @rate_card = client_0.rate_card + add_telemetry(@client_0) + @usage_aggregates = @client_0.usage_aggregates + @rate_card = @client_0.rate_card @model_classes = ModelClasses.new end @@ -59,6 +59,14 @@ module Azure::Commerce::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/availability_sets.rb b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/availability_sets.rb index 45e8e5140..76ef20946 100644 --- a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/availability_sets.rb +++ b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/availability_sets.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [AvailabilitySet] operation results. # - def create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -75,7 +75,6 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -138,8 +137,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, availability_set_name, custom_headers = nil) - response = delete_async(resource_group_name, availability_set_name, custom_headers).value! + def delete(resource_group_name, availability_set_name, custom_headers:nil) + response = delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +152,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - delete_async(resource_group_name, availability_set_name, custom_headers).value! + def delete_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -167,7 +166,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, availability_set_name, custom_headers = nil) + def delete_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -175,6 +174,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -229,8 +229,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [AvailabilitySet] operation results. # - def get(resource_group_name, availability_set_name, custom_headers = nil) - response = get_async(resource_group_name, availability_set_name, custom_headers).value! + def get(resource_group_name, availability_set_name, custom_headers:nil) + response = get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -244,8 +244,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - get_async(resource_group_name, availability_set_name, custom_headers).value! + def get_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -258,7 +258,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, availability_set_name, custom_headers = nil) + def get_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -266,6 +266,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -319,8 +320,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [AvailabilitySetListResult] operation results. # - def list(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -333,8 +334,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -346,13 +347,14 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -408,8 +410,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineSizeListResult] operation results. # - def list_available_sizes(resource_group_name, availability_set_name, custom_headers = nil) - response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value! + def list_available_sizes(resource_group_name, availability_set_name, custom_headers:nil) + response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -424,8 +426,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value! + def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -439,7 +441,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers = nil) + def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -447,6 +449,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/usage_operations.rb b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/usage_operations.rb index 30d8be43d..451e9a797 100644 --- a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/usage_operations.rb +++ b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/usage_operations.rb @@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [ListUsagesResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -160,11 +161,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -220,12 +222,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [ListUsagesResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extension_images.rb b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extension_images.rb index 100a58a65..d9e0b1dea 100644 --- a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +++ b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extension_images.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineExtensionImage] operation results. # - def get(location, publisher_name, type, version, custom_headers = nil) - response = get_async(location, publisher_name, type, version, custom_headers).value! + def get(location, publisher_name, type, version, custom_headers:nil) + response = get_async(location, publisher_name, type, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, publisher_name, type, version, custom_headers = nil) - get_async(location, publisher_name, type, version, custom_headers).value! + def get_with_http_info(location, publisher_name, type, version, custom_headers:nil) + get_async(location, publisher_name, type, version, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, publisher_name, type, version, custom_headers = nil) + def get_async(location, publisher_name, type, version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'type is nil' if type.nil? @@ -76,6 +76,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -130,8 +131,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_types(location, publisher_name, custom_headers = nil) - response = list_types_async(location, publisher_name, custom_headers).value! + def list_types(location, publisher_name, custom_headers:nil) + response = list_types_async(location, publisher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_types_with_http_info(location, publisher_name, custom_headers = nil) - list_types_async(location, publisher_name, custom_headers).value! + def list_types_with_http_info(location, publisher_name, custom_headers:nil) + list_types_async(location, publisher_name, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_types_async(location, publisher_name, custom_headers = nil) + def list_types_async(location, publisher_name, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -167,6 +168,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +243,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_versions(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value! + def list_versions(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -260,8 +262,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_versions_with_http_info(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value! + def list_versions_with_http_info(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -278,7 +280,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_versions_async(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_versions_async(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'type is nil' if type.nil? @@ -287,6 +289,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extensions.rb b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extensions.rb index 1e8e30a2e..aa27ea3a2 100644 --- a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extensions.rb +++ b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extensions.rb @@ -35,8 +35,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineExtension] operation results. # - def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,9 +53,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) + def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -130,8 +130,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineExtension] operation results. # - def get(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value! + def get(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +148,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value! end # @@ -165,7 +165,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -174,6 +174,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -232,8 +233,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineExtension] operation results. # - def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -251,8 +252,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! end # @@ -269,7 +270,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -279,7 +280,6 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -354,8 +354,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -371,8 +371,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! end # @@ -387,7 +387,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -396,6 +396,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_images.rb b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_images.rb index d87c69336..6ebffb470 100644 --- a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_images.rb +++ b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_images.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineImage] operation results. # - def get(location, publisher_name, offer, skus, version, custom_headers = nil) - response = get_async(location, publisher_name, offer, skus, version, custom_headers).value! + def get(location, publisher_name, offer, skus, version, custom_headers:nil) + response = get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers = nil) - get_async(location, publisher_name, offer, skus, version, custom_headers).value! + def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers:nil) + get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, publisher_name, offer, skus, version, custom_headers = nil) + def get_async(location, publisher_name, offer, skus, version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -80,6 +80,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value! + def list(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -161,8 +162,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value! + def list_with_http_info(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -191,6 +192,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -262,8 +264,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_offers(location, publisher_name, custom_headers = nil) - response = list_offers_async(location, publisher_name, custom_headers).value! + def list_offers(location, publisher_name, custom_headers:nil) + response = list_offers_async(location, publisher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -278,8 +280,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_offers_with_http_info(location, publisher_name, custom_headers = nil) - list_offers_async(location, publisher_name, custom_headers).value! + def list_offers_with_http_info(location, publisher_name, custom_headers:nil) + list_offers_async(location, publisher_name, custom_headers:custom_headers).value! end # @@ -293,7 +295,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_offers_async(location, publisher_name, custom_headers = nil) + def list_offers_async(location, publisher_name, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -301,6 +303,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -371,8 +374,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_publishers(location, custom_headers = nil) - response = list_publishers_async(location, custom_headers).value! + def list_publishers(location, custom_headers:nil) + response = list_publishers_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -386,8 +389,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_publishers_with_http_info(location, custom_headers = nil) - list_publishers_async(location, custom_headers).value! + def list_publishers_with_http_info(location, custom_headers:nil) + list_publishers_async(location, custom_headers:custom_headers).value! end # @@ -400,13 +403,14 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_publishers_async(location, custom_headers = nil) + def list_publishers_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -479,8 +483,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_skus(location, publisher_name, offer, custom_headers = nil) - response = list_skus_async(location, publisher_name, offer, custom_headers).value! + def list_skus(location, publisher_name, offer, custom_headers:nil) + response = list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -496,8 +500,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(location, publisher_name, offer, custom_headers = nil) - list_skus_async(location, publisher_name, offer, custom_headers).value! + def list_skus_with_http_info(location, publisher_name, offer, custom_headers:nil) + list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value! end # @@ -512,7 +516,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(location, publisher_name, offer, custom_headers = nil) + def list_skus_async(location, publisher_name, offer, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -521,6 +525,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb index 3168db0c0..8ec5e53f4 100644 --- a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +++ b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,9 +48,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -95,9 +95,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -124,8 +124,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -139,9 +139,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -168,8 +168,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineScaleSetVM] operation results. # - def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,8 +184,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -199,7 +199,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -208,6 +208,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -263,8 +264,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineScaleSetVMInstanceView] operation results. # - def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -279,8 +280,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -294,7 +295,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -303,6 +304,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -360,8 +362,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers) + def list(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -378,8 +380,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value! end # @@ -395,7 +397,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) + def list_async(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -403,6 +405,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -460,8 +463,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -475,9 +478,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -504,8 +507,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -519,9 +522,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -548,8 +551,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -563,9 +566,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -593,8 +596,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -610,8 +613,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -626,7 +629,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -635,6 +638,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -693,8 +697,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -712,8 +716,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -730,7 +734,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -739,6 +743,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -794,8 +799,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -810,8 +815,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -825,7 +830,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -834,6 +839,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -891,8 +897,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -909,8 +915,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -926,7 +932,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -935,6 +941,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -990,8 +997,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1006,8 +1013,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1021,7 +1028,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1030,6 +1037,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1085,8 +1093,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1101,8 +1109,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1116,7 +1124,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1125,6 +1133,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1179,8 +1188,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineScaleSetVMListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1194,8 +1203,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1208,11 +1217,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1270,12 +1280,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [VirtualMachineScaleSetVMListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + response = list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb index a599a829f..f2f012491 100644 --- a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +++ b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb @@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineScaleSet] operation results. # - def create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -47,9 +47,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,9 +89,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -117,8 +117,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineScaleSet] operation results. # - def get(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +132,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -146,7 +146,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -154,6 +154,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -212,8 +213,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -228,9 +229,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -258,8 +259,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -274,9 +275,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) # Send request - promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -302,8 +303,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineScaleSetInstanceView] operation results. # - def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -317,8 +318,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -331,7 +332,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -339,6 +340,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +394,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -406,8 +408,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -419,13 +421,14 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -481,8 +484,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -497,8 +500,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -512,12 +515,13 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -573,8 +577,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_skus(resource_group_name, vm_scale_set_name, custom_headers = nil) - first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers) + def list_skus(resource_group_name, vm_scale_set_name, custom_headers:nil) + first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -589,8 +593,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -604,7 +608,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -612,6 +616,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -670,8 +675,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -686,9 +691,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -716,8 +721,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -732,9 +737,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -762,8 +767,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -778,9 +783,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -809,8 +814,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -825,9 +830,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) # Send request - promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -854,8 +859,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def reimage(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def reimage(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -868,9 +873,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def reimage_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -897,8 +902,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineScaleSet] operation results. # - def begin_create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -913,8 +918,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -928,7 +933,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -937,7 +942,6 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1010,8 +1014,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1025,8 +1029,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -1039,7 +1043,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1047,6 +1051,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1105,8 +1110,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1124,8 +1129,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1142,7 +1147,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1150,7 +1155,6 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1215,8 +1219,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1232,8 +1236,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1248,7 +1252,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil? @@ -1257,7 +1261,6 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1324,8 +1327,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1343,8 +1346,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1361,7 +1364,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1369,7 +1372,6 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1434,8 +1436,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1451,8 +1453,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1467,7 +1469,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1475,7 +1477,6 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1540,8 +1541,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1557,8 +1558,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1573,7 +1574,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1581,7 +1582,6 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1647,8 +1647,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1665,8 +1665,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1682,7 +1682,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil? @@ -1691,7 +1691,6 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1755,8 +1754,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_reimage(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_reimage(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1771,8 +1770,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -1786,7 +1785,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1794,6 +1793,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1848,8 +1848,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineScaleSetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1863,8 +1863,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1877,11 +1877,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1938,8 +1939,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineScaleSetListWithLinkResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1956,8 +1957,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1973,11 +1974,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2032,8 +2034,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineScaleSetListSkusResult] operation results. # - def list_skus_next(next_page_link, custom_headers = nil) - response = list_skus_next_async(next_page_link, custom_headers).value! + def list_skus_next(next_page_link, custom_headers:nil) + response = list_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2048,8 +2050,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_next_with_http_info(next_page_link, custom_headers = nil) - list_skus_next_async(next_page_link, custom_headers).value! + def list_skus_next_with_http_info(next_page_link, custom_headers:nil) + list_skus_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2063,11 +2065,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_next_async(next_page_link, custom_headers = nil) + def list_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2121,12 +2124,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [VirtualMachineScaleSetListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2144,12 +2147,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [VirtualMachineScaleSetListWithLinkResult] which provide lazy access # to pages of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2167,12 +2170,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [VirtualMachineScaleSetListSkusResult] which provide lazy access to # pages of the response. # - def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_skus_next_async(next_page_link, custom_headers) + list_skus_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_sizes.rb b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_sizes.rb index 42f111cd3..64dac9100 100644 --- a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_sizes.rb +++ b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_sizes.rb @@ -31,8 +31,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineSizeListResult] operation results. # - def list(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -68,6 +68,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machines.rb b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machines.rb index 686227334..af1f83d3c 100644 --- a/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machines.rb +++ b/management/azure_mgmt_compute/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machines.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineCaptureResult] operation results. # - def capture(resource_group_name, vm_name, parameters, custom_headers = nil) - response = capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def capture(resource_group_name, vm_name, parameters, custom_headers:nil) + response = capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,9 +50,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def capture_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def capture_async(resource_group_name, vm_name, parameters, custom_headers:nil) # Send request - promise = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers) + promise = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachine] operation results. # - def create_or_update(resource_group_name, vm_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,9 +96,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -124,8 +124,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_name, custom_headers).value! + def delete(resource_group_name, vm_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -138,9 +138,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_name, custom_headers = nil) + def delete_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -169,8 +169,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachine] operation results. # - def get(resource_group_name, vm_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_name, expand, custom_headers).value! + def get(resource_group_name, vm_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -187,8 +187,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value! end # @@ -204,7 +204,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -212,6 +212,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -267,8 +268,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_name, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_name, custom_headers).value! + def deallocate(resource_group_name, vm_name, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -281,9 +282,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_name, custom_headers = nil) + def deallocate_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_name, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -309,8 +310,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def generalize(resource_group_name, vm_name, custom_headers = nil) - response = generalize_async(resource_group_name, vm_name, custom_headers).value! + def generalize(resource_group_name, vm_name, custom_headers:nil) + response = generalize_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -324,8 +325,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generalize_with_http_info(resource_group_name, vm_name, custom_headers = nil) - generalize_async(resource_group_name, vm_name, custom_headers).value! + def generalize_with_http_info(resource_group_name, vm_name, custom_headers:nil) + generalize_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -338,7 +339,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generalize_async(resource_group_name, vm_name, custom_headers = nil) + def generalize_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -346,6 +347,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -400,8 +402,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -415,8 +417,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -429,13 +431,14 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -489,8 +492,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -503,8 +506,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -516,12 +519,13 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -577,8 +581,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineSizeListResult] operation results. # - def list_available_sizes(resource_group_name, vm_name, custom_headers = nil) - response = list_available_sizes_async(resource_group_name, vm_name, custom_headers).value! + def list_available_sizes(resource_group_name, vm_name, custom_headers:nil) + response = list_available_sizes_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -593,8 +597,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_sizes_with_http_info(resource_group_name, vm_name, custom_headers = nil) - list_available_sizes_async(resource_group_name, vm_name, custom_headers).value! + def list_available_sizes_with_http_info(resource_group_name, vm_name, custom_headers:nil) + list_available_sizes_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -608,7 +612,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_sizes_async(resource_group_name, vm_name, custom_headers = nil) + def list_available_sizes_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -616,6 +620,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -672,8 +677,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_name, custom_headers = nil) - response = power_off_async(resource_group_name, vm_name, custom_headers).value! + def power_off(resource_group_name, vm_name, custom_headers:nil) + response = power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -686,9 +691,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_name, custom_headers = nil) + def power_off_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_name, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -714,8 +719,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_name, custom_headers = nil) - response = restart_async(resource_group_name, vm_name, custom_headers).value! + def restart(resource_group_name, vm_name, custom_headers:nil) + response = restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -728,9 +733,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_name, custom_headers = nil) + def restart_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_name, custom_headers) + promise = begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -756,8 +761,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_name, custom_headers = nil) - response = start_async(resource_group_name, vm_name, custom_headers).value! + def start(resource_group_name, vm_name, custom_headers:nil) + response = start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -770,9 +775,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_name, custom_headers = nil) + def start_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_name, custom_headers) + promise = begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -798,8 +803,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def redeploy(resource_group_name, vm_name, custom_headers = nil) - response = redeploy_async(resource_group_name, vm_name, custom_headers).value! + def redeploy(resource_group_name, vm_name, custom_headers:nil) + response = redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -812,9 +817,9 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def redeploy_async(resource_group_name, vm_name, custom_headers = nil) + def redeploy_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_redeploy_async(resource_group_name, vm_name, custom_headers) + promise = begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -843,8 +848,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineCaptureResult] operation results. # - def begin_capture(resource_group_name, vm_name, parameters, custom_headers = nil) - response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_capture(resource_group_name, vm_name, parameters, custom_headers:nil) + response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -861,8 +866,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers = nil) - begin_capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil) + begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! end # @@ -878,7 +883,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_capture_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -887,7 +892,6 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -952,8 +956,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachine] operation results. # - def begin_create_or_update(resource_group_name, vm_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -969,8 +973,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! end # @@ -985,7 +989,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -994,7 +998,6 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1067,8 +1070,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_name, custom_headers).value! + def begin_delete(resource_group_name, vm_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1082,8 +1085,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1096,7 +1099,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1104,6 +1107,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1159,8 +1163,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_name, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_name, custom_headers).value! + def begin_deallocate(resource_group_name, vm_name, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1175,8 +1179,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_name, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1190,7 +1194,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_name, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1198,6 +1202,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1254,8 +1259,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_name, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_name, custom_headers).value! + def begin_power_off(resource_group_name, vm_name, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1271,8 +1276,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_name, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1287,7 +1292,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_name, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1295,6 +1300,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1349,8 +1355,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_name, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_name, custom_headers).value! + def begin_restart(resource_group_name, vm_name, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1364,8 +1370,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_restart_async(resource_group_name, vm_name, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1378,7 +1384,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_name, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1386,6 +1392,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1440,8 +1447,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_name, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_name, custom_headers).value! + def begin_start(resource_group_name, vm_name, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1455,8 +1462,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_start_async(resource_group_name, vm_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1469,7 +1476,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_name, custom_headers = nil) + def begin_start_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1477,6 +1484,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1531,8 +1539,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [OperationStatusResponse] operation results. # - def begin_redeploy(resource_group_name, vm_name, custom_headers = nil) - response = begin_redeploy_async(resource_group_name, vm_name, custom_headers).value! + def begin_redeploy(resource_group_name, vm_name, custom_headers:nil) + response = begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1546,8 +1554,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_redeploy_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_redeploy_async(resource_group_name, vm_name, custom_headers).value! + def begin_redeploy_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1560,7 +1568,7 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_redeploy_async(resource_group_name, vm_name, custom_headers = nil) + def begin_redeploy_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1568,6 +1576,7 @@ module Azure::Compute::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1623,8 +1632,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1639,8 +1648,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1654,11 +1663,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1713,8 +1723,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [VirtualMachineListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1729,8 +1739,8 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1744,11 +1754,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1803,12 +1814,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [VirtualMachineListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1824,12 +1835,12 @@ module Azure::Compute::Mgmt::V2015_06_15 # @return [VirtualMachineListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/availability_sets.rb b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/availability_sets.rb index 294f3f75d..14bdcaada 100644 --- a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/availability_sets.rb +++ b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/availability_sets.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [AvailabilitySet] operation results. # - def create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -75,7 +75,6 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -138,8 +137,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, availability_set_name, custom_headers = nil) - response = delete_async(resource_group_name, availability_set_name, custom_headers).value! + def delete(resource_group_name, availability_set_name, custom_headers:nil) + response = delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +152,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - delete_async(resource_group_name, availability_set_name, custom_headers).value! + def delete_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -167,7 +166,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, availability_set_name, custom_headers = nil) + def delete_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -175,6 +174,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -229,8 +229,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [AvailabilitySet] operation results. # - def get(resource_group_name, availability_set_name, custom_headers = nil) - response = get_async(resource_group_name, availability_set_name, custom_headers).value! + def get(resource_group_name, availability_set_name, custom_headers:nil) + response = get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -244,8 +244,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - get_async(resource_group_name, availability_set_name, custom_headers).value! + def get_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -258,7 +258,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, availability_set_name, custom_headers = nil) + def get_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -266,6 +266,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -319,8 +320,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [AvailabilitySetListResult] operation results. # - def list(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -333,8 +334,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -346,13 +347,14 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -408,8 +410,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineSizeListResult] operation results. # - def list_available_sizes(resource_group_name, availability_set_name, custom_headers = nil) - response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value! + def list_available_sizes(resource_group_name, availability_set_name, custom_headers:nil) + response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -424,8 +426,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value! + def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -439,7 +441,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers = nil) + def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -447,6 +449,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/usage_operations.rb b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/usage_operations.rb index 2abe5aa81..b713ca52b 100644 --- a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/usage_operations.rb +++ b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/usage_operations.rb @@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [ListUsagesResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -160,11 +161,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -220,12 +222,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [ListUsagesResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb index f4633fe49..d4b475fa8 100644 --- a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +++ b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineExtensionImage] operation results. # - def get(location, publisher_name, type, version, custom_headers = nil) - response = get_async(location, publisher_name, type, version, custom_headers).value! + def get(location, publisher_name, type, version, custom_headers:nil) + response = get_async(location, publisher_name, type, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, publisher_name, type, version, custom_headers = nil) - get_async(location, publisher_name, type, version, custom_headers).value! + def get_with_http_info(location, publisher_name, type, version, custom_headers:nil) + get_async(location, publisher_name, type, version, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, publisher_name, type, version, custom_headers = nil) + def get_async(location, publisher_name, type, version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'type is nil' if type.nil? @@ -76,6 +76,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -130,8 +131,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_types(location, publisher_name, custom_headers = nil) - response = list_types_async(location, publisher_name, custom_headers).value! + def list_types(location, publisher_name, custom_headers:nil) + response = list_types_async(location, publisher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_types_with_http_info(location, publisher_name, custom_headers = nil) - list_types_async(location, publisher_name, custom_headers).value! + def list_types_with_http_info(location, publisher_name, custom_headers:nil) + list_types_async(location, publisher_name, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_types_async(location, publisher_name, custom_headers = nil) + def list_types_async(location, publisher_name, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -167,6 +168,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +243,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_versions(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value! + def list_versions(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -260,8 +262,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_versions_with_http_info(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value! + def list_versions_with_http_info(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -278,7 +280,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_versions_async(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_versions_async(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'type is nil' if type.nil? @@ -287,6 +289,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb index 32b029734..8207d81df 100644 --- a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +++ b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb @@ -35,8 +35,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineExtension] operation results. # - def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,9 +53,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) + def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -130,8 +130,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineExtension] operation results. # - def get(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value! + def get(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +148,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value! end # @@ -165,7 +165,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -174,6 +174,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -232,8 +233,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineExtension] operation results. # - def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -251,8 +252,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! end # @@ -269,7 +270,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -279,7 +280,6 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -354,8 +354,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -371,8 +371,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! end # @@ -387,7 +387,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -396,6 +396,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb index 6824dc77f..f8eb86e35 100644 --- a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +++ b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineImage] operation results. # - def get(location, publisher_name, offer, skus, version, custom_headers = nil) - response = get_async(location, publisher_name, offer, skus, version, custom_headers).value! + def get(location, publisher_name, offer, skus, version, custom_headers:nil) + response = get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers = nil) - get_async(location, publisher_name, offer, skus, version, custom_headers).value! + def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers:nil) + get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, publisher_name, offer, skus, version, custom_headers = nil) + def get_async(location, publisher_name, offer, skus, version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -80,6 +80,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value! + def list(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -161,8 +162,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value! + def list_with_http_info(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -191,6 +192,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -262,8 +264,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_offers(location, publisher_name, custom_headers = nil) - response = list_offers_async(location, publisher_name, custom_headers).value! + def list_offers(location, publisher_name, custom_headers:nil) + response = list_offers_async(location, publisher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -278,8 +280,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_offers_with_http_info(location, publisher_name, custom_headers = nil) - list_offers_async(location, publisher_name, custom_headers).value! + def list_offers_with_http_info(location, publisher_name, custom_headers:nil) + list_offers_async(location, publisher_name, custom_headers:custom_headers).value! end # @@ -293,7 +295,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_offers_async(location, publisher_name, custom_headers = nil) + def list_offers_async(location, publisher_name, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -301,6 +303,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -371,8 +374,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_publishers(location, custom_headers = nil) - response = list_publishers_async(location, custom_headers).value! + def list_publishers(location, custom_headers:nil) + response = list_publishers_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -386,8 +389,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_publishers_with_http_info(location, custom_headers = nil) - list_publishers_async(location, custom_headers).value! + def list_publishers_with_http_info(location, custom_headers:nil) + list_publishers_async(location, custom_headers:custom_headers).value! end # @@ -400,13 +403,14 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_publishers_async(location, custom_headers = nil) + def list_publishers_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -479,8 +483,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_skus(location, publisher_name, offer, custom_headers = nil) - response = list_skus_async(location, publisher_name, offer, custom_headers).value! + def list_skus(location, publisher_name, offer, custom_headers:nil) + response = list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -496,8 +500,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(location, publisher_name, offer, custom_headers = nil) - list_skus_async(location, publisher_name, offer, custom_headers).value! + def list_skus_with_http_info(location, publisher_name, offer, custom_headers:nil) + list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value! end # @@ -512,7 +516,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(location, publisher_name, offer, custom_headers = nil) + def list_skus_async(location, publisher_name, offer, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -521,6 +525,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb index 115410d2e..9b36e5da2 100644 --- a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +++ b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,9 +48,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -95,9 +95,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -124,8 +124,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -139,9 +139,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -168,8 +168,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineScaleSetVM] operation results. # - def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,8 +184,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -199,7 +199,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -208,6 +208,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -263,8 +264,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineScaleSetVMInstanceView] operation results. # - def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -279,8 +280,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -294,7 +295,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -303,6 +304,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -360,8 +362,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers) + def list(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -378,8 +380,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value! end # @@ -395,7 +397,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) + def list_async(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -403,6 +405,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -460,8 +463,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -475,9 +478,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -504,8 +507,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -519,9 +522,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -548,8 +551,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -563,9 +566,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -593,8 +596,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -610,8 +613,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -626,7 +629,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -635,6 +638,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -693,8 +697,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -712,8 +716,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -730,7 +734,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -739,6 +743,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -794,8 +799,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -810,8 +815,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -825,7 +830,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -834,6 +839,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -891,8 +897,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -909,8 +915,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -926,7 +932,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -935,6 +941,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -990,8 +997,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1006,8 +1013,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1021,7 +1028,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1030,6 +1037,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1085,8 +1093,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1101,8 +1109,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1116,7 +1124,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1125,6 +1133,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1179,8 +1188,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineScaleSetVMListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1194,8 +1203,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1208,11 +1217,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1270,12 +1280,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [VirtualMachineScaleSetVMListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + response = list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb index 30ea9ec96..cce33a4d8 100644 --- a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +++ b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb @@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineScaleSet] operation results. # - def create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -47,9 +47,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,9 +89,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -117,8 +117,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineScaleSet] operation results. # - def get(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +132,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -146,7 +146,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -154,6 +154,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -212,8 +213,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -228,9 +229,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -258,8 +259,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -274,9 +275,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) # Send request - promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -302,8 +303,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineScaleSetInstanceView] operation results. # - def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -317,8 +318,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -331,7 +332,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -339,6 +340,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +394,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -406,8 +408,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -419,13 +421,14 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -481,8 +484,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -497,8 +500,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -512,12 +515,13 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -573,8 +577,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_skus(resource_group_name, vm_scale_set_name, custom_headers = nil) - first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers) + def list_skus(resource_group_name, vm_scale_set_name, custom_headers:nil) + first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -589,8 +593,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -604,7 +608,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -612,6 +616,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -670,8 +675,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -686,9 +691,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -716,8 +721,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -732,9 +737,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -762,8 +767,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -778,9 +783,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -809,8 +814,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -825,9 +830,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) # Send request - promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -854,8 +859,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def reimage(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def reimage(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -868,9 +873,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def reimage_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -897,8 +902,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineScaleSet] operation results. # - def begin_create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -913,8 +918,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -928,7 +933,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -937,7 +942,6 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1010,8 +1014,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1025,8 +1029,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -1039,7 +1043,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1047,6 +1051,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1105,8 +1110,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1124,8 +1129,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1142,7 +1147,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1150,7 +1155,6 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1215,8 +1219,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1232,8 +1236,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1248,7 +1252,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil? @@ -1257,7 +1261,6 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1324,8 +1327,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1343,8 +1346,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1361,7 +1364,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1369,7 +1372,6 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1434,8 +1436,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1451,8 +1453,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1467,7 +1469,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1475,7 +1477,6 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1540,8 +1541,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1557,8 +1558,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1573,7 +1574,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1581,7 +1582,6 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1647,8 +1647,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1665,8 +1665,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1682,7 +1682,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil? @@ -1691,7 +1691,6 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1755,8 +1754,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_reimage(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_reimage(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1771,8 +1770,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -1786,7 +1785,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1794,6 +1793,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1848,8 +1848,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineScaleSetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1863,8 +1863,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1877,11 +1877,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1938,8 +1939,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineScaleSetListWithLinkResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1956,8 +1957,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1973,11 +1974,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2032,8 +2034,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineScaleSetListSkusResult] operation results. # - def list_skus_next(next_page_link, custom_headers = nil) - response = list_skus_next_async(next_page_link, custom_headers).value! + def list_skus_next(next_page_link, custom_headers:nil) + response = list_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2048,8 +2050,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_next_with_http_info(next_page_link, custom_headers = nil) - list_skus_next_async(next_page_link, custom_headers).value! + def list_skus_next_with_http_info(next_page_link, custom_headers:nil) + list_skus_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2063,11 +2065,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_next_async(next_page_link, custom_headers = nil) + def list_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2121,12 +2124,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [VirtualMachineScaleSetListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2144,12 +2147,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [VirtualMachineScaleSetListWithLinkResult] which provide lazy access # to pages of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2167,12 +2170,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [VirtualMachineScaleSetListSkusResult] which provide lazy access to # pages of the response. # - def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_skus_next_async(next_page_link, custom_headers) + list_skus_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb index b637436d3..b1374bb23 100644 --- a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +++ b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb @@ -31,8 +31,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineSizeListResult] operation results. # - def list(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -68,6 +68,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb index db8b7cac7..f6d2ec821 100644 --- a/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb +++ b/management/azure_mgmt_compute/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineCaptureResult] operation results. # - def capture(resource_group_name, vm_name, parameters, custom_headers = nil) - response = capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def capture(resource_group_name, vm_name, parameters, custom_headers:nil) + response = capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,9 +50,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def capture_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def capture_async(resource_group_name, vm_name, parameters, custom_headers:nil) # Send request - promise = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers) + promise = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachine] operation results. # - def create_or_update(resource_group_name, vm_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,9 +96,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -124,8 +124,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_name, custom_headers).value! + def delete(resource_group_name, vm_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -138,9 +138,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_name, custom_headers = nil) + def delete_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -169,8 +169,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachine] operation results. # - def get(resource_group_name, vm_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_name, expand, custom_headers).value! + def get(resource_group_name, vm_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -187,8 +187,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value! end # @@ -204,7 +204,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -212,6 +212,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -267,8 +268,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_name, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_name, custom_headers).value! + def deallocate(resource_group_name, vm_name, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -281,9 +282,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_name, custom_headers = nil) + def deallocate_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_name, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -309,8 +310,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def generalize(resource_group_name, vm_name, custom_headers = nil) - response = generalize_async(resource_group_name, vm_name, custom_headers).value! + def generalize(resource_group_name, vm_name, custom_headers:nil) + response = generalize_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -324,8 +325,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generalize_with_http_info(resource_group_name, vm_name, custom_headers = nil) - generalize_async(resource_group_name, vm_name, custom_headers).value! + def generalize_with_http_info(resource_group_name, vm_name, custom_headers:nil) + generalize_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -338,7 +339,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generalize_async(resource_group_name, vm_name, custom_headers = nil) + def generalize_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -346,6 +347,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -400,8 +402,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -415,8 +417,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -429,13 +431,14 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -489,8 +492,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -503,8 +506,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -516,12 +519,13 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -577,8 +581,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineSizeListResult] operation results. # - def list_available_sizes(resource_group_name, vm_name, custom_headers = nil) - response = list_available_sizes_async(resource_group_name, vm_name, custom_headers).value! + def list_available_sizes(resource_group_name, vm_name, custom_headers:nil) + response = list_available_sizes_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -593,8 +597,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_sizes_with_http_info(resource_group_name, vm_name, custom_headers = nil) - list_available_sizes_async(resource_group_name, vm_name, custom_headers).value! + def list_available_sizes_with_http_info(resource_group_name, vm_name, custom_headers:nil) + list_available_sizes_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -608,7 +612,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_sizes_async(resource_group_name, vm_name, custom_headers = nil) + def list_available_sizes_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -616,6 +620,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -672,8 +677,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_name, custom_headers = nil) - response = power_off_async(resource_group_name, vm_name, custom_headers).value! + def power_off(resource_group_name, vm_name, custom_headers:nil) + response = power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -686,9 +691,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_name, custom_headers = nil) + def power_off_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_name, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -714,8 +719,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_name, custom_headers = nil) - response = restart_async(resource_group_name, vm_name, custom_headers).value! + def restart(resource_group_name, vm_name, custom_headers:nil) + response = restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -728,9 +733,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_name, custom_headers = nil) + def restart_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_name, custom_headers) + promise = begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -756,8 +761,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_name, custom_headers = nil) - response = start_async(resource_group_name, vm_name, custom_headers).value! + def start(resource_group_name, vm_name, custom_headers:nil) + response = start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -770,9 +775,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_name, custom_headers = nil) + def start_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_name, custom_headers) + promise = begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -798,8 +803,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def redeploy(resource_group_name, vm_name, custom_headers = nil) - response = redeploy_async(resource_group_name, vm_name, custom_headers).value! + def redeploy(resource_group_name, vm_name, custom_headers:nil) + response = redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -812,9 +817,9 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def redeploy_async(resource_group_name, vm_name, custom_headers = nil) + def redeploy_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_redeploy_async(resource_group_name, vm_name, custom_headers) + promise = begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -843,8 +848,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineCaptureResult] operation results. # - def begin_capture(resource_group_name, vm_name, parameters, custom_headers = nil) - response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_capture(resource_group_name, vm_name, parameters, custom_headers:nil) + response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -861,8 +866,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers = nil) - begin_capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil) + begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! end # @@ -878,7 +883,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_capture_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -887,7 +892,6 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -952,8 +956,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachine] operation results. # - def begin_create_or_update(resource_group_name, vm_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -969,8 +973,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! end # @@ -985,7 +989,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -994,7 +998,6 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1067,8 +1070,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_name, custom_headers).value! + def begin_delete(resource_group_name, vm_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1082,8 +1085,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1096,7 +1099,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1104,6 +1107,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1159,8 +1163,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_name, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_name, custom_headers).value! + def begin_deallocate(resource_group_name, vm_name, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1175,8 +1179,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_name, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1190,7 +1194,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_name, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1198,6 +1202,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1254,8 +1259,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_name, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_name, custom_headers).value! + def begin_power_off(resource_group_name, vm_name, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1271,8 +1276,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_name, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1287,7 +1292,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_name, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1295,6 +1300,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1349,8 +1355,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_name, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_name, custom_headers).value! + def begin_restart(resource_group_name, vm_name, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1364,8 +1370,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_restart_async(resource_group_name, vm_name, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1378,7 +1384,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_name, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1386,6 +1392,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1440,8 +1447,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_name, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_name, custom_headers).value! + def begin_start(resource_group_name, vm_name, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1455,8 +1462,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_start_async(resource_group_name, vm_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1469,7 +1476,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_name, custom_headers = nil) + def begin_start_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1477,6 +1484,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1531,8 +1539,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_redeploy(resource_group_name, vm_name, custom_headers = nil) - response = begin_redeploy_async(resource_group_name, vm_name, custom_headers).value! + def begin_redeploy(resource_group_name, vm_name, custom_headers:nil) + response = begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1546,8 +1554,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_redeploy_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_redeploy_async(resource_group_name, vm_name, custom_headers).value! + def begin_redeploy_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1560,7 +1568,7 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_redeploy_async(resource_group_name, vm_name, custom_headers = nil) + def begin_redeploy_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1568,6 +1576,7 @@ module Azure::Compute::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1623,8 +1632,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1639,8 +1648,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1654,11 +1663,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1713,8 +1723,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [VirtualMachineListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1729,8 +1739,8 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1744,11 +1754,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1803,12 +1814,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [VirtualMachineListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1824,12 +1835,12 @@ module Azure::Compute::Mgmt::V2016_03_30 # @return [VirtualMachineListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb index dee94c9a4..8eb4ce9bf 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [AvailabilitySet] operation results. # - def create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -75,7 +75,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -138,8 +137,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, availability_set_name, custom_headers = nil) - response = delete_async(resource_group_name, availability_set_name, custom_headers).value! + def delete(resource_group_name, availability_set_name, custom_headers:nil) + response = delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +152,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - delete_async(resource_group_name, availability_set_name, custom_headers).value! + def delete_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -167,7 +166,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, availability_set_name, custom_headers = nil) + def delete_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -175,6 +174,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -229,8 +229,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [AvailabilitySet] operation results. # - def get(resource_group_name, availability_set_name, custom_headers = nil) - response = get_async(resource_group_name, availability_set_name, custom_headers).value! + def get(resource_group_name, availability_set_name, custom_headers:nil) + response = get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -244,8 +244,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - get_async(resource_group_name, availability_set_name, custom_headers).value! + def get_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -258,7 +258,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, availability_set_name, custom_headers = nil) + def get_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -266,6 +266,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -319,8 +320,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [AvailabilitySetListResult] operation results. # - def list(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -333,8 +334,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -346,13 +347,14 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -408,8 +410,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineSizeListResult] operation results. # - def list_available_sizes(resource_group_name, availability_set_name, custom_headers = nil) - response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value! + def list_available_sizes(resource_group_name, availability_set_name, custom_headers:nil) + response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -424,8 +426,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value! + def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -439,7 +441,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers = nil) + def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -447,6 +449,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/disks.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/disks.rb index f72631191..1707d16b8 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/disks.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/disks.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Disk] operation results. # - def create_or_update(resource_group_name, disk_name, disk, custom_headers = nil) - response = create_or_update_async(resource_group_name, disk_name, disk, custom_headers).value! + def create_or_update(resource_group_name, disk_name, disk, custom_headers:nil) + response = create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, disk_name, disk, custom_headers = nil) + def create_or_update_async(resource_group_name, disk_name, disk, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers) + promise = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -82,8 +82,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Disk] operation results. # - def update(resource_group_name, disk_name, disk, custom_headers = nil) - response = update_async(resource_group_name, disk_name, disk, custom_headers).value! + def update(resource_group_name, disk_name, disk, custom_headers:nil) + response = update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, disk_name, disk, custom_headers = nil) + def update_async(resource_group_name, disk_name, disk, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, disk_name, disk, custom_headers) + promise = begin_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -128,8 +128,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Disk] operation results. # - def get(resource_group_name, disk_name, custom_headers = nil) - response = get_async(resource_group_name, disk_name, custom_headers).value! + def get(resource_group_name, disk_name, custom_headers:nil) + response = get_async(resource_group_name, disk_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +144,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, disk_name, custom_headers = nil) - get_async(resource_group_name, disk_name, custom_headers).value! + def get_with_http_info(resource_group_name, disk_name, custom_headers:nil) + get_async(resource_group_name, disk_name, custom_headers:custom_headers).value! end # @@ -159,7 +159,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, disk_name, custom_headers = nil) + def get_async(resource_group_name, disk_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -167,6 +167,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +223,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, disk_name, custom_headers = nil) - response = delete_async(resource_group_name, disk_name, custom_headers).value! + def delete(resource_group_name, disk_name, custom_headers:nil) + response = delete_async(resource_group_name, disk_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -237,9 +238,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, disk_name, custom_headers = nil) + def delete_async(resource_group_name, disk_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, disk_name, custom_headers) + promise = begin_delete_async(resource_group_name, disk_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -264,8 +265,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -278,8 +279,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -291,13 +292,14 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -350,8 +352,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -363,8 +365,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -375,12 +377,13 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -438,8 +441,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [AccessUri] operation results. # - def grant_access(resource_group_name, disk_name, grant_access_data, custom_headers = nil) - response = grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers).value! + def grant_access(resource_group_name, disk_name, grant_access_data, custom_headers:nil) + response = grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -455,9 +458,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers = nil) + def grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:nil) # Send request - promise = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers) + promise = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -484,8 +487,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def revoke_access(resource_group_name, disk_name, custom_headers = nil) - response = revoke_access_async(resource_group_name, disk_name, custom_headers).value! + def revoke_access(resource_group_name, disk_name, custom_headers:nil) + response = revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -499,9 +502,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def revoke_access_async(resource_group_name, disk_name, custom_headers = nil) + def revoke_access_async(resource_group_name, disk_name, custom_headers:nil) # Send request - promise = begin_revoke_access_async(resource_group_name, disk_name, custom_headers) + promise = begin_revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -530,8 +533,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Disk] operation results. # - def begin_create_or_update(resource_group_name, disk_name, disk, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers).value! + def begin_create_or_update(resource_group_name, disk_name, disk, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -548,8 +551,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, disk_name, disk, custom_headers = nil) - begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, disk_name, disk, custom_headers:nil) + begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! end # @@ -565,7 +568,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -574,7 +577,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -650,8 +652,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Disk] operation results. # - def begin_update(resource_group_name, disk_name, disk, custom_headers = nil) - response = begin_update_async(resource_group_name, disk_name, disk, custom_headers).value! + def begin_update(resource_group_name, disk_name, disk, custom_headers:nil) + response = begin_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -668,8 +670,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, disk_name, disk, custom_headers = nil) - begin_update_async(resource_group_name, disk_name, disk, custom_headers).value! + def begin_update_with_http_info(resource_group_name, disk_name, disk, custom_headers:nil) + begin_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! end # @@ -685,7 +687,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, disk_name, disk, custom_headers = nil) + def begin_update_async(resource_group_name, disk_name, disk, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -694,7 +696,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -768,8 +769,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, disk_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, disk_name, custom_headers).value! + def begin_delete(resource_group_name, disk_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, disk_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -784,8 +785,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, disk_name, custom_headers = nil) - begin_delete_async(resource_group_name, disk_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, disk_name, custom_headers:nil) + begin_delete_async(resource_group_name, disk_name, custom_headers:custom_headers).value! end # @@ -799,7 +800,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, disk_name, custom_headers = nil) + def begin_delete_async(resource_group_name, disk_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -807,6 +808,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -864,8 +866,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [AccessUri] operation results. # - def begin_grant_access(resource_group_name, disk_name, grant_access_data, custom_headers = nil) - response = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers).value! + def begin_grant_access(resource_group_name, disk_name, grant_access_data, custom_headers:nil) + response = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -882,8 +884,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_grant_access_with_http_info(resource_group_name, disk_name, grant_access_data, custom_headers = nil) - begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers).value! + def begin_grant_access_with_http_info(resource_group_name, disk_name, grant_access_data, custom_headers:nil) + begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers).value! end # @@ -899,7 +901,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers = nil) + def begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -908,7 +910,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -972,8 +973,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_revoke_access(resource_group_name, disk_name, custom_headers = nil) - response = begin_revoke_access_async(resource_group_name, disk_name, custom_headers).value! + def begin_revoke_access(resource_group_name, disk_name, custom_headers:nil) + response = begin_revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -988,8 +989,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_revoke_access_with_http_info(resource_group_name, disk_name, custom_headers = nil) - begin_revoke_access_async(resource_group_name, disk_name, custom_headers).value! + def begin_revoke_access_with_http_info(resource_group_name, disk_name, custom_headers:nil) + begin_revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers).value! end # @@ -1003,7 +1004,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_revoke_access_async(resource_group_name, disk_name, custom_headers = nil) + def begin_revoke_access_async(resource_group_name, disk_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -1011,6 +1012,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1065,8 +1067,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [DiskList] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1080,8 +1082,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1094,11 +1096,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1152,8 +1155,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [DiskList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1167,8 +1170,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1181,11 +1184,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1238,12 +1242,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [DiskList] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1257,12 +1261,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [DiskList] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/images.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/images.rb index 2b6842a9c..9a4bb3712 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/images.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/images.rb @@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Image] operation results. # - def create_or_update(resource_group_name, image_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, image_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -47,9 +47,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, image_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, image_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, image_name, custom_headers = nil) - response = delete_async(resource_group_name, image_name, custom_headers).value! + def delete(resource_group_name, image_name, custom_headers:nil) + response = delete_async(resource_group_name, image_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,9 +89,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, image_name, custom_headers = nil) + def delete_async(resource_group_name, image_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, image_name, custom_headers) + promise = begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -118,8 +118,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Image] operation results. # - def get(resource_group_name, image_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, image_name, expand, custom_headers).value! + def get(resource_group_name, image_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, image_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +134,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, image_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, image_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, image_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, image_name, expand:expand, custom_headers:custom_headers).value! end # @@ -149,7 +149,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, image_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, image_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'image_name is nil' if image_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -157,6 +157,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -210,8 +211,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -224,8 +225,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -237,13 +238,14 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -313,8 +315,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -327,12 +329,13 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -388,8 +391,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Image] operation results. # - def begin_create_or_update(resource_group_name, image_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, image_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -404,8 +407,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, image_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, image_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value! end # @@ -419,7 +422,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'image_name is nil' if image_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -428,7 +431,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -501,8 +503,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, image_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, image_name, custom_headers).value! + def begin_delete(resource_group_name, image_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -516,8 +518,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, image_name, custom_headers = nil) - begin_delete_async(resource_group_name, image_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, image_name, custom_headers:nil) + begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers).value! end # @@ -530,7 +532,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, image_name, custom_headers = nil) + def begin_delete_async(resource_group_name, image_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'image_name is nil' if image_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -538,6 +540,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -592,8 +595,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [ImageListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -607,8 +610,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -621,11 +624,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -681,8 +685,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [ImageListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -698,8 +702,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -714,11 +718,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -771,12 +776,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [ImageListResult] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -792,12 +797,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [ImageListResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/snapshots.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/snapshots.rb index 57641508a..ce2edfcee 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/snapshots.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/snapshots.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Snapshot] operation results. # - def create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - response = create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + response = create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil) + def create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers) + promise = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -82,8 +82,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Snapshot] operation results. # - def update(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - response = update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def update(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + response = update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil) + def update_async(resource_group_name, snapshot_name, snapshot, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers) + promise = begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -128,8 +128,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Snapshot] operation results. # - def get(resource_group_name, snapshot_name, custom_headers = nil) - response = get_async(resource_group_name, snapshot_name, custom_headers).value! + def get(resource_group_name, snapshot_name, custom_headers:nil) + response = get_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +144,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, snapshot_name, custom_headers = nil) - get_async(resource_group_name, snapshot_name, custom_headers).value! + def get_with_http_info(resource_group_name, snapshot_name, custom_headers:nil) + get_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! end # @@ -159,7 +159,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, snapshot_name, custom_headers = nil) + def get_async(resource_group_name, snapshot_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -167,6 +167,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +223,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, snapshot_name, custom_headers = nil) - response = delete_async(resource_group_name, snapshot_name, custom_headers).value! + def delete(resource_group_name, snapshot_name, custom_headers:nil) + response = delete_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -237,9 +238,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, snapshot_name, custom_headers = nil) + def delete_async(resource_group_name, snapshot_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, snapshot_name, custom_headers) + promise = begin_delete_async(resource_group_name, snapshot_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -264,8 +265,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -278,8 +279,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -291,13 +292,14 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -350,8 +352,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -363,8 +365,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -375,12 +377,13 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -438,8 +441,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [AccessUri] operation results. # - def grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil) - response = grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value! + def grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil) + response = grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -455,9 +458,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil) + def grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil) # Send request - promise = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers) + promise = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -484,8 +487,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def revoke_access(resource_group_name, snapshot_name, custom_headers = nil) - response = revoke_access_async(resource_group_name, snapshot_name, custom_headers).value! + def revoke_access(resource_group_name, snapshot_name, custom_headers:nil) + response = revoke_access_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -499,9 +502,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def revoke_access_async(resource_group_name, snapshot_name, custom_headers = nil) + def revoke_access_async(resource_group_name, snapshot_name, custom_headers:nil) # Send request - promise = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers) + promise = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -530,8 +533,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Snapshot] operation results. # - def begin_create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def begin_create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -548,8 +551,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! end # @@ -565,7 +568,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -574,7 +577,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -650,8 +652,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Snapshot] operation results. # - def begin_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - response = begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def begin_update(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + response = begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -668,8 +670,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def begin_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! end # @@ -685,7 +687,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil) + def begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -694,7 +696,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -768,8 +769,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, snapshot_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, snapshot_name, custom_headers).value! + def begin_delete(resource_group_name, snapshot_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -784,8 +785,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, snapshot_name, custom_headers = nil) - begin_delete_async(resource_group_name, snapshot_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, snapshot_name, custom_headers:nil) + begin_delete_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! end # @@ -799,7 +800,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, snapshot_name, custom_headers = nil) + def begin_delete_async(resource_group_name, snapshot_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -807,6 +808,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -864,8 +866,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [AccessUri] operation results. # - def begin_grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil) - response = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value! + def begin_grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil) + response = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -882,8 +884,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_grant_access_with_http_info(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil) - begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value! + def begin_grant_access_with_http_info(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil) + begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:custom_headers).value! end # @@ -899,7 +901,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil) + def begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -908,7 +910,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -972,8 +973,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_revoke_access(resource_group_name, snapshot_name, custom_headers = nil) - response = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers).value! + def begin_revoke_access(resource_group_name, snapshot_name, custom_headers:nil) + response = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -988,8 +989,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_revoke_access_with_http_info(resource_group_name, snapshot_name, custom_headers = nil) - begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers).value! + def begin_revoke_access_with_http_info(resource_group_name, snapshot_name, custom_headers:nil) + begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! end # @@ -1003,7 +1004,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers = nil) + def begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -1011,6 +1012,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1065,8 +1067,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [SnapshotList] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1080,8 +1082,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1094,11 +1096,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1152,8 +1155,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [SnapshotList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1167,8 +1170,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1181,11 +1184,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1238,12 +1242,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [SnapshotList] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1257,12 +1261,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [SnapshotList] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb index e96a47de5..f8d32a8fa 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb @@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [ListUsagesResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -160,11 +161,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -220,12 +222,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [ListUsagesResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb index e47613215..67c99ff88 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineExtensionImage] operation results. # - def get(location, publisher_name, type, version, custom_headers = nil) - response = get_async(location, publisher_name, type, version, custom_headers).value! + def get(location, publisher_name, type, version, custom_headers:nil) + response = get_async(location, publisher_name, type, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, publisher_name, type, version, custom_headers = nil) - get_async(location, publisher_name, type, version, custom_headers).value! + def get_with_http_info(location, publisher_name, type, version, custom_headers:nil) + get_async(location, publisher_name, type, version, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, publisher_name, type, version, custom_headers = nil) + def get_async(location, publisher_name, type, version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'type is nil' if type.nil? @@ -76,6 +76,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -130,8 +131,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list_types(location, publisher_name, custom_headers = nil) - response = list_types_async(location, publisher_name, custom_headers).value! + def list_types(location, publisher_name, custom_headers:nil) + response = list_types_async(location, publisher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_types_with_http_info(location, publisher_name, custom_headers = nil) - list_types_async(location, publisher_name, custom_headers).value! + def list_types_with_http_info(location, publisher_name, custom_headers:nil) + list_types_async(location, publisher_name, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_types_async(location, publisher_name, custom_headers = nil) + def list_types_async(location, publisher_name, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -167,6 +168,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +243,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list_versions(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value! + def list_versions(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -260,8 +262,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_versions_with_http_info(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value! + def list_versions_with_http_info(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -278,7 +280,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_versions_async(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_versions_async(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'type is nil' if type.nil? @@ -287,6 +289,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb index ec72a7e8d..659c9c0e3 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb @@ -35,8 +35,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineExtension] operation results. # - def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,9 +53,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) + def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -130,8 +130,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineExtension] operation results. # - def get(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value! + def get(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +148,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value! end # @@ -165,7 +165,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -174,6 +174,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -232,8 +233,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineExtension] operation results. # - def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -251,8 +252,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! end # @@ -269,7 +270,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -279,7 +280,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -354,8 +354,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -371,8 +371,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! end # @@ -387,7 +387,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -396,6 +396,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb index d8978fefc..1b9c9f750 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineImage] operation results. # - def get(location, publisher_name, offer, skus, version, custom_headers = nil) - response = get_async(location, publisher_name, offer, skus, version, custom_headers).value! + def get(location, publisher_name, offer, skus, version, custom_headers:nil) + response = get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers = nil) - get_async(location, publisher_name, offer, skus, version, custom_headers).value! + def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers:nil) + get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, publisher_name, offer, skus, version, custom_headers = nil) + def get_async(location, publisher_name, offer, skus, version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -80,6 +80,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value! + def list(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -161,8 +162,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value! + def list_with_http_info(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -191,6 +192,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -262,8 +264,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list_offers(location, publisher_name, custom_headers = nil) - response = list_offers_async(location, publisher_name, custom_headers).value! + def list_offers(location, publisher_name, custom_headers:nil) + response = list_offers_async(location, publisher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -278,8 +280,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_offers_with_http_info(location, publisher_name, custom_headers = nil) - list_offers_async(location, publisher_name, custom_headers).value! + def list_offers_with_http_info(location, publisher_name, custom_headers:nil) + list_offers_async(location, publisher_name, custom_headers:custom_headers).value! end # @@ -293,7 +295,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_offers_async(location, publisher_name, custom_headers = nil) + def list_offers_async(location, publisher_name, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -301,6 +303,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -371,8 +374,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list_publishers(location, custom_headers = nil) - response = list_publishers_async(location, custom_headers).value! + def list_publishers(location, custom_headers:nil) + response = list_publishers_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -386,8 +389,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_publishers_with_http_info(location, custom_headers = nil) - list_publishers_async(location, custom_headers).value! + def list_publishers_with_http_info(location, custom_headers:nil) + list_publishers_async(location, custom_headers:custom_headers).value! end # @@ -400,13 +403,14 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_publishers_async(location, custom_headers = nil) + def list_publishers_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -479,8 +483,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list_skus(location, publisher_name, offer, custom_headers = nil) - response = list_skus_async(location, publisher_name, offer, custom_headers).value! + def list_skus(location, publisher_name, offer, custom_headers:nil) + response = list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -496,8 +500,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(location, publisher_name, offer, custom_headers = nil) - list_skus_async(location, publisher_name, offer, custom_headers).value! + def list_skus_with_http_info(location, publisher_name, offer, custom_headers:nil) + list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value! end # @@ -512,7 +516,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(location, publisher_name, offer, custom_headers = nil) + def list_skus_async(location, publisher_name, offer, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -521,6 +525,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb index a2d275807..90e0e5e60 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,9 +48,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -78,8 +78,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -93,9 +93,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -125,8 +125,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -140,9 +140,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -169,8 +169,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +184,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -213,8 +213,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineScaleSetVM] operation results. # - def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -229,8 +229,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -244,7 +244,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -253,6 +253,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +309,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineScaleSetVMInstanceView] operation results. # - def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -324,8 +325,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -339,7 +340,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -348,6 +349,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -405,8 +407,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers) + def list(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -423,8 +425,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value! end # @@ -440,7 +442,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) + def list_async(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -448,6 +450,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -505,8 +508,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -520,9 +523,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -549,8 +552,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -564,9 +567,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -593,8 +596,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -608,9 +611,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -638,8 +641,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -655,8 +658,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -671,7 +674,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -680,6 +683,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -736,8 +740,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -753,8 +757,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -769,7 +773,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -778,6 +782,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -836,8 +841,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -855,8 +860,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -873,7 +878,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -882,6 +887,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -937,8 +943,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -953,8 +959,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -968,7 +974,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -977,6 +983,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1034,8 +1041,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1052,8 +1059,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1069,7 +1076,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1078,6 +1085,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1133,8 +1141,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1149,8 +1157,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1164,7 +1172,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1173,6 +1181,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1228,8 +1237,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1244,8 +1253,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1259,7 +1268,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1268,6 +1277,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1322,8 +1332,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineScaleSetVMListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1337,8 +1347,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1351,11 +1361,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1413,12 +1424,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [VirtualMachineScaleSetVMListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + response = list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb index 4da90001a..f4a6dc93b 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb @@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineScaleSet] operation results. # - def create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -47,9 +47,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,9 +89,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -117,8 +117,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineScaleSet] operation results. # - def get(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +132,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -146,7 +146,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -154,6 +154,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -212,8 +213,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -228,9 +229,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -258,8 +259,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -274,9 +275,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) # Send request - promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -302,8 +303,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineScaleSetInstanceView] operation results. # - def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -317,8 +318,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -331,7 +332,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -339,6 +340,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +394,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -406,8 +408,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -419,13 +421,14 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -481,8 +484,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -497,8 +500,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -512,12 +515,13 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -573,8 +577,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list_skus(resource_group_name, vm_scale_set_name, custom_headers = nil) - first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers) + def list_skus(resource_group_name, vm_scale_set_name, custom_headers:nil) + first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -589,8 +593,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -604,7 +608,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -612,6 +616,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -670,8 +675,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -686,9 +691,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -716,8 +721,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -732,9 +737,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -762,8 +767,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -778,9 +783,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -809,8 +814,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -825,9 +830,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) # Send request - promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -854,8 +859,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def reimage(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def reimage(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -868,9 +873,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def reimage_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -897,8 +902,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def reimage_all(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def reimage_all(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -911,9 +916,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -940,8 +945,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineScaleSet] operation results. # - def begin_create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -956,8 +961,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -971,7 +976,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -980,7 +985,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1053,8 +1057,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1068,8 +1072,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -1082,7 +1086,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1090,6 +1094,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1148,8 +1153,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1167,8 +1172,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1185,7 +1190,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1193,7 +1198,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1258,8 +1262,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1275,8 +1279,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1291,7 +1295,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil? @@ -1300,7 +1304,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1367,8 +1370,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1386,8 +1389,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1404,7 +1407,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1412,7 +1415,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1477,8 +1479,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1494,8 +1496,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1510,7 +1512,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1518,7 +1520,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1583,8 +1584,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1600,8 +1601,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1616,7 +1617,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1624,7 +1625,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1690,8 +1690,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1708,8 +1708,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1725,7 +1725,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil? @@ -1734,7 +1734,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1798,8 +1797,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_reimage(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_reimage(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1814,8 +1813,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -1829,7 +1828,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1837,6 +1836,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1892,8 +1892,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_reimage_all(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_reimage_all(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1908,8 +1908,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -1923,7 +1923,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_reimage_all_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1931,6 +1931,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1985,8 +1986,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineScaleSetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2000,8 +2001,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2014,11 +2015,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2075,8 +2077,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineScaleSetListWithLinkResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2093,8 +2095,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2110,11 +2112,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2169,8 +2172,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineScaleSetListSkusResult] operation results. # - def list_skus_next(next_page_link, custom_headers = nil) - response = list_skus_next_async(next_page_link, custom_headers).value! + def list_skus_next(next_page_link, custom_headers:nil) + response = list_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2185,8 +2188,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_next_with_http_info(next_page_link, custom_headers = nil) - list_skus_next_async(next_page_link, custom_headers).value! + def list_skus_next_with_http_info(next_page_link, custom_headers:nil) + list_skus_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2200,11 +2203,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_next_async(next_page_link, custom_headers = nil) + def list_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2258,12 +2262,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [VirtualMachineScaleSetListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2281,12 +2285,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [VirtualMachineScaleSetListWithLinkResult] which provide lazy access # to pages of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2304,12 +2308,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [VirtualMachineScaleSetListSkusResult] which provide lazy access to # pages of the response. # - def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_skus_next_async(next_page_link, custom_headers) + list_skus_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb index 480e6481e..5cfd83a80 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb @@ -31,8 +31,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineSizeListResult] operation results. # - def list(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -68,6 +68,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb index 42d035adb..9346d1f4e 100644 --- a/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb +++ b/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineCaptureResult] operation results. # - def capture(resource_group_name, vm_name, parameters, custom_headers = nil) - response = capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def capture(resource_group_name, vm_name, parameters, custom_headers:nil) + response = capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,9 +50,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def capture_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def capture_async(resource_group_name, vm_name, parameters, custom_headers:nil) # Send request - promise = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers) + promise = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachine] operation results. # - def create_or_update(resource_group_name, vm_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,9 +96,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -124,8 +124,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_name, custom_headers).value! + def delete(resource_group_name, vm_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -138,9 +138,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_name, custom_headers = nil) + def delete_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -169,8 +169,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachine] operation results. # - def get(resource_group_name, vm_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_name, expand, custom_headers).value! + def get(resource_group_name, vm_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -187,8 +187,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value! end # @@ -204,7 +204,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -212,6 +212,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -267,8 +268,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def convert_to_managed_disks(resource_group_name, vm_name, custom_headers = nil) - response = convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers).value! + def convert_to_managed_disks(resource_group_name, vm_name, custom_headers:nil) + response = convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -281,9 +282,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers = nil) + def convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers) + promise = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -310,8 +311,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_name, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_name, custom_headers).value! + def deallocate(resource_group_name, vm_name, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -324,9 +325,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_name, custom_headers = nil) + def deallocate_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_name, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -352,8 +353,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def generalize(resource_group_name, vm_name, custom_headers = nil) - response = generalize_async(resource_group_name, vm_name, custom_headers).value! + def generalize(resource_group_name, vm_name, custom_headers:nil) + response = generalize_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -367,8 +368,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generalize_with_http_info(resource_group_name, vm_name, custom_headers = nil) - generalize_async(resource_group_name, vm_name, custom_headers).value! + def generalize_with_http_info(resource_group_name, vm_name, custom_headers:nil) + generalize_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -381,7 +382,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generalize_async(resource_group_name, vm_name, custom_headers = nil) + def generalize_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -389,6 +390,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -443,8 +445,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -458,8 +460,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -472,13 +474,14 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -532,8 +535,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -546,8 +549,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -559,12 +562,13 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -620,8 +624,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineSizeListResult] operation results. # - def list_available_sizes(resource_group_name, vm_name, custom_headers = nil) - response = list_available_sizes_async(resource_group_name, vm_name, custom_headers).value! + def list_available_sizes(resource_group_name, vm_name, custom_headers:nil) + response = list_available_sizes_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -636,8 +640,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_sizes_with_http_info(resource_group_name, vm_name, custom_headers = nil) - list_available_sizes_async(resource_group_name, vm_name, custom_headers).value! + def list_available_sizes_with_http_info(resource_group_name, vm_name, custom_headers:nil) + list_available_sizes_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -651,7 +655,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_sizes_async(resource_group_name, vm_name, custom_headers = nil) + def list_available_sizes_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -659,6 +663,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -715,8 +720,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_name, custom_headers = nil) - response = power_off_async(resource_group_name, vm_name, custom_headers).value! + def power_off(resource_group_name, vm_name, custom_headers:nil) + response = power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -729,9 +734,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_name, custom_headers = nil) + def power_off_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_name, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -757,8 +762,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_name, custom_headers = nil) - response = restart_async(resource_group_name, vm_name, custom_headers).value! + def restart(resource_group_name, vm_name, custom_headers:nil) + response = restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -771,9 +776,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_name, custom_headers = nil) + def restart_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_name, custom_headers) + promise = begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -799,8 +804,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_name, custom_headers = nil) - response = start_async(resource_group_name, vm_name, custom_headers).value! + def start(resource_group_name, vm_name, custom_headers:nil) + response = start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -813,9 +818,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_name, custom_headers = nil) + def start_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_name, custom_headers) + promise = begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -841,8 +846,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def redeploy(resource_group_name, vm_name, custom_headers = nil) - response = redeploy_async(resource_group_name, vm_name, custom_headers).value! + def redeploy(resource_group_name, vm_name, custom_headers:nil) + response = redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -855,9 +860,9 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def redeploy_async(resource_group_name, vm_name, custom_headers = nil) + def redeploy_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_redeploy_async(resource_group_name, vm_name, custom_headers) + promise = begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -886,8 +891,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineCaptureResult] operation results. # - def begin_capture(resource_group_name, vm_name, parameters, custom_headers = nil) - response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_capture(resource_group_name, vm_name, parameters, custom_headers:nil) + response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -904,8 +909,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers = nil) - begin_capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil) + begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! end # @@ -921,7 +926,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_capture_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -930,7 +935,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -995,8 +999,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachine] operation results. # - def begin_create_or_update(resource_group_name, vm_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1012,8 +1016,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! end # @@ -1028,7 +1032,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1037,7 +1041,6 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1110,8 +1113,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_name, custom_headers).value! + def begin_delete(resource_group_name, vm_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1125,8 +1128,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1139,7 +1142,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1147,6 +1150,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1202,8 +1206,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_convert_to_managed_disks(resource_group_name, vm_name, custom_headers = nil) - response = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers).value! + def begin_convert_to_managed_disks(resource_group_name, vm_name, custom_headers:nil) + response = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1218,8 +1222,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_convert_to_managed_disks_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers).value! + def begin_convert_to_managed_disks_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1233,7 +1237,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers = nil) + def begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1241,6 +1245,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1296,8 +1301,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_name, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_name, custom_headers).value! + def begin_deallocate(resource_group_name, vm_name, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1312,8 +1317,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_name, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1327,7 +1332,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_name, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1335,6 +1340,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1391,8 +1397,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_name, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_name, custom_headers).value! + def begin_power_off(resource_group_name, vm_name, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1408,8 +1414,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_name, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1424,7 +1430,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_name, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1432,6 +1438,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1486,8 +1493,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_name, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_name, custom_headers).value! + def begin_restart(resource_group_name, vm_name, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1501,8 +1508,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_restart_async(resource_group_name, vm_name, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1515,7 +1522,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_name, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1523,6 +1530,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1577,8 +1585,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_name, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_name, custom_headers).value! + def begin_start(resource_group_name, vm_name, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1592,8 +1600,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_start_async(resource_group_name, vm_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1606,7 +1614,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_name, custom_headers = nil) + def begin_start_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1614,6 +1622,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1668,8 +1677,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [OperationStatusResponse] operation results. # - def begin_redeploy(resource_group_name, vm_name, custom_headers = nil) - response = begin_redeploy_async(resource_group_name, vm_name, custom_headers).value! + def begin_redeploy(resource_group_name, vm_name, custom_headers:nil) + response = begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1683,8 +1692,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_redeploy_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_redeploy_async(resource_group_name, vm_name, custom_headers).value! + def begin_redeploy_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1697,7 +1706,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_redeploy_async(resource_group_name, vm_name, custom_headers = nil) + def begin_redeploy_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1705,6 +1714,7 @@ module Azure::Compute::Mgmt::V2016_04_30_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1760,8 +1770,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1776,8 +1786,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1791,11 +1801,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1850,8 +1861,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [VirtualMachineListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1866,8 +1877,8 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1881,11 +1892,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1940,12 +1952,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [VirtualMachineListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1961,12 +1973,12 @@ module Azure::Compute::Mgmt::V2016_04_30_preview # @return [VirtualMachineListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/availability_sets.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/availability_sets.rb index d6d414b0e..0662d5ad7 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/availability_sets.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/availability_sets.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [AvailabilitySet] operation results. # - def create_or_update(resource_group_name, availability_set_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, availability_set_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, availability_set_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, availability_set_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -75,7 +75,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -138,8 +137,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, availability_set_name, custom_headers = nil) - response = delete_async(resource_group_name, availability_set_name, custom_headers).value! + def delete(resource_group_name, availability_set_name, custom_headers:nil) + response = delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +152,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - delete_async(resource_group_name, availability_set_name, custom_headers).value! + def delete_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -167,7 +166,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, availability_set_name, custom_headers = nil) + def delete_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -175,6 +174,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -229,8 +229,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [AvailabilitySet] operation results. # - def get(resource_group_name, availability_set_name, custom_headers = nil) - response = get_async(resource_group_name, availability_set_name, custom_headers).value! + def get(resource_group_name, availability_set_name, custom_headers:nil) + response = get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -244,8 +244,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - get_async(resource_group_name, availability_set_name, custom_headers).value! + def get_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -258,7 +258,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, availability_set_name, custom_headers = nil) + def get_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -266,6 +266,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -319,8 +320,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [AvailabilitySetListResult] operation results. # - def list(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -333,8 +334,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -346,13 +347,14 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -408,8 +410,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineSizeListResult] operation results. # - def list_available_sizes(resource_group_name, availability_set_name, custom_headers = nil) - response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value! + def list_available_sizes(resource_group_name, availability_set_name, custom_headers:nil) + response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -424,8 +426,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value! + def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -439,7 +441,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers = nil) + def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -447,6 +449,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/disks.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/disks.rb index 3503f088d..1761e9faa 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/disks.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/disks.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Disk] operation results. # - def create_or_update(resource_group_name, disk_name, disk, custom_headers = nil) - response = create_or_update_async(resource_group_name, disk_name, disk, custom_headers).value! + def create_or_update(resource_group_name, disk_name, disk, custom_headers:nil) + response = create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, disk_name, disk, custom_headers = nil) + def create_or_update_async(resource_group_name, disk_name, disk, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers) + promise = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -82,8 +82,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Disk] operation results. # - def update(resource_group_name, disk_name, disk, custom_headers = nil) - response = update_async(resource_group_name, disk_name, disk, custom_headers).value! + def update(resource_group_name, disk_name, disk, custom_headers:nil) + response = update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, disk_name, disk, custom_headers = nil) + def update_async(resource_group_name, disk_name, disk, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, disk_name, disk, custom_headers) + promise = begin_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -128,8 +128,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Disk] operation results. # - def get(resource_group_name, disk_name, custom_headers = nil) - response = get_async(resource_group_name, disk_name, custom_headers).value! + def get(resource_group_name, disk_name, custom_headers:nil) + response = get_async(resource_group_name, disk_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +144,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, disk_name, custom_headers = nil) - get_async(resource_group_name, disk_name, custom_headers).value! + def get_with_http_info(resource_group_name, disk_name, custom_headers:nil) + get_async(resource_group_name, disk_name, custom_headers:custom_headers).value! end # @@ -159,7 +159,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, disk_name, custom_headers = nil) + def get_async(resource_group_name, disk_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -167,6 +167,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +223,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, disk_name, custom_headers = nil) - response = delete_async(resource_group_name, disk_name, custom_headers).value! + def delete(resource_group_name, disk_name, custom_headers:nil) + response = delete_async(resource_group_name, disk_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -237,9 +238,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, disk_name, custom_headers = nil) + def delete_async(resource_group_name, disk_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, disk_name, custom_headers) + promise = begin_delete_async(resource_group_name, disk_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -264,8 +265,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -278,8 +279,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -291,13 +292,14 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -350,8 +352,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -363,8 +365,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -375,12 +377,13 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -438,8 +441,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [AccessUri] operation results. # - def grant_access(resource_group_name, disk_name, grant_access_data, custom_headers = nil) - response = grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers).value! + def grant_access(resource_group_name, disk_name, grant_access_data, custom_headers:nil) + response = grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -455,9 +458,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers = nil) + def grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:nil) # Send request - promise = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers) + promise = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -484,8 +487,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def revoke_access(resource_group_name, disk_name, custom_headers = nil) - response = revoke_access_async(resource_group_name, disk_name, custom_headers).value! + def revoke_access(resource_group_name, disk_name, custom_headers:nil) + response = revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -499,9 +502,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def revoke_access_async(resource_group_name, disk_name, custom_headers = nil) + def revoke_access_async(resource_group_name, disk_name, custom_headers:nil) # Send request - promise = begin_revoke_access_async(resource_group_name, disk_name, custom_headers) + promise = begin_revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -530,8 +533,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Disk] operation results. # - def begin_create_or_update(resource_group_name, disk_name, disk, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers).value! + def begin_create_or_update(resource_group_name, disk_name, disk, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -548,8 +551,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, disk_name, disk, custom_headers = nil) - begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, disk_name, disk, custom_headers:nil) + begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! end # @@ -565,7 +568,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -574,7 +577,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -650,8 +652,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Disk] operation results. # - def begin_update(resource_group_name, disk_name, disk, custom_headers = nil) - response = begin_update_async(resource_group_name, disk_name, disk, custom_headers).value! + def begin_update(resource_group_name, disk_name, disk, custom_headers:nil) + response = begin_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -668,8 +670,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, disk_name, disk, custom_headers = nil) - begin_update_async(resource_group_name, disk_name, disk, custom_headers).value! + def begin_update_with_http_info(resource_group_name, disk_name, disk, custom_headers:nil) + begin_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! end # @@ -685,7 +687,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, disk_name, disk, custom_headers = nil) + def begin_update_async(resource_group_name, disk_name, disk, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -694,7 +696,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -768,8 +769,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, disk_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, disk_name, custom_headers).value! + def begin_delete(resource_group_name, disk_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, disk_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -784,8 +785,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, disk_name, custom_headers = nil) - begin_delete_async(resource_group_name, disk_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, disk_name, custom_headers:nil) + begin_delete_async(resource_group_name, disk_name, custom_headers:custom_headers).value! end # @@ -799,7 +800,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, disk_name, custom_headers = nil) + def begin_delete_async(resource_group_name, disk_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -807,6 +808,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -864,8 +866,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [AccessUri] operation results. # - def begin_grant_access(resource_group_name, disk_name, grant_access_data, custom_headers = nil) - response = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers).value! + def begin_grant_access(resource_group_name, disk_name, grant_access_data, custom_headers:nil) + response = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -882,8 +884,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_grant_access_with_http_info(resource_group_name, disk_name, grant_access_data, custom_headers = nil) - begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers).value! + def begin_grant_access_with_http_info(resource_group_name, disk_name, grant_access_data, custom_headers:nil) + begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers).value! end # @@ -899,7 +901,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers = nil) + def begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -908,7 +910,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -972,8 +973,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_revoke_access(resource_group_name, disk_name, custom_headers = nil) - response = begin_revoke_access_async(resource_group_name, disk_name, custom_headers).value! + def begin_revoke_access(resource_group_name, disk_name, custom_headers:nil) + response = begin_revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -988,8 +989,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_revoke_access_with_http_info(resource_group_name, disk_name, custom_headers = nil) - begin_revoke_access_async(resource_group_name, disk_name, custom_headers).value! + def begin_revoke_access_with_http_info(resource_group_name, disk_name, custom_headers:nil) + begin_revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers).value! end # @@ -1003,7 +1004,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_revoke_access_async(resource_group_name, disk_name, custom_headers = nil) + def begin_revoke_access_async(resource_group_name, disk_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'disk_name is nil' if disk_name.nil? @@ -1011,6 +1012,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1065,8 +1067,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [DiskList] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1080,8 +1082,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1094,11 +1096,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1152,8 +1155,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [DiskList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1167,8 +1170,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1181,11 +1184,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1238,12 +1242,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [DiskList] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1257,12 +1261,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [DiskList] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/images.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/images.rb index 5b9999d2d..abe279b49 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/images.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/images.rb @@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Image] operation results. # - def create_or_update(resource_group_name, image_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, image_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -47,9 +47,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, image_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, image_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, image_name, custom_headers = nil) - response = delete_async(resource_group_name, image_name, custom_headers).value! + def delete(resource_group_name, image_name, custom_headers:nil) + response = delete_async(resource_group_name, image_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,9 +89,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, image_name, custom_headers = nil) + def delete_async(resource_group_name, image_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, image_name, custom_headers) + promise = begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -118,8 +118,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Image] operation results. # - def get(resource_group_name, image_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, image_name, expand, custom_headers).value! + def get(resource_group_name, image_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, image_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +134,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, image_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, image_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, image_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, image_name, expand:expand, custom_headers:custom_headers).value! end # @@ -149,7 +149,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, image_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, image_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'image_name is nil' if image_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -157,6 +157,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -210,8 +211,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -224,8 +225,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -237,13 +238,14 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -313,8 +315,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -327,12 +329,13 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -388,8 +391,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Image] operation results. # - def begin_create_or_update(resource_group_name, image_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, image_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -404,8 +407,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, image_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, image_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value! end # @@ -419,7 +422,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'image_name is nil' if image_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -428,7 +431,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -501,8 +503,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, image_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, image_name, custom_headers).value! + def begin_delete(resource_group_name, image_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -516,8 +518,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, image_name, custom_headers = nil) - begin_delete_async(resource_group_name, image_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, image_name, custom_headers:nil) + begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers).value! end # @@ -530,7 +532,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, image_name, custom_headers = nil) + def begin_delete_async(resource_group_name, image_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'image_name is nil' if image_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -538,6 +540,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -592,8 +595,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [ImageListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -607,8 +610,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -621,11 +624,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -681,8 +685,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [ImageListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -698,8 +702,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -714,11 +718,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -771,12 +776,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [ImageListResult] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -792,12 +797,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [ImageListResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/resource_skus.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/resource_skus.rb index 73c4310d5..49e7ed3ed 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/resource_skus.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/resource_skus.rb @@ -29,8 +29,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,8 +115,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [ResourceSkusResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -129,8 +130,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -143,11 +144,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -200,12 +202,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [ResourceSkusResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/snapshots.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/snapshots.rb index 8a0c8ee0b..4674fc872 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/snapshots.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/snapshots.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Snapshot] operation results. # - def create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - response = create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + response = create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil) + def create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers) + promise = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -82,8 +82,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Snapshot] operation results. # - def update(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - response = update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def update(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + response = update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil) + def update_async(resource_group_name, snapshot_name, snapshot, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers) + promise = begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -128,8 +128,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Snapshot] operation results. # - def get(resource_group_name, snapshot_name, custom_headers = nil) - response = get_async(resource_group_name, snapshot_name, custom_headers).value! + def get(resource_group_name, snapshot_name, custom_headers:nil) + response = get_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +144,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, snapshot_name, custom_headers = nil) - get_async(resource_group_name, snapshot_name, custom_headers).value! + def get_with_http_info(resource_group_name, snapshot_name, custom_headers:nil) + get_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! end # @@ -159,7 +159,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, snapshot_name, custom_headers = nil) + def get_async(resource_group_name, snapshot_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -167,6 +167,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +223,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, snapshot_name, custom_headers = nil) - response = delete_async(resource_group_name, snapshot_name, custom_headers).value! + def delete(resource_group_name, snapshot_name, custom_headers:nil) + response = delete_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -237,9 +238,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, snapshot_name, custom_headers = nil) + def delete_async(resource_group_name, snapshot_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, snapshot_name, custom_headers) + promise = begin_delete_async(resource_group_name, snapshot_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -264,8 +265,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -278,8 +279,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -291,13 +292,14 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -350,8 +352,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -363,8 +365,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -375,12 +377,13 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -438,8 +441,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [AccessUri] operation results. # - def grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil) - response = grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value! + def grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil) + response = grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -455,9 +458,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil) + def grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil) # Send request - promise = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers) + promise = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -484,8 +487,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def revoke_access(resource_group_name, snapshot_name, custom_headers = nil) - response = revoke_access_async(resource_group_name, snapshot_name, custom_headers).value! + def revoke_access(resource_group_name, snapshot_name, custom_headers:nil) + response = revoke_access_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -499,9 +502,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def revoke_access_async(resource_group_name, snapshot_name, custom_headers = nil) + def revoke_access_async(resource_group_name, snapshot_name, custom_headers:nil) # Send request - promise = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers) + promise = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -530,8 +533,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Snapshot] operation results. # - def begin_create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def begin_create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -548,8 +551,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! end # @@ -565,7 +568,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -574,7 +577,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -650,8 +652,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Snapshot] operation results. # - def begin_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - response = begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def begin_update(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + response = begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -668,8 +670,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers = nil) - begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value! + def begin_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers:nil) + begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! end # @@ -685,7 +687,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers = nil) + def begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -694,7 +696,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -768,8 +769,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, snapshot_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, snapshot_name, custom_headers).value! + def begin_delete(resource_group_name, snapshot_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -784,8 +785,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, snapshot_name, custom_headers = nil) - begin_delete_async(resource_group_name, snapshot_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, snapshot_name, custom_headers:nil) + begin_delete_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! end # @@ -799,7 +800,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, snapshot_name, custom_headers = nil) + def begin_delete_async(resource_group_name, snapshot_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -807,6 +808,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -864,8 +866,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [AccessUri] operation results. # - def begin_grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil) - response = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value! + def begin_grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil) + response = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -882,8 +884,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_grant_access_with_http_info(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil) - begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value! + def begin_grant_access_with_http_info(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil) + begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:custom_headers).value! end # @@ -899,7 +901,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers = nil) + def begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -908,7 +910,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -972,8 +973,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_revoke_access(resource_group_name, snapshot_name, custom_headers = nil) - response = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers).value! + def begin_revoke_access(resource_group_name, snapshot_name, custom_headers:nil) + response = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -988,8 +989,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_revoke_access_with_http_info(resource_group_name, snapshot_name, custom_headers = nil) - begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers).value! + def begin_revoke_access_with_http_info(resource_group_name, snapshot_name, custom_headers:nil) + begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value! end # @@ -1003,7 +1004,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers = nil) + def begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'snapshot_name is nil' if snapshot_name.nil? @@ -1011,6 +1012,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1065,8 +1067,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [SnapshotList] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1080,8 +1082,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1094,11 +1096,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1152,8 +1155,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [SnapshotList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1167,8 +1170,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1181,11 +1184,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1238,12 +1242,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [SnapshotList] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1257,12 +1261,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [SnapshotList] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb index 0239f4718..33922e609 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb @@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [ListUsagesResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -160,11 +161,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -220,12 +222,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [ListUsagesResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb index 60388322a..5dc101fb2 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineExtensionImage] operation results. # - def get(location, publisher_name, type, version, custom_headers = nil) - response = get_async(location, publisher_name, type, version, custom_headers).value! + def get(location, publisher_name, type, version, custom_headers:nil) + response = get_async(location, publisher_name, type, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, publisher_name, type, version, custom_headers = nil) - get_async(location, publisher_name, type, version, custom_headers).value! + def get_with_http_info(location, publisher_name, type, version, custom_headers:nil) + get_async(location, publisher_name, type, version, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, publisher_name, type, version, custom_headers = nil) + def get_async(location, publisher_name, type, version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'type is nil' if type.nil? @@ -76,6 +76,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -130,8 +131,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_types(location, publisher_name, custom_headers = nil) - response = list_types_async(location, publisher_name, custom_headers).value! + def list_types(location, publisher_name, custom_headers:nil) + response = list_types_async(location, publisher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_types_with_http_info(location, publisher_name, custom_headers = nil) - list_types_async(location, publisher_name, custom_headers).value! + def list_types_with_http_info(location, publisher_name, custom_headers:nil) + list_types_async(location, publisher_name, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_types_async(location, publisher_name, custom_headers = nil) + def list_types_async(location, publisher_name, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -167,6 +168,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +243,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_versions(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value! + def list_versions(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -260,8 +262,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_versions_with_http_info(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value! + def list_versions_with_http_info(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -278,7 +280,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_versions_async(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_versions_async(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'type is nil' if type.nil? @@ -287,6 +289,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb index 838d0d5d4..a70c65048 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb @@ -35,8 +35,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineExtension] operation results. # - def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,9 +53,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) + def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -130,8 +130,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineExtension] operation results. # - def get(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value! + def get(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +148,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value! end # @@ -165,7 +165,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -174,6 +174,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -232,8 +233,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineExtension] operation results. # - def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -251,8 +252,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! end # @@ -269,7 +270,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -279,7 +280,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -354,8 +354,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -371,8 +371,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! end # @@ -387,7 +387,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -396,6 +396,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb index 428141a35..783d4c34d 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineImage] operation results. # - def get(location, publisher_name, offer, skus, version, custom_headers = nil) - response = get_async(location, publisher_name, offer, skus, version, custom_headers).value! + def get(location, publisher_name, offer, skus, version, custom_headers:nil) + response = get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers = nil) - get_async(location, publisher_name, offer, skus, version, custom_headers).value! + def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers:nil) + get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, publisher_name, offer, skus, version, custom_headers = nil) + def get_async(location, publisher_name, offer, skus, version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -80,6 +80,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value! + def list(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -161,8 +162,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value! + def list_with_http_info(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -191,6 +192,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -262,8 +264,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_offers(location, publisher_name, custom_headers = nil) - response = list_offers_async(location, publisher_name, custom_headers).value! + def list_offers(location, publisher_name, custom_headers:nil) + response = list_offers_async(location, publisher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -278,8 +280,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_offers_with_http_info(location, publisher_name, custom_headers = nil) - list_offers_async(location, publisher_name, custom_headers).value! + def list_offers_with_http_info(location, publisher_name, custom_headers:nil) + list_offers_async(location, publisher_name, custom_headers:custom_headers).value! end # @@ -293,7 +295,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_offers_async(location, publisher_name, custom_headers = nil) + def list_offers_async(location, publisher_name, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -301,6 +303,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -371,8 +374,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_publishers(location, custom_headers = nil) - response = list_publishers_async(location, custom_headers).value! + def list_publishers(location, custom_headers:nil) + response = list_publishers_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -386,8 +389,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_publishers_with_http_info(location, custom_headers = nil) - list_publishers_async(location, custom_headers).value! + def list_publishers_with_http_info(location, custom_headers:nil) + list_publishers_async(location, custom_headers:custom_headers).value! end # @@ -400,13 +403,14 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_publishers_async(location, custom_headers = nil) + def list_publishers_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -479,8 +483,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_skus(location, publisher_name, offer, custom_headers = nil) - response = list_skus_async(location, publisher_name, offer, custom_headers).value! + def list_skus(location, publisher_name, offer, custom_headers:nil) + response = list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -496,8 +500,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(location, publisher_name, offer, custom_headers = nil) - list_skus_async(location, publisher_name, offer, custom_headers).value! + def list_skus_with_http_info(location, publisher_name, offer, custom_headers:nil) + list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value! end # @@ -512,7 +516,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(location, publisher_name, offer, custom_headers = nil) + def list_skus_async(location, publisher_name, offer, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -521,6 +525,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_run_commands.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_run_commands.rb index 68368294e..6d66f32f1 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_run_commands.rb @@ -30,8 +30,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -57,7 +57,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -65,6 +65,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -119,8 +120,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [RunCommandDocument] operation results. # - def get(location, command_id, custom_headers = nil) - response = get_async(location, command_id, custom_headers).value! + def get(location, command_id, custom_headers:nil) + response = get_async(location, command_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, command_id, custom_headers = nil) - get_async(location, command_id, custom_headers).value! + def get_with_http_info(location, command_id, custom_headers:nil) + get_async(location, command_id, custom_headers:custom_headers).value! end # @@ -148,7 +149,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, command_id, custom_headers = nil) + def get_async(location, command_id, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'command_id is nil' if command_id.nil? @@ -157,6 +158,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -211,8 +213,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [RunCommandListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -226,8 +228,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -240,11 +242,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,12 +301,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [RunCommandListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb index 8d86cc511..6bd21d458 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb @@ -35,8 +35,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSetExtension] operation results. # - def create_or_update(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,9 +53,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -130,8 +130,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSetExtension] operation results. # - def get(resource_group_name, vm_scale_set_name, vmss_extension_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +148,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:expand, custom_headers:custom_headers).value! end # @@ -165,7 +165,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vmss_extension_name is nil' if vmss_extension_name.nil? @@ -174,6 +174,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -229,8 +230,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list(resource_group_name, vm_scale_set_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers) + def list(resource_group_name, vm_scale_set_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -245,8 +246,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - list_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + list_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -260,7 +261,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def list_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -268,6 +269,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -326,8 +328,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSetExtension] operation results. # - def begin_create_or_update(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -345,8 +347,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers).value! end # @@ -363,7 +365,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vmss_extension_name is nil' if vmss_extension_name.nil? @@ -373,7 +375,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -448,8 +449,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -465,8 +466,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers).value! end # @@ -481,7 +482,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vmss_extension_name is nil' if vmss_extension_name.nil? @@ -490,6 +491,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -544,8 +546,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSetExtensionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -559,8 +561,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -573,11 +575,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -633,12 +636,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [VirtualMachineScaleSetExtensionListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = list_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = list_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb index 67fb7bb54..bf0845f02 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb @@ -31,8 +31,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def cancel(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def cancel(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -45,9 +45,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def cancel_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def cancel_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,9 +89,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -117,8 +117,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [RollingUpgradeStatusInfo] operation results. # - def get_latest(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_latest_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_latest(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_latest_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +132,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_latest_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_latest_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_latest_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_latest_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -146,7 +146,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_latest_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_latest_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -154,6 +154,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -208,8 +209,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_cancel(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_cancel(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -223,8 +224,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_cancel_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_cancel_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -237,7 +238,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -245,6 +246,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -301,8 +303,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -318,8 +320,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_osupgrade_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_start_osupgrade_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -334,7 +336,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -342,6 +344,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb index 3bf94fc6d..d3abb4cfb 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,9 +48,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -78,8 +78,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -93,9 +93,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -125,8 +125,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -140,9 +140,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -169,8 +169,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +184,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -213,8 +213,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSetVM] operation results. # - def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -229,8 +229,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -244,7 +244,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -253,6 +253,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +309,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSetVMInstanceView] operation results. # - def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -324,8 +325,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -339,7 +340,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -348,6 +349,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -405,8 +407,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers) + def list(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -423,8 +425,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value! end # @@ -440,7 +442,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) + def list_async(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -448,6 +450,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -505,8 +508,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -520,9 +523,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -549,8 +552,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -564,9 +567,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -593,8 +596,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -608,9 +611,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -638,8 +641,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -655,8 +658,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -671,7 +674,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -680,6 +683,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -736,8 +740,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -753,8 +757,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -769,7 +773,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -778,6 +782,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -836,8 +841,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -855,8 +860,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -873,7 +878,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -882,6 +887,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -937,8 +943,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -953,8 +959,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -968,7 +974,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -977,6 +983,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1034,8 +1041,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1052,8 +1059,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1069,7 +1076,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1078,6 +1085,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1133,8 +1141,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1149,8 +1157,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1164,7 +1172,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1173,6 +1181,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1228,8 +1237,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1244,8 +1253,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1259,7 +1268,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1268,6 +1277,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1322,8 +1332,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSetVMListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1337,8 +1347,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1351,11 +1361,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1413,12 +1424,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [VirtualMachineScaleSetVMListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + response = list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb index eda775d4c..98ae965e4 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSet] operation results. # - def create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -49,9 +49,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -79,8 +79,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSet] operation results. # - def update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -95,9 +95,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) + def update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -123,8 +123,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -137,9 +137,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -165,8 +165,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSet] operation results. # - def get(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -180,8 +180,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -194,7 +194,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -202,6 +202,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -260,8 +261,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -276,9 +277,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -306,8 +307,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -322,9 +323,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) # Send request - promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -350,8 +351,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSetInstanceView] operation results. # - def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -365,8 +366,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -379,7 +380,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -387,6 +388,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +442,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -454,8 +456,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -467,13 +469,14 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -529,8 +532,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -545,8 +548,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -560,12 +563,13 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -621,8 +625,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_skus(resource_group_name, vm_scale_set_name, custom_headers = nil) - first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers) + def list_skus(resource_group_name, vm_scale_set_name, custom_headers:nil) + first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -637,8 +641,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -652,7 +656,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -660,6 +664,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -718,8 +723,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -734,9 +739,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -764,8 +769,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -780,9 +785,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -810,8 +815,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -826,9 +831,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -857,8 +862,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -873,9 +878,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) # Send request - promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -904,8 +909,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def reimage(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def reimage(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -920,9 +925,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -951,8 +956,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -967,9 +972,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -997,8 +1002,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSet] operation results. # - def begin_create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1014,8 +1019,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! end # @@ -1030,7 +1035,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1039,7 +1044,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1114,8 +1118,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSet] operation results. # - def begin_update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def begin_update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1131,8 +1135,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! end # @@ -1147,7 +1151,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1156,7 +1160,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1219,8 +1222,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1234,8 +1237,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -1248,7 +1251,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1256,6 +1259,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1314,8 +1318,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1333,8 +1337,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1351,7 +1355,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1359,7 +1363,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1424,8 +1427,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1441,8 +1444,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1457,7 +1460,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil? @@ -1466,7 +1469,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1533,8 +1535,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1552,8 +1554,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1570,7 +1572,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1578,7 +1580,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1643,8 +1644,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1660,8 +1661,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1676,7 +1677,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1684,7 +1685,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1749,8 +1749,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1766,8 +1766,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1782,7 +1782,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1790,7 +1790,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1856,8 +1855,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1874,8 +1873,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1891,7 +1890,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil? @@ -1900,7 +1899,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1966,8 +1964,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_reimage(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_reimage(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1984,8 +1982,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -2001,7 +1999,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -2009,7 +2007,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2075,8 +2072,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2093,8 +2090,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -2110,7 +2107,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -2118,7 +2115,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2181,8 +2177,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2196,8 +2192,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2210,11 +2206,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2271,8 +2268,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSetListWithLinkResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2289,8 +2286,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2306,11 +2303,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2365,8 +2363,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineScaleSetListSkusResult] operation results. # - def list_skus_next(next_page_link, custom_headers = nil) - response = list_skus_next_async(next_page_link, custom_headers).value! + def list_skus_next(next_page_link, custom_headers:nil) + response = list_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2381,8 +2379,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_next_with_http_info(next_page_link, custom_headers = nil) - list_skus_next_async(next_page_link, custom_headers).value! + def list_skus_next_with_http_info(next_page_link, custom_headers:nil) + list_skus_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2396,11 +2394,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_next_async(next_page_link, custom_headers = nil) + def list_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2454,12 +2453,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [VirtualMachineScaleSetListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2477,12 +2476,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [VirtualMachineScaleSetListWithLinkResult] which provide lazy access # to pages of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2500,12 +2499,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [VirtualMachineScaleSetListSkusResult] which provide lazy access to # pages of the response. # - def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_skus_next_async(next_page_link, custom_headers) + list_skus_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb index e996f0139..60e2afcce 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb @@ -31,8 +31,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineSizeListResult] operation results. # - def list(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -68,6 +68,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb index 6935727c2..32e2e8972 100644 --- a/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb +++ b/management/azure_mgmt_compute/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineCaptureResult] operation results. # - def capture(resource_group_name, vm_name, parameters, custom_headers = nil) - response = capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def capture(resource_group_name, vm_name, parameters, custom_headers:nil) + response = capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,9 +50,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def capture_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def capture_async(resource_group_name, vm_name, parameters, custom_headers:nil) # Send request - promise = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers) + promise = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachine] operation results. # - def create_or_update(resource_group_name, vm_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,9 +96,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -124,8 +124,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_name, custom_headers).value! + def delete(resource_group_name, vm_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -138,9 +138,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_name, custom_headers = nil) + def delete_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -169,8 +169,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachine] operation results. # - def get(resource_group_name, vm_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_name, expand, custom_headers).value! + def get(resource_group_name, vm_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -187,8 +187,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value! end # @@ -204,7 +204,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -212,6 +212,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -266,8 +267,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineInstanceView] operation results. # - def instance_view(resource_group_name, vm_name, custom_headers = nil) - response = instance_view_async(resource_group_name, vm_name, custom_headers).value! + def instance_view(resource_group_name, vm_name, custom_headers:nil) + response = instance_view_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -281,8 +282,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def instance_view_with_http_info(resource_group_name, vm_name, custom_headers = nil) - instance_view_async(resource_group_name, vm_name, custom_headers).value! + def instance_view_with_http_info(resource_group_name, vm_name, custom_headers:nil) + instance_view_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -295,7 +296,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def instance_view_async(resource_group_name, vm_name, custom_headers = nil) + def instance_view_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -303,6 +304,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -358,8 +360,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def convert_to_managed_disks(resource_group_name, vm_name, custom_headers = nil) - response = convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers).value! + def convert_to_managed_disks(resource_group_name, vm_name, custom_headers:nil) + response = convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -372,9 +374,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers = nil) + def convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers) + promise = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -401,8 +403,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_name, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_name, custom_headers).value! + def deallocate(resource_group_name, vm_name, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -415,9 +417,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_name, custom_headers = nil) + def deallocate_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_name, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -443,8 +445,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def generalize(resource_group_name, vm_name, custom_headers = nil) - response = generalize_async(resource_group_name, vm_name, custom_headers).value! + def generalize(resource_group_name, vm_name, custom_headers:nil) + response = generalize_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -458,8 +460,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generalize_with_http_info(resource_group_name, vm_name, custom_headers = nil) - generalize_async(resource_group_name, vm_name, custom_headers).value! + def generalize_with_http_info(resource_group_name, vm_name, custom_headers:nil) + generalize_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -472,7 +474,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generalize_async(resource_group_name, vm_name, custom_headers = nil) + def generalize_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -480,6 +482,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -534,8 +537,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -549,8 +552,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -563,13 +566,14 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -623,8 +627,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -637,8 +641,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -650,12 +654,13 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -711,8 +716,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineSizeListResult] operation results. # - def list_available_sizes(resource_group_name, vm_name, custom_headers = nil) - response = list_available_sizes_async(resource_group_name, vm_name, custom_headers).value! + def list_available_sizes(resource_group_name, vm_name, custom_headers:nil) + response = list_available_sizes_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -727,8 +732,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_sizes_with_http_info(resource_group_name, vm_name, custom_headers = nil) - list_available_sizes_async(resource_group_name, vm_name, custom_headers).value! + def list_available_sizes_with_http_info(resource_group_name, vm_name, custom_headers:nil) + list_available_sizes_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -742,7 +747,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_sizes_async(resource_group_name, vm_name, custom_headers = nil) + def list_available_sizes_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -750,6 +755,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -806,8 +812,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_name, custom_headers = nil) - response = power_off_async(resource_group_name, vm_name, custom_headers).value! + def power_off(resource_group_name, vm_name, custom_headers:nil) + response = power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -820,9 +826,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_name, custom_headers = nil) + def power_off_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_name, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -848,8 +854,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_name, custom_headers = nil) - response = restart_async(resource_group_name, vm_name, custom_headers).value! + def restart(resource_group_name, vm_name, custom_headers:nil) + response = restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -862,9 +868,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_name, custom_headers = nil) + def restart_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_name, custom_headers) + promise = begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -890,8 +896,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_name, custom_headers = nil) - response = start_async(resource_group_name, vm_name, custom_headers).value! + def start(resource_group_name, vm_name, custom_headers:nil) + response = start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -904,9 +910,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_name, custom_headers = nil) + def start_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_name, custom_headers) + promise = begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -932,8 +938,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def redeploy(resource_group_name, vm_name, custom_headers = nil) - response = redeploy_async(resource_group_name, vm_name, custom_headers).value! + def redeploy(resource_group_name, vm_name, custom_headers:nil) + response = redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -946,9 +952,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def redeploy_async(resource_group_name, vm_name, custom_headers = nil) + def redeploy_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_redeploy_async(resource_group_name, vm_name, custom_headers) + promise = begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -974,8 +980,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def perform_maintenance(resource_group_name, vm_name, custom_headers = nil) - response = perform_maintenance_async(resource_group_name, vm_name, custom_headers).value! + def perform_maintenance(resource_group_name, vm_name, custom_headers:nil) + response = perform_maintenance_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -988,9 +994,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def perform_maintenance_async(resource_group_name, vm_name, custom_headers = nil) + def perform_maintenance_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers) + promise = begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1018,8 +1024,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [RunCommandResult] operation results. # - def run_command(resource_group_name, vm_name, parameters, custom_headers = nil) - response = run_command_async(resource_group_name, vm_name, parameters, custom_headers).value! + def run_command(resource_group_name, vm_name, parameters, custom_headers:nil) + response = run_command_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1034,9 +1040,9 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def run_command_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def run_command_async(resource_group_name, vm_name, parameters, custom_headers:nil) # Send request - promise = begin_run_command_async(resource_group_name, vm_name, parameters, custom_headers) + promise = begin_run_command_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1065,8 +1071,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineCaptureResult] operation results. # - def begin_capture(resource_group_name, vm_name, parameters, custom_headers = nil) - response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_capture(resource_group_name, vm_name, parameters, custom_headers:nil) + response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1083,8 +1089,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers = nil) - begin_capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil) + begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! end # @@ -1100,7 +1106,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_capture_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1109,7 +1115,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1174,8 +1179,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachine] operation results. # - def begin_create_or_update(resource_group_name, vm_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1191,8 +1196,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! end # @@ -1207,7 +1212,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1216,7 +1221,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1289,8 +1293,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_name, custom_headers).value! + def begin_delete(resource_group_name, vm_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1304,8 +1308,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1318,7 +1322,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1326,6 +1330,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1381,8 +1386,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_convert_to_managed_disks(resource_group_name, vm_name, custom_headers = nil) - response = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers).value! + def begin_convert_to_managed_disks(resource_group_name, vm_name, custom_headers:nil) + response = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1397,8 +1402,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_convert_to_managed_disks_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers).value! + def begin_convert_to_managed_disks_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1412,7 +1417,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers = nil) + def begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1420,6 +1425,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1475,8 +1481,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_name, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_name, custom_headers).value! + def begin_deallocate(resource_group_name, vm_name, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1491,8 +1497,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_name, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1506,7 +1512,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_name, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1514,6 +1520,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1570,8 +1577,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_name, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_name, custom_headers).value! + def begin_power_off(resource_group_name, vm_name, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1587,8 +1594,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_name, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1603,7 +1610,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_name, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1611,6 +1618,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1665,8 +1673,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_name, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_name, custom_headers).value! + def begin_restart(resource_group_name, vm_name, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1680,8 +1688,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_restart_async(resource_group_name, vm_name, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1694,7 +1702,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_name, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1702,6 +1710,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1756,8 +1765,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_name, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_name, custom_headers).value! + def begin_start(resource_group_name, vm_name, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1771,8 +1780,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_start_async(resource_group_name, vm_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1785,7 +1794,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_name, custom_headers = nil) + def begin_start_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1793,6 +1802,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1847,8 +1857,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_redeploy(resource_group_name, vm_name, custom_headers = nil) - response = begin_redeploy_async(resource_group_name, vm_name, custom_headers).value! + def begin_redeploy(resource_group_name, vm_name, custom_headers:nil) + response = begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1862,8 +1872,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_redeploy_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_redeploy_async(resource_group_name, vm_name, custom_headers).value! + def begin_redeploy_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1876,7 +1886,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_redeploy_async(resource_group_name, vm_name, custom_headers = nil) + def begin_redeploy_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1884,6 +1894,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1938,8 +1949,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [OperationStatusResponse] operation results. # - def begin_perform_maintenance(resource_group_name, vm_name, custom_headers = nil) - response = begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers).value! + def begin_perform_maintenance(resource_group_name, vm_name, custom_headers:nil) + response = begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1953,8 +1964,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_perform_maintenance_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers).value! + def begin_perform_maintenance_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1967,7 +1978,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers = nil) + def begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1975,6 +1986,7 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2031,8 +2043,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [RunCommandResult] operation results. # - def begin_run_command(resource_group_name, vm_name, parameters, custom_headers = nil) - response = begin_run_command_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_run_command(resource_group_name, vm_name, parameters, custom_headers:nil) + response = begin_run_command_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2048,8 +2060,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_run_command_with_http_info(resource_group_name, vm_name, parameters, custom_headers = nil) - begin_run_command_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_run_command_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil) + begin_run_command_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! end # @@ -2064,7 +2076,7 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_run_command_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def begin_run_command_async(resource_group_name, vm_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -2073,7 +2085,6 @@ module Azure::Compute::Mgmt::V2017_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2137,8 +2148,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2153,8 +2164,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2168,11 +2179,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2227,8 +2239,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [VirtualMachineListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2243,8 +2255,8 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2258,11 +2270,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2317,12 +2330,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [VirtualMachineListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2338,12 +2351,12 @@ module Azure::Compute::Mgmt::V2017_03_30 # @return [VirtualMachineListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-09-01/generated/azure_mgmt_compute/resource_skus.rb b/management/azure_mgmt_compute/lib/2017-09-01/generated/azure_mgmt_compute/resource_skus.rb index cd3b2f728..600bbbea4 100644 --- a/management/azure_mgmt_compute/lib/2017-09-01/generated/azure_mgmt_compute/resource_skus.rb +++ b/management/azure_mgmt_compute/lib/2017-09-01/generated/azure_mgmt_compute/resource_skus.rb @@ -29,8 +29,8 @@ module Azure::Compute::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::Compute::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::Compute::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,8 +115,8 @@ module Azure::Compute::Mgmt::V2017_09_01 # # @return [ResourceSkusResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -129,8 +130,8 @@ module Azure::Compute::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -143,11 +144,12 @@ module Azure::Compute::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -200,12 +202,12 @@ module Azure::Compute::Mgmt::V2017_09_01 # @return [ResourceSkusResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/availability_sets.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/availability_sets.rb index dc61053e7..b4e1f0cac 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/availability_sets.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/availability_sets.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [AvailabilitySet] operation results. # - def create_or_update(resource_group_name, availability_set_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, availability_set_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, availability_set_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, availability_set_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -75,7 +75,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -138,8 +137,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, availability_set_name, custom_headers = nil) - response = delete_async(resource_group_name, availability_set_name, custom_headers).value! + def delete(resource_group_name, availability_set_name, custom_headers:nil) + response = delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +152,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - delete_async(resource_group_name, availability_set_name, custom_headers).value! + def delete_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -167,7 +166,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, availability_set_name, custom_headers = nil) + def delete_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -175,6 +174,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -229,8 +229,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [AvailabilitySet] operation results. # - def get(resource_group_name, availability_set_name, custom_headers = nil) - response = get_async(resource_group_name, availability_set_name, custom_headers).value! + def get(resource_group_name, availability_set_name, custom_headers:nil) + response = get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -244,8 +244,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - get_async(resource_group_name, availability_set_name, custom_headers).value! + def get_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -258,7 +258,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, availability_set_name, custom_headers = nil) + def get_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -266,6 +266,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -319,8 +320,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [AvailabilitySetListResult] operation results. # - def list(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -333,8 +334,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -346,13 +347,14 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -408,8 +410,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineSizeListResult] operation results. # - def list_available_sizes(resource_group_name, availability_set_name, custom_headers = nil) - response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value! + def list_available_sizes(resource_group_name, availability_set_name, custom_headers:nil) + response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -424,8 +426,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers = nil) - list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value! + def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers:nil) + list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value! end # @@ -439,7 +441,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers = nil) + def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -447,6 +449,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/images.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/images.rb index 016c01217..f5eed98be 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/images.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/images.rb @@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Image] operation results. # - def create_or_update(resource_group_name, image_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, image_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -47,9 +47,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, image_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, image_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, image_name, custom_headers = nil) - response = delete_async(resource_group_name, image_name, custom_headers).value! + def delete(resource_group_name, image_name, custom_headers:nil) + response = delete_async(resource_group_name, image_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,9 +89,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, image_name, custom_headers = nil) + def delete_async(resource_group_name, image_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, image_name, custom_headers) + promise = begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -118,8 +118,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Image] operation results. # - def get(resource_group_name, image_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, image_name, expand, custom_headers).value! + def get(resource_group_name, image_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, image_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +134,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, image_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, image_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, image_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, image_name, expand:expand, custom_headers:custom_headers).value! end # @@ -149,7 +149,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, image_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, image_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'image_name is nil' if image_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -157,6 +157,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -210,8 +211,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -224,8 +225,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -237,13 +238,14 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -313,8 +315,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -327,12 +329,13 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -388,8 +391,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Image] operation results. # - def begin_create_or_update(resource_group_name, image_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, image_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -404,8 +407,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, image_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, image_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value! end # @@ -419,7 +422,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'image_name is nil' if image_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -428,7 +431,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -501,8 +503,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, image_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, image_name, custom_headers).value! + def begin_delete(resource_group_name, image_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -516,8 +518,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, image_name, custom_headers = nil) - begin_delete_async(resource_group_name, image_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, image_name, custom_headers:nil) + begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers).value! end # @@ -530,7 +532,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, image_name, custom_headers = nil) + def begin_delete_async(resource_group_name, image_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'image_name is nil' if image_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -538,6 +540,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -592,8 +595,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [ImageListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -607,8 +610,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -621,11 +624,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -681,8 +685,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [ImageListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -698,8 +702,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -714,11 +718,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -771,12 +776,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [ImageListResult] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -792,12 +797,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [ImageListResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/usage_operations.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/usage_operations.rb index 156fd5b3e..bcf50e2c1 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/usage_operations.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/usage_operations.rb @@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [ListUsagesResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -160,11 +161,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -220,12 +222,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [ListUsagesResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb index 6b4dea5b8..79420095d 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineExtensionImage] operation results. # - def get(location, publisher_name, type, version, custom_headers = nil) - response = get_async(location, publisher_name, type, version, custom_headers).value! + def get(location, publisher_name, type, version, custom_headers:nil) + response = get_async(location, publisher_name, type, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, publisher_name, type, version, custom_headers = nil) - get_async(location, publisher_name, type, version, custom_headers).value! + def get_with_http_info(location, publisher_name, type, version, custom_headers:nil) + get_async(location, publisher_name, type, version, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, publisher_name, type, version, custom_headers = nil) + def get_async(location, publisher_name, type, version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'type is nil' if type.nil? @@ -76,6 +76,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -130,8 +131,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list_types(location, publisher_name, custom_headers = nil) - response = list_types_async(location, publisher_name, custom_headers).value! + def list_types(location, publisher_name, custom_headers:nil) + response = list_types_async(location, publisher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_types_with_http_info(location, publisher_name, custom_headers = nil) - list_types_async(location, publisher_name, custom_headers).value! + def list_types_with_http_info(location, publisher_name, custom_headers:nil) + list_types_async(location, publisher_name, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_types_async(location, publisher_name, custom_headers = nil) + def list_types_async(location, publisher_name, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -167,6 +168,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +243,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list_versions(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value! + def list_versions(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -260,8 +262,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_versions_with_http_info(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value! + def list_versions_with_http_info(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -278,7 +280,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_versions_async(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_versions_async(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'type is nil' if type.nil? @@ -287,6 +289,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb index e74a7ca35..10f4bbd7b 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb @@ -35,8 +35,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineExtension] operation results. # - def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,9 +53,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) + def delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -130,8 +130,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineExtension] operation results. # - def get(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value! + def get(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +148,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_name, vm_extension_name, expand:expand, custom_headers:custom_headers).value! end # @@ -165,7 +165,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_name, vm_extension_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -174,6 +174,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -232,8 +233,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineExtension] operation results. # - def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -251,8 +252,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! end # @@ -269,7 +270,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -279,7 +280,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -354,8 +354,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -371,8 +371,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:custom_headers).value! end # @@ -387,7 +387,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil? @@ -396,6 +396,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_images.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_images.rb index c391085c0..1286c6f72 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_images.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_images.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineImage] operation results. # - def get(location, publisher_name, offer, skus, version, custom_headers = nil) - response = get_async(location, publisher_name, offer, skus, version, custom_headers).value! + def get(location, publisher_name, offer, skus, version, custom_headers:nil) + response = get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers = nil) - get_async(location, publisher_name, offer, skus, version, custom_headers).value! + def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers:nil) + get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, publisher_name, offer, skus, version, custom_headers = nil) + def get_async(location, publisher_name, offer, skus, version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -80,6 +80,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value! + def list(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -161,8 +162,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value! + def list_with_http_info(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -191,6 +192,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -262,8 +264,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list_offers(location, publisher_name, custom_headers = nil) - response = list_offers_async(location, publisher_name, custom_headers).value! + def list_offers(location, publisher_name, custom_headers:nil) + response = list_offers_async(location, publisher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -278,8 +280,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_offers_with_http_info(location, publisher_name, custom_headers = nil) - list_offers_async(location, publisher_name, custom_headers).value! + def list_offers_with_http_info(location, publisher_name, custom_headers:nil) + list_offers_async(location, publisher_name, custom_headers:custom_headers).value! end # @@ -293,7 +295,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_offers_async(location, publisher_name, custom_headers = nil) + def list_offers_async(location, publisher_name, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -301,6 +303,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -371,8 +374,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list_publishers(location, custom_headers = nil) - response = list_publishers_async(location, custom_headers).value! + def list_publishers(location, custom_headers:nil) + response = list_publishers_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -386,8 +389,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_publishers_with_http_info(location, custom_headers = nil) - list_publishers_async(location, custom_headers).value! + def list_publishers_with_http_info(location, custom_headers:nil) + list_publishers_async(location, custom_headers:custom_headers).value! end # @@ -400,13 +403,14 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_publishers_async(location, custom_headers = nil) + def list_publishers_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -479,8 +483,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list_skus(location, publisher_name, offer, custom_headers = nil) - response = list_skus_async(location, publisher_name, offer, custom_headers).value! + def list_skus(location, publisher_name, offer, custom_headers:nil) + response = list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -496,8 +500,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(location, publisher_name, offer, custom_headers = nil) - list_skus_async(location, publisher_name, offer, custom_headers).value! + def list_skus_with_http_info(location, publisher_name, offer, custom_headers:nil) + list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value! end # @@ -512,7 +516,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(location, publisher_name, offer, custom_headers = nil) + def list_skus_async(location, publisher_name, offer, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'publisher_name is nil' if publisher_name.nil? fail ArgumentError, 'offer is nil' if offer.nil? @@ -521,6 +525,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb index 662169e2a..cc801f399 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb @@ -35,8 +35,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSetExtension] operation results. # - def create_or_update(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,9 +53,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -130,8 +130,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSetExtension] operation results. # - def get(resource_group_name, vm_scale_set_name, vmss_extension_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +148,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:expand, custom_headers:custom_headers).value! end # @@ -165,7 +165,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, vmss_extension_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vmss_extension_name is nil' if vmss_extension_name.nil? @@ -174,6 +174,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -229,8 +230,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list(resource_group_name, vm_scale_set_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers) + def list(resource_group_name, vm_scale_set_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -245,8 +246,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - list_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + list_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -260,7 +261,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def list_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -268,6 +269,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -326,8 +328,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSetExtension] operation results. # - def begin_create_or_update(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -345,8 +347,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:custom_headers).value! end # @@ -363,7 +365,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_scale_set_name, vmss_extension_name, extension_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vmss_extension_name is nil' if vmss_extension_name.nil? @@ -373,7 +375,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -448,8 +449,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -465,8 +466,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:custom_headers).value! end # @@ -481,7 +482,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, vmss_extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vmss_extension_name is nil' if vmss_extension_name.nil? @@ -490,6 +491,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -544,8 +546,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSetExtensionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -559,8 +561,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -573,11 +575,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -633,12 +636,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [VirtualMachineScaleSetExtensionListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = list_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = list_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb index 5dfb2c4be..855af228e 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb @@ -31,8 +31,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def cancel(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def cancel(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -45,9 +45,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def cancel_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def cancel_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,9 +89,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -117,8 +117,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [RollingUpgradeStatusInfo] operation results. # - def get_latest(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_latest_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_latest(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_latest_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +132,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_latest_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_latest_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_latest_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_latest_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -146,7 +146,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_latest_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_latest_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -154,6 +154,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -208,8 +209,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_cancel(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_cancel(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -223,8 +224,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_cancel_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_cancel_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -237,7 +238,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -245,6 +246,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -301,8 +303,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -318,8 +320,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_osupgrade_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_start_osupgrade_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -334,7 +336,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -342,6 +344,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb index 9264b8a48..5748ddeb5 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,9 +48,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -78,8 +78,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -93,9 +93,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -125,8 +125,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -140,9 +140,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -169,8 +169,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +184,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -213,8 +213,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSetVM] operation results. # - def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -229,8 +229,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -244,7 +244,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -253,6 +253,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +309,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSetVMInstanceView] operation results. # - def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -324,8 +325,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -339,7 +340,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -348,6 +349,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -405,8 +407,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers) + def list(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -423,8 +425,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value! end # @@ -440,7 +442,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) + def list_async(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -448,6 +450,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -505,8 +508,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -520,9 +523,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -549,8 +552,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -564,9 +567,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -593,8 +596,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -608,9 +611,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) + promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -638,8 +641,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -655,8 +658,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -671,7 +674,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -680,6 +683,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -736,8 +740,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -753,8 +757,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -769,7 +773,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -778,6 +782,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -836,8 +841,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -855,8 +860,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -873,7 +878,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -882,6 +887,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -937,8 +943,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -953,8 +959,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -968,7 +974,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -977,6 +983,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1034,8 +1041,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1052,8 +1059,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1069,7 +1076,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1078,6 +1085,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1133,8 +1141,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1149,8 +1157,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1164,7 +1172,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1173,6 +1181,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1228,8 +1237,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1244,8 +1253,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) - begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) + begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end # @@ -1259,7 +1268,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) + def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? @@ -1268,6 +1277,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1322,8 +1332,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSetVMListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1337,8 +1347,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1351,11 +1361,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1413,12 +1424,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [VirtualMachineScaleSetVMListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) - response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil) + response = list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb index 4621a6131..e9e398d5c 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb @@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSet] operation results. # - def create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -49,9 +49,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -79,8 +79,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSet] operation results. # - def update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -95,9 +95,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) + def update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -123,8 +123,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def delete(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -137,9 +137,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -165,8 +165,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSet] operation results. # - def get(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -180,8 +180,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -194,7 +194,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -202,6 +202,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -260,8 +261,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -276,9 +277,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -306,8 +307,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -322,9 +323,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) # Send request - promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -350,8 +351,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSetInstanceView] operation results. # - def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -365,8 +366,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -379,7 +380,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -387,6 +388,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +442,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -454,8 +456,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -467,13 +469,14 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -529,8 +532,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -545,8 +548,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -560,12 +563,13 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -621,8 +625,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list_skus(resource_group_name, vm_scale_set_name, custom_headers = nil) - first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers) + def list_skus(resource_group_name, vm_scale_set_name, custom_headers:nil) + first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -637,8 +641,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -652,7 +656,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -660,6 +664,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -718,8 +723,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -734,9 +739,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -764,8 +769,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -780,9 +785,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -810,8 +815,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -826,9 +831,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -857,8 +862,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -873,9 +878,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) # Send request - promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -904,8 +909,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def reimage(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def reimage(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -920,9 +925,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -951,8 +956,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -967,9 +972,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request - promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers) + promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -997,8 +1002,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSet] operation results. # - def begin_create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1014,8 +1019,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! end # @@ -1030,7 +1035,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1039,7 +1044,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1114,8 +1118,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSet] operation results. # - def begin_update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def begin_update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1131,8 +1135,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value! end # @@ -1147,7 +1151,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1156,7 +1160,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1219,8 +1222,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_delete(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1234,8 +1237,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! end # @@ -1248,7 +1251,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1256,6 +1259,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1314,8 +1318,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1333,8 +1337,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1351,7 +1355,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1359,7 +1363,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1424,8 +1427,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1441,8 +1444,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1457,7 +1460,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil? @@ -1466,7 +1469,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1533,8 +1535,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1552,8 +1554,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1570,7 +1572,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1578,7 +1580,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1643,8 +1644,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1660,8 +1661,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1676,7 +1677,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1684,7 +1685,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1749,8 +1749,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1766,8 +1766,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1782,7 +1782,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1790,7 +1790,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1856,8 +1855,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1874,8 +1873,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) - begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) + begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value! end # @@ -1891,7 +1890,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil) + def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil? @@ -1900,7 +1899,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1966,8 +1964,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_reimage(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_reimage(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1984,8 +1982,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -2001,7 +1999,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -2009,7 +2007,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2075,8 +2072,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2093,8 +2090,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) - begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value! + def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) + begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value! end # @@ -2110,7 +2107,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil) + def begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -2118,7 +2115,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2181,8 +2177,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2196,8 +2192,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2210,11 +2206,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2271,8 +2268,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSetListWithLinkResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2289,8 +2286,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2306,11 +2303,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2365,8 +2363,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineScaleSetListSkusResult] operation results. # - def list_skus_next(next_page_link, custom_headers = nil) - response = list_skus_next_async(next_page_link, custom_headers).value! + def list_skus_next(next_page_link, custom_headers:nil) + response = list_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2381,8 +2379,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_next_with_http_info(next_page_link, custom_headers = nil) - list_skus_next_async(next_page_link, custom_headers).value! + def list_skus_next_with_http_info(next_page_link, custom_headers:nil) + list_skus_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2396,11 +2394,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_next_async(next_page_link, custom_headers = nil) + def list_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2454,12 +2453,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [VirtualMachineScaleSetListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2477,12 +2476,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [VirtualMachineScaleSetListWithLinkResult] which provide lazy access # to pages of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2500,12 +2499,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [VirtualMachineScaleSetListSkusResult] which provide lazy access to # pages of the response. # - def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers = nil) - response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value! + def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil) + response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_skus_next_async(next_page_link, custom_headers) + list_skus_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb index 1d0429b33..119184683 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb @@ -31,8 +31,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineSizeListResult] operation results. # - def list(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -68,6 +68,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb index 55f48ad57..d6d41d451 100644 --- a/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb +++ b/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb @@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineCaptureResult] operation results. # - def capture(resource_group_name, vm_name, parameters, custom_headers = nil) - response = capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def capture(resource_group_name, vm_name, parameters, custom_headers:nil) + response = capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,9 +50,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def capture_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def capture_async(resource_group_name, vm_name, parameters, custom_headers:nil) # Send request - promise = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers) + promise = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachine] operation results. # - def create_or_update(resource_group_name, vm_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, vm_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,9 +96,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -124,8 +124,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def delete(resource_group_name, vm_name, custom_headers = nil) - response = delete_async(resource_group_name, vm_name, custom_headers).value! + def delete(resource_group_name, vm_name, custom_headers:nil) + response = delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -138,9 +138,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vm_name, custom_headers = nil) + def delete_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, vm_name, custom_headers) + promise = begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -169,8 +169,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachine] operation results. # - def get(resource_group_name, vm_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, vm_name, expand, custom_headers).value! + def get(resource_group_name, vm_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -187,8 +187,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vm_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, vm_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, vm_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, vm_name, expand:expand, custom_headers:custom_headers).value! end # @@ -204,7 +204,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vm_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, vm_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -212,6 +212,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -266,8 +267,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineInstanceView] operation results. # - def instance_view(resource_group_name, vm_name, custom_headers = nil) - response = instance_view_async(resource_group_name, vm_name, custom_headers).value! + def instance_view(resource_group_name, vm_name, custom_headers:nil) + response = instance_view_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -281,8 +282,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def instance_view_with_http_info(resource_group_name, vm_name, custom_headers = nil) - instance_view_async(resource_group_name, vm_name, custom_headers).value! + def instance_view_with_http_info(resource_group_name, vm_name, custom_headers:nil) + instance_view_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -295,7 +296,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def instance_view_async(resource_group_name, vm_name, custom_headers = nil) + def instance_view_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -303,6 +304,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -358,8 +360,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def convert_to_managed_disks(resource_group_name, vm_name, custom_headers = nil) - response = convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers).value! + def convert_to_managed_disks(resource_group_name, vm_name, custom_headers:nil) + response = convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -372,9 +374,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers = nil) + def convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers) + promise = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -401,8 +403,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def deallocate(resource_group_name, vm_name, custom_headers = nil) - response = deallocate_async(resource_group_name, vm_name, custom_headers).value! + def deallocate(resource_group_name, vm_name, custom_headers:nil) + response = deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -415,9 +417,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deallocate_async(resource_group_name, vm_name, custom_headers = nil) + def deallocate_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_deallocate_async(resource_group_name, vm_name, custom_headers) + promise = begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -443,8 +445,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def generalize(resource_group_name, vm_name, custom_headers = nil) - response = generalize_async(resource_group_name, vm_name, custom_headers).value! + def generalize(resource_group_name, vm_name, custom_headers:nil) + response = generalize_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -458,8 +460,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generalize_with_http_info(resource_group_name, vm_name, custom_headers = nil) - generalize_async(resource_group_name, vm_name, custom_headers).value! + def generalize_with_http_info(resource_group_name, vm_name, custom_headers:nil) + generalize_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -472,7 +474,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generalize_async(resource_group_name, vm_name, custom_headers = nil) + def generalize_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -480,6 +482,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -534,8 +537,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -549,8 +552,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -563,13 +566,14 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -623,8 +627,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -637,8 +641,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -650,12 +654,13 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -711,8 +716,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineSizeListResult] operation results. # - def list_available_sizes(resource_group_name, vm_name, custom_headers = nil) - response = list_available_sizes_async(resource_group_name, vm_name, custom_headers).value! + def list_available_sizes(resource_group_name, vm_name, custom_headers:nil) + response = list_available_sizes_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -727,8 +732,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_sizes_with_http_info(resource_group_name, vm_name, custom_headers = nil) - list_available_sizes_async(resource_group_name, vm_name, custom_headers).value! + def list_available_sizes_with_http_info(resource_group_name, vm_name, custom_headers:nil) + list_available_sizes_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -742,7 +747,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_sizes_async(resource_group_name, vm_name, custom_headers = nil) + def list_available_sizes_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -750,6 +755,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -806,8 +812,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def power_off(resource_group_name, vm_name, custom_headers = nil) - response = power_off_async(resource_group_name, vm_name, custom_headers).value! + def power_off(resource_group_name, vm_name, custom_headers:nil) + response = power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -820,9 +826,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def power_off_async(resource_group_name, vm_name, custom_headers = nil) + def power_off_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_power_off_async(resource_group_name, vm_name, custom_headers) + promise = begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -848,8 +854,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def restart(resource_group_name, vm_name, custom_headers = nil) - response = restart_async(resource_group_name, vm_name, custom_headers).value! + def restart(resource_group_name, vm_name, custom_headers:nil) + response = restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -862,9 +868,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(resource_group_name, vm_name, custom_headers = nil) + def restart_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_restart_async(resource_group_name, vm_name, custom_headers) + promise = begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -890,8 +896,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def start(resource_group_name, vm_name, custom_headers = nil) - response = start_async(resource_group_name, vm_name, custom_headers).value! + def start(resource_group_name, vm_name, custom_headers:nil) + response = start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -904,9 +910,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, vm_name, custom_headers = nil) + def start_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, vm_name, custom_headers) + promise = begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -932,8 +938,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def redeploy(resource_group_name, vm_name, custom_headers = nil) - response = redeploy_async(resource_group_name, vm_name, custom_headers).value! + def redeploy(resource_group_name, vm_name, custom_headers:nil) + response = redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -946,9 +952,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def redeploy_async(resource_group_name, vm_name, custom_headers = nil) + def redeploy_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_redeploy_async(resource_group_name, vm_name, custom_headers) + promise = begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -974,8 +980,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def perform_maintenance(resource_group_name, vm_name, custom_headers = nil) - response = perform_maintenance_async(resource_group_name, vm_name, custom_headers).value! + def perform_maintenance(resource_group_name, vm_name, custom_headers:nil) + response = perform_maintenance_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -988,9 +994,9 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def perform_maintenance_async(resource_group_name, vm_name, custom_headers = nil) + def perform_maintenance_async(resource_group_name, vm_name, custom_headers:nil) # Send request - promise = begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers) + promise = begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1019,8 +1025,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineCaptureResult] operation results. # - def begin_capture(resource_group_name, vm_name, parameters, custom_headers = nil) - response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_capture(resource_group_name, vm_name, parameters, custom_headers:nil) + response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1037,8 +1043,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers = nil) - begin_capture_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil) + begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! end # @@ -1054,7 +1060,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_capture_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1063,7 +1069,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1128,8 +1133,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachine] operation results. # - def begin_create_or_update(resource_group_name, vm_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, vm_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1145,8 +1150,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vm_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! end # @@ -1161,7 +1166,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, vm_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1170,7 +1175,6 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1243,8 +1247,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_delete(resource_group_name, vm_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vm_name, custom_headers).value! + def begin_delete(resource_group_name, vm_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1258,8 +1262,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_delete_async(resource_group_name, vm_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_delete_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1272,7 +1276,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vm_name, custom_headers = nil) + def begin_delete_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1280,6 +1284,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1335,8 +1340,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_convert_to_managed_disks(resource_group_name, vm_name, custom_headers = nil) - response = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers).value! + def begin_convert_to_managed_disks(resource_group_name, vm_name, custom_headers:nil) + response = begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1351,8 +1356,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_convert_to_managed_disks_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers).value! + def begin_convert_to_managed_disks_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1366,7 +1371,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers = nil) + def begin_convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1374,6 +1379,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1429,8 +1435,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_deallocate(resource_group_name, vm_name, custom_headers = nil) - response = begin_deallocate_async(resource_group_name, vm_name, custom_headers).value! + def begin_deallocate(resource_group_name, vm_name, custom_headers:nil) + response = begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1445,8 +1451,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deallocate_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_deallocate_async(resource_group_name, vm_name, custom_headers).value! + def begin_deallocate_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_deallocate_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1460,7 +1466,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deallocate_async(resource_group_name, vm_name, custom_headers = nil) + def begin_deallocate_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1468,6 +1474,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1524,8 +1531,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_power_off(resource_group_name, vm_name, custom_headers = nil) - response = begin_power_off_async(resource_group_name, vm_name, custom_headers).value! + def begin_power_off(resource_group_name, vm_name, custom_headers:nil) + response = begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1541,8 +1548,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_power_off_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_power_off_async(resource_group_name, vm_name, custom_headers).value! + def begin_power_off_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_power_off_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1557,7 +1564,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_power_off_async(resource_group_name, vm_name, custom_headers = nil) + def begin_power_off_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1565,6 +1572,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1619,8 +1627,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_restart(resource_group_name, vm_name, custom_headers = nil) - response = begin_restart_async(resource_group_name, vm_name, custom_headers).value! + def begin_restart(resource_group_name, vm_name, custom_headers:nil) + response = begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1634,8 +1642,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_restart_async(resource_group_name, vm_name, custom_headers).value! + def begin_restart_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_restart_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1648,7 +1656,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(resource_group_name, vm_name, custom_headers = nil) + def begin_restart_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1656,6 +1664,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1710,8 +1719,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_start(resource_group_name, vm_name, custom_headers = nil) - response = begin_start_async(resource_group_name, vm_name, custom_headers).value! + def begin_start(resource_group_name, vm_name, custom_headers:nil) + response = begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1725,8 +1734,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_start_async(resource_group_name, vm_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1739,7 +1748,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, vm_name, custom_headers = nil) + def begin_start_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1747,6 +1756,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1801,8 +1811,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_redeploy(resource_group_name, vm_name, custom_headers = nil) - response = begin_redeploy_async(resource_group_name, vm_name, custom_headers).value! + def begin_redeploy(resource_group_name, vm_name, custom_headers:nil) + response = begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1816,8 +1826,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_redeploy_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_redeploy_async(resource_group_name, vm_name, custom_headers).value! + def begin_redeploy_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_redeploy_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1830,7 +1840,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_redeploy_async(resource_group_name, vm_name, custom_headers = nil) + def begin_redeploy_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1838,6 +1848,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1892,8 +1903,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [OperationStatusResponse] operation results. # - def begin_perform_maintenance(resource_group_name, vm_name, custom_headers = nil) - response = begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers).value! + def begin_perform_maintenance(resource_group_name, vm_name, custom_headers:nil) + response = begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1907,8 +1918,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_perform_maintenance_with_http_info(resource_group_name, vm_name, custom_headers = nil) - begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers).value! + def begin_perform_maintenance_with_http_info(resource_group_name, vm_name, custom_headers:nil) + begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers:custom_headers).value! end # @@ -1921,7 +1932,7 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers = nil) + def begin_perform_maintenance_async(resource_group_name, vm_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_name is nil' if vm_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1929,6 +1940,7 @@ module Azure::Compute::Mgmt::V2017_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1984,8 +1996,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2000,8 +2012,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2015,11 +2027,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2074,8 +2087,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [VirtualMachineListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2090,8 +2103,8 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2105,11 +2118,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2164,12 +2178,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [VirtualMachineListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2185,12 +2199,12 @@ module Azure::Compute::Mgmt::V2017_12_01 # @return [VirtualMachineListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_compute/lib/profiles/latest/modules/compute_profile_module.rb b/management/azure_mgmt_compute/lib/profiles/latest/modules/compute_profile_module.rb index c9918862f..426b37ce9 100644 --- a/management/azure_mgmt_compute/lib/profiles/latest/modules/compute_profile_module.rb +++ b/management/azure_mgmt_compute/lib/profiles/latest/modules/compute_profile_module.rb @@ -214,39 +214,39 @@ module Azure::Compute::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Compute::Mgmt::V2017_03_30::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Compute::Mgmt::V2017_03_30::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @disks = client_0.disks - @snapshots = client_0.snapshots - @virtual_machine_run_commands = client_0.virtual_machine_run_commands + add_telemetry(@client_0) + @disks = @client_0.disks + @snapshots = @client_0.snapshots + @virtual_machine_run_commands = @client_0.virtual_machine_run_commands - client_1 = Azure::Compute::Mgmt::V2017_09_01::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::Compute::Mgmt::V2017_09_01::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @resource_skus = client_1.resource_skus + add_telemetry(@client_1) + @resource_skus = @client_1.resource_skus - client_2 = Azure::Compute::Mgmt::V2017_12_01::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(client_2.respond_to?(:subscription_id)) - client_2.subscription_id = configurable.subscription_id + @client_2 = Azure::Compute::Mgmt::V2017_12_01::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_2.respond_to?(:subscription_id)) + @client_2.subscription_id = configurable.subscription_id end - add_telemetry(client_2) - @availability_sets = client_2.availability_sets - @virtual_machine_extension_images = client_2.virtual_machine_extension_images - @virtual_machine_extensions = client_2.virtual_machine_extensions - @virtual_machine_images = client_2.virtual_machine_images - @usage_operations = client_2.usage_operations - @virtual_machine_sizes = client_2.virtual_machine_sizes - @images = client_2.images - @virtual_machines = client_2.virtual_machines - @virtual_machine_scale_sets = client_2.virtual_machine_scale_sets - @virtual_machine_scale_set_extensions = client_2.virtual_machine_scale_set_extensions - @virtual_machine_scale_set_rolling_upgrades = client_2.virtual_machine_scale_set_rolling_upgrades - @virtual_machine_scale_set_vms = client_2.virtual_machine_scale_set_vms + add_telemetry(@client_2) + @availability_sets = @client_2.availability_sets + @virtual_machine_extension_images = @client_2.virtual_machine_extension_images + @virtual_machine_extensions = @client_2.virtual_machine_extensions + @virtual_machine_images = @client_2.virtual_machine_images + @usage_operations = @client_2.usage_operations + @virtual_machine_sizes = @client_2.virtual_machine_sizes + @images = @client_2.images + @virtual_machines = @client_2.virtual_machines + @virtual_machine_scale_sets = @client_2.virtual_machine_scale_sets + @virtual_machine_scale_set_extensions = @client_2.virtual_machine_scale_set_extensions + @virtual_machine_scale_set_rolling_upgrades = @client_2.virtual_machine_scale_set_rolling_upgrades + @virtual_machine_scale_set_vms = @client_2.virtual_machine_scale_set_vms @model_classes = ModelClasses.new end @@ -256,6 +256,18 @@ module Azure::Compute::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_2.respond_to?method + @client_2.send(method, *args) + elsif @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_compute/lib/profiles/v2017_03_09/modules/compute_profile_module.rb b/management/azure_mgmt_compute/lib/profiles/v2017_03_09/modules/compute_profile_module.rb index 5f0e4f95a..487f4c6ac 100644 --- a/management/azure_mgmt_compute/lib/profiles/v2017_03_09/modules/compute_profile_module.rb +++ b/management/azure_mgmt_compute/lib/profiles/v2017_03_09/modules/compute_profile_module.rb @@ -136,20 +136,20 @@ module Azure::Compute::Profiles::V2017_03_09 @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Compute::Mgmt::V2016_03_30::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Compute::Mgmt::V2016_03_30::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @availability_sets = client_0.availability_sets - @virtual_machine_extension_images = client_0.virtual_machine_extension_images - @virtual_machine_extensions = client_0.virtual_machine_extensions - @virtual_machine_images = client_0.virtual_machine_images - @usage_operations = client_0.usage_operations - @virtual_machine_sizes = client_0.virtual_machine_sizes - @virtual_machines = client_0.virtual_machines - @virtual_machine_scale_sets = client_0.virtual_machine_scale_sets - @virtual_machine_scale_set_vms = client_0.virtual_machine_scale_set_vms + add_telemetry(@client_0) + @availability_sets = @client_0.availability_sets + @virtual_machine_extension_images = @client_0.virtual_machine_extension_images + @virtual_machine_extensions = @client_0.virtual_machine_extensions + @virtual_machine_images = @client_0.virtual_machine_images + @usage_operations = @client_0.usage_operations + @virtual_machine_sizes = @client_0.virtual_machine_sizes + @virtual_machines = @client_0.virtual_machines + @virtual_machine_scale_sets = @client_0.virtual_machine_scale_sets + @virtual_machine_scale_set_vms = @client_0.virtual_machine_scale_set_vms @model_classes = ModelClasses.new end @@ -159,6 +159,14 @@ module Azure::Compute::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_compute/spec/2017-03-30/virtual_machine_extension_images_spec.rb b/management/azure_mgmt_compute/spec/2017-03-30/virtual_machine_extension_images_spec.rb index 3a237a264..5e9052c56 100644 --- a/management/azure_mgmt_compute/spec/2017-03-30/virtual_machine_extension_images_spec.rb +++ b/management/azure_mgmt_compute/spec/2017-03-30/virtual_machine_extension_images_spec.rb @@ -34,7 +34,7 @@ describe VirtualMachineExtensionImages do it 'should list virtual machine extension image versions with filters and top' do filter = "startswith(name,'1.1')" orderby = 'name' - result = @client.list_versions_async(@location, @publisher_name, @type, filter, 1, orderby).value! + result = @client.list_versions_async(@location, @publisher_name, @type, filter:filter, top:1, orderby:orderby).value! expect(result.response.status).to eq(200) expect(result.body).not_to be_nil expect(result.body).to be_a Array diff --git a/management/azure_mgmt_compute/spec/2017-03-30/virtual_machines_spec.rb b/management/azure_mgmt_compute/spec/2017-03-30/virtual_machines_spec.rb index 815ff8c1b..8b0c06c2f 100644 --- a/management/azure_mgmt_compute/spec/2017-03-30/virtual_machines_spec.rb +++ b/management/azure_mgmt_compute/spec/2017-03-30/virtual_machines_spec.rb @@ -61,13 +61,13 @@ describe 'Virtual machine and vm extension api' do end it 'should get vm extension' do - result = @extensions_client.get_async(@resource_group.name, @vm_name, @ext_name, nil).value! + result = @extensions_client.get_async(@resource_group.name, @vm_name, @ext_name, expand:nil).value! expect(result.response.status).to eq(200) expect(result.body.name).to eq(@ext_name) end it 'should get vm extension with expand parameter' do - result = @extensions_client.get_async(@resource_group.name, @vm_name, @ext_name, 'instanceView').value! + result = @extensions_client.get_async(@resource_group.name, @vm_name, @ext_name, expand:'instanceView').value! expect(result.response.status).to eq(200) expect(result.body.name).to eq(@ext_name) end @@ -122,7 +122,7 @@ describe 'Virtual machine api' do end it 'should get virtual machine with expand parameter' do - result = @client.get_async(@resource_group.name, @vm_name, 'instanceView').value! + result = @client.get_async(@resource_group.name, @vm_name, expand:'instanceView').value! expect(result.response.status).to eq(200) expect(result.body.name).to eq(@vm_name) end diff --git a/management/azure_mgmt_consumption/lib/2017-04-24-preview/generated/azure_mgmt_consumption/operations.rb b/management/azure_mgmt_consumption/lib/2017-04-24-preview/generated/azure_mgmt_consumption/operations.rb index 77b2a84d2..d91921353 100644 --- a/management/azure_mgmt_consumption/lib/2017-04-24-preview/generated/azure_mgmt_consumption/operations.rb +++ b/management/azure_mgmt_consumption/lib/2017-04-24-preview/generated/azure_mgmt_consumption/operations.rb @@ -32,8 +32,8 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -45,8 +45,8 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,11 +57,12 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -115,8 +116,8 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -130,8 +131,8 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -144,11 +145,12 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -201,12 +203,12 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_consumption/lib/2017-04-24-preview/generated/azure_mgmt_consumption/usage_details.rb b/management/azure_mgmt_consumption/lib/2017-04-24-preview/generated/azure_mgmt_consumption/usage_details.rb index e2e1661af..abe111ea2 100644 --- a/management/azure_mgmt_consumption/lib/2017-04-24-preview/generated/azure_mgmt_consumption/usage_details.rb +++ b/management/azure_mgmt_consumption/lib/2017-04-24-preview/generated/azure_mgmt_consumption/usage_details.rb @@ -52,8 +52,8 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [Array] operation results. # - def list(scope, expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(scope, expand, filter, skiptoken, top, custom_headers) + def list(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -85,8 +85,8 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(scope, expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - list_async(scope, expand, filter, skiptoken, top, custom_headers).value! + def list_with_http_info(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + list_async(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers).value! end # @@ -117,7 +117,7 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(scope, expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) + def list_async(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000 fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 @@ -125,6 +125,7 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -181,8 +182,8 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [UsageDetailsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -198,8 +199,8 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -214,11 +215,12 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,12 +293,12 @@ module Azure::Consumption::Mgmt::V2017_04_24_preview # @return [UsageDetailsListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(scope, expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - response = list_async(scope, expand, filter, skiptoken, top, custom_headers).value! + def list_as_lazy(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + response = list_async(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_consumption/lib/2017-11-30/generated/azure_mgmt_consumption/operations.rb b/management/azure_mgmt_consumption/lib/2017-11-30/generated/azure_mgmt_consumption/operations.rb index bdf12c2c2..108edb493 100644 --- a/management/azure_mgmt_consumption/lib/2017-11-30/generated/azure_mgmt_consumption/operations.rb +++ b/management/azure_mgmt_consumption/lib/2017-11-30/generated/azure_mgmt_consumption/operations.rb @@ -30,8 +30,8 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -43,8 +43,8 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -55,11 +55,12 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -113,8 +114,8 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -128,8 +129,8 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -142,11 +143,12 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -199,12 +201,12 @@ module Azure::Consumption::Mgmt::V2017_11_30 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_consumption/lib/2017-11-30/generated/azure_mgmt_consumption/usage_details.rb b/management/azure_mgmt_consumption/lib/2017-11-30/generated/azure_mgmt_consumption/usage_details.rb index 6aeded5f9..d2d9ff286 100644 --- a/management/azure_mgmt_consumption/lib/2017-11-30/generated/azure_mgmt_consumption/usage_details.rb +++ b/management/azure_mgmt_consumption/lib/2017-11-30/generated/azure_mgmt_consumption/usage_details.rb @@ -50,8 +50,8 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [Array] operation results. # - def list(scope, expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(scope, expand, filter, skiptoken, top, custom_headers) + def list(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -83,8 +83,8 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(scope, expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - list_async(scope, expand, filter, skiptoken, top, custom_headers).value! + def list_with_http_info(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + list_async(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers).value! end # @@ -115,7 +115,7 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(scope, expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) + def list_async(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000 fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 @@ -123,6 +123,7 @@ module Azure::Consumption::Mgmt::V2017_11_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -178,8 +179,8 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [UsageDetailsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -194,8 +195,8 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -209,11 +210,12 @@ module Azure::Consumption::Mgmt::V2017_11_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -286,12 +288,12 @@ module Azure::Consumption::Mgmt::V2017_11_30 # @return [UsageDetailsListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(scope, expand = nil, filter = nil, skiptoken = nil, top = nil, custom_headers = nil) - response = list_async(scope, expand, filter, skiptoken, top, custom_headers).value! + def list_as_lazy(scope, expand:nil, filter:nil, skiptoken:nil, top:nil, custom_headers:nil) + response = list_async(scope, expand:expand, filter:filter, skiptoken:skiptoken, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_consumption/lib/profiles/latest/modules/consumption_profile_module.rb b/management/azure_mgmt_consumption/lib/profiles/latest/modules/consumption_profile_module.rb index 038cb5511..5adc1d821 100644 --- a/management/azure_mgmt_consumption/lib/profiles/latest/modules/consumption_profile_module.rb +++ b/management/azure_mgmt_consumption/lib/profiles/latest/modules/consumption_profile_module.rb @@ -40,13 +40,13 @@ module Azure::Consumption::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Consumption::Mgmt::V2017_11_30::ConsumptionManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Consumption::Mgmt::V2017_11_30::ConsumptionManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @usage_details = client_0.usage_details - @operations = client_0.operations + add_telemetry(@client_0) + @usage_details = @client_0.usage_details + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -56,6 +56,14 @@ module Azure::Consumption::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_groups.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_groups.rb index d33e69a97..31b72b023 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_groups.rb @@ -34,8 +34,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -69,12 +69,13 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -156,8 +157,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -176,13 +177,14 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -243,8 +245,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [ContainerGroup] operation results. # - def get(resource_group_name, container_group_name, custom_headers = nil) - response = get_async(resource_group_name, container_group_name, custom_headers).value! + def get(resource_group_name, container_group_name, custom_headers:nil) + response = get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -264,8 +266,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, container_group_name, custom_headers = nil) - get_async(resource_group_name, container_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, container_group_name, custom_headers:nil) + get_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! end # @@ -284,7 +286,7 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, container_group_name, custom_headers = nil) + def get_async(resource_group_name, container_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -292,6 +294,7 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -352,8 +355,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [ContainerGroup] operation results. # - def create_or_update(resource_group_name, container_group_name, container_group, custom_headers = nil) - response = create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers).value! + def create_or_update(resource_group_name, container_group_name, container_group, custom_headers:nil) + response = create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -373,8 +376,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, container_group_name, container_group, custom_headers = nil) - create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, container_group_name, container_group, custom_headers:nil) + create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:custom_headers).value! end # @@ -393,7 +396,7 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers = nil) + def create_or_update_async(resource_group_name, container_group_name, container_group, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -402,7 +405,6 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -481,8 +483,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [ContainerGroup] operation results. # - def delete(resource_group_name, container_group_name, custom_headers = nil) - response = delete_async(resource_group_name, container_group_name, custom_headers).value! + def delete(resource_group_name, container_group_name, custom_headers:nil) + response = delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -502,8 +504,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, container_group_name, custom_headers = nil) - delete_async(resource_group_name, container_group_name, custom_headers).value! + def delete_with_http_info(resource_group_name, container_group_name, custom_headers:nil) + delete_async(resource_group_name, container_group_name, custom_headers:custom_headers).value! end # @@ -522,7 +524,7 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, container_group_name, custom_headers = nil) + def delete_async(resource_group_name, container_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -530,6 +532,7 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -589,8 +592,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [ContainerGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -609,8 +612,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -628,11 +631,12 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -692,8 +696,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [ContainerGroupListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -713,8 +717,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -733,11 +737,12 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -795,12 +800,12 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # @return [ContainerGroupListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -823,12 +828,12 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # @return [ContainerGroupListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_logs.rb b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_logs.rb index b08bda82a..d5f2f6377 100644 --- a/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_logs.rb +++ b/management/azure_mgmt_container_instance/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_logs.rb @@ -40,8 +40,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [Logs] operation results. # - def list(resource_group_name, container_name, container_group_name, tail = nil, custom_headers = nil) - response = list_async(resource_group_name, container_name, container_group_name, tail, custom_headers).value! + def list(resource_group_name, container_name, container_group_name, tail:nil, custom_headers:nil) + response = list_async(resource_group_name, container_name, container_group_name, tail:tail, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -64,8 +64,8 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, container_name, container_group_name, tail = nil, custom_headers = nil) - list_async(resource_group_name, container_name, container_group_name, tail, custom_headers).value! + def list_with_http_info(resource_group_name, container_name, container_group_name, tail:nil, custom_headers:nil) + list_async(resource_group_name, container_name, container_group_name, tail:tail, custom_headers:custom_headers).value! end # @@ -87,7 +87,7 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, container_name, container_group_name, tail = nil, custom_headers = nil) + def list_async(resource_group_name, container_name, container_group_name, tail:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -96,6 +96,7 @@ module Azure::ContainerInstance::Mgmt::V2017_08_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_container_instance/lib/profiles/latest/modules/containerinstance_profile_module.rb b/management/azure_mgmt_container_instance/lib/profiles/latest/modules/containerinstance_profile_module.rb index 002de5ee5..1bbf44af1 100644 --- a/management/azure_mgmt_container_instance/lib/profiles/latest/modules/containerinstance_profile_module.rb +++ b/management/azure_mgmt_container_instance/lib/profiles/latest/modules/containerinstance_profile_module.rb @@ -53,13 +53,13 @@ module Azure::ContainerInstance::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::ContainerInstance::Mgmt::V2017_08_01_preview::ContainerInstanceManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ContainerInstance::Mgmt::V2017_08_01_preview::ContainerInstanceManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @container_groups = client_0.container_groups - @container_logs = client_0.container_logs + add_telemetry(@client_0) + @container_groups = @client_0.container_groups + @container_logs = @client_0.container_logs @model_classes = ModelClasses.new end @@ -69,6 +69,14 @@ module Azure::ContainerInstance::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_container_registry/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/registries.rb b/management/azure_mgmt_container_registry/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/registries.rb index 0354742cb..d9d06a6a5 100644 --- a/management/azure_mgmt_container_registry/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/registries.rb +++ b/management/azure_mgmt_container_registry/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/registries.rb @@ -33,8 +33,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [RegistryNameStatus] operation results. # - def check_name_availability(registry_name_check_request, custom_headers = nil) - response = check_name_availability_async(registry_name_check_request, custom_headers).value! + def check_name_availability(registry_name_check_request, custom_headers:nil) + response = check_name_availability_async(registry_name_check_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(registry_name_check_request, custom_headers = nil) - check_name_availability_async(registry_name_check_request, custom_headers).value! + def check_name_availability_with_http_info(registry_name_check_request, custom_headers:nil) + check_name_availability_async(registry_name_check_request, custom_headers:custom_headers).value! end # @@ -66,14 +66,13 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(registry_name_check_request, custom_headers = nil) + def check_name_availability_async(registry_name_check_request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'registry_name_check_request is nil' if registry_name_check_request.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -137,8 +136,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Registry] operation results. # - def get_properties(resource_group_name, registry_name, custom_headers = nil) - response = get_properties_async(resource_group_name, registry_name, custom_headers).value! + def get_properties(resource_group_name, registry_name, custom_headers:nil) + response = get_properties_async(resource_group_name, registry_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +152,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, registry_name, custom_headers = nil) - get_properties_async(resource_group_name, registry_name, custom_headers).value! + def get_properties_with_http_info(resource_group_name, registry_name, custom_headers:nil) + get_properties_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -168,7 +167,7 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, registry_name, custom_headers = nil) + def get_properties_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -176,6 +175,7 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -233,8 +233,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Registry] operation results. # - def create_or_update(resource_group_name, registry_name, registry, custom_headers = nil) - response = create_or_update_async(resource_group_name, registry_name, registry, custom_headers).value! + def create_or_update(resource_group_name, registry_name, registry, custom_headers:nil) + response = create_or_update_async(resource_group_name, registry_name, registry, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -251,8 +251,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, registry_name, registry, custom_headers = nil) - create_or_update_async(resource_group_name, registry_name, registry, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, registry_name, registry, custom_headers:nil) + create_or_update_async(resource_group_name, registry_name, registry, custom_headers:custom_headers).value! end # @@ -268,7 +268,7 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, registry_name, registry, custom_headers = nil) + def create_or_update_async(resource_group_name, registry_name, registry, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -277,7 +277,6 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -340,8 +339,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # will be added to the HTTP request. # # - def delete(resource_group_name, registry_name, custom_headers = nil) - response = delete_async(resource_group_name, registry_name, custom_headers).value! + def delete(resource_group_name, registry_name, custom_headers:nil) + response = delete_async(resource_group_name, registry_name, custom_headers:custom_headers).value! nil end @@ -356,8 +355,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, registry_name, custom_headers = nil) - delete_async(resource_group_name, registry_name, custom_headers).value! + def delete_with_http_info(resource_group_name, registry_name, custom_headers:nil) + delete_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -371,7 +370,7 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, registry_name, custom_headers = nil) + def delete_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -379,6 +378,7 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -426,8 +426,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Registry] operation results. # - def update(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value! + def update(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -444,8 +444,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) - update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value! + def update_with_http_info(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) + update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers).value! end # @@ -461,7 +461,7 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) + def update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -470,7 +470,6 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -534,8 +533,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -550,8 +549,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -565,13 +564,14 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -625,8 +625,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -639,8 +639,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -652,12 +652,13 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -714,8 +715,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [RegistryCredentials] operation results. # - def get_credentials(resource_group_name, registry_name, custom_headers = nil) - response = get_credentials_async(resource_group_name, registry_name, custom_headers).value! + def get_credentials(resource_group_name, registry_name, custom_headers:nil) + response = get_credentials_async(resource_group_name, registry_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -731,8 +732,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_credentials_with_http_info(resource_group_name, registry_name, custom_headers = nil) - get_credentials_async(resource_group_name, registry_name, custom_headers).value! + def get_credentials_with_http_info(resource_group_name, registry_name, custom_headers:nil) + get_credentials_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -747,7 +748,7 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_credentials_async(resource_group_name, registry_name, custom_headers = nil) + def get_credentials_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -755,6 +756,7 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -811,8 +813,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [RegistryCredentials] operation results. # - def regenerate_credentials(resource_group_name, registry_name, custom_headers = nil) - response = regenerate_credentials_async(resource_group_name, registry_name, custom_headers).value! + def regenerate_credentials(resource_group_name, registry_name, custom_headers:nil) + response = regenerate_credentials_async(resource_group_name, registry_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -828,8 +830,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_credentials_with_http_info(resource_group_name, registry_name, custom_headers = nil) - regenerate_credentials_async(resource_group_name, registry_name, custom_headers).value! + def regenerate_credentials_with_http_info(resource_group_name, registry_name, custom_headers:nil) + regenerate_credentials_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -844,7 +846,7 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_credentials_async(resource_group_name, registry_name, custom_headers = nil) + def regenerate_credentials_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -852,6 +854,7 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -907,8 +910,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [RegistryListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -923,8 +926,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -938,11 +941,12 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -997,8 +1001,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [RegistryListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1013,8 +1017,8 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1028,11 +1032,12 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1088,12 +1093,12 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # @return [RegistryListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1109,12 +1114,12 @@ module Azure::ContainerRegistry::Mgmt::V2016_06_27_preview # @return [RegistryListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/operations.rb b/management/azure_mgmt_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/operations.rb index 05bc7d778..ae6bf1b13 100644 --- a/management/azure_mgmt_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/operations.rb +++ b/management/azure_mgmt_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/operations.rb @@ -29,8 +29,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb b/management/azure_mgmt_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb index 845b28887..89f505f49 100644 --- a/management/azure_mgmt_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb +++ b/management/azure_mgmt_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb @@ -33,8 +33,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [RegistryNameStatus] operation results. # - def check_name_availability(registry_name_check_request, custom_headers = nil) - response = check_name_availability_async(registry_name_check_request, custom_headers).value! + def check_name_availability(registry_name_check_request, custom_headers:nil) + response = check_name_availability_async(registry_name_check_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(registry_name_check_request, custom_headers = nil) - check_name_availability_async(registry_name_check_request, custom_headers).value! + def check_name_availability_with_http_info(registry_name_check_request, custom_headers:nil) + check_name_availability_async(registry_name_check_request, custom_headers:custom_headers).value! end # @@ -66,14 +66,13 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(registry_name_check_request, custom_headers = nil) + def check_name_availability_async(registry_name_check_request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'registry_name_check_request is nil' if registry_name_check_request.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -137,8 +136,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Registry] operation results. # - def get(resource_group_name, registry_name, custom_headers = nil) - response = get_async(resource_group_name, registry_name, custom_headers).value! + def get(resource_group_name, registry_name, custom_headers:nil) + response = get_async(resource_group_name, registry_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +152,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, registry_name, custom_headers = nil) - get_async(resource_group_name, registry_name, custom_headers).value! + def get_with_http_info(resource_group_name, registry_name, custom_headers:nil) + get_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -168,7 +167,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, registry_name, custom_headers = nil) + def get_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -179,6 +178,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -236,8 +236,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Registry] operation results. # - def create(resource_group_name, registry_name, registry_create_parameters, custom_headers = nil) - response = create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers).value! + def create(resource_group_name, registry_name, registry_create_parameters, custom_headers:nil) + response = create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -253,9 +253,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers = nil) + def create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers) + promise = begin_create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -281,8 +281,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def delete(resource_group_name, registry_name, custom_headers = nil) - response = delete_async(resource_group_name, registry_name, custom_headers).value! + def delete(resource_group_name, registry_name, custom_headers:nil) + response = delete_async(resource_group_name, registry_name, custom_headers:custom_headers).value! nil end @@ -297,8 +297,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, registry_name, custom_headers = nil) - delete_async(resource_group_name, registry_name, custom_headers).value! + def delete_with_http_info(resource_group_name, registry_name, custom_headers:nil) + delete_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -312,7 +312,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, registry_name, custom_headers = nil) + def delete_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -323,6 +323,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -370,8 +371,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Registry] operation results. # - def update(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value! + def update(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -388,8 +389,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) - update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value! + def update_with_http_info(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) + update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers).value! end # @@ -405,7 +406,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) + def update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -417,7 +418,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -480,8 +480,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -495,8 +495,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -509,13 +509,14 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -568,8 +569,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -581,8 +582,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -593,12 +594,13 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -654,8 +656,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [RegistryListCredentialsResult] operation results. # - def list_credentials(resource_group_name, registry_name, custom_headers = nil) - response = list_credentials_async(resource_group_name, registry_name, custom_headers).value! + def list_credentials(resource_group_name, registry_name, custom_headers:nil) + response = list_credentials_async(resource_group_name, registry_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -670,8 +672,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_credentials_with_http_info(resource_group_name, registry_name, custom_headers = nil) - list_credentials_async(resource_group_name, registry_name, custom_headers).value! + def list_credentials_with_http_info(resource_group_name, registry_name, custom_headers:nil) + list_credentials_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -685,7 +687,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_credentials_async(resource_group_name, registry_name, custom_headers = nil) + def list_credentials_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -696,6 +698,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -755,8 +758,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [RegistryListCredentialsResult] operation results. # - def regenerate_credential(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil) - response = regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers).value! + def regenerate_credential(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:nil) + response = regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -775,8 +778,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_credential_with_http_info(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil) - regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers).value! + def regenerate_credential_with_http_info(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:nil) + regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:custom_headers).value! end # @@ -794,7 +797,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil) + def regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -806,7 +809,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -872,8 +874,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Registry] operation results. # - def begin_create(resource_group_name, registry_name, registry_create_parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers).value! + def begin_create(resource_group_name, registry_name, registry_create_parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -890,8 +892,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, registry_name, registry_create_parameters, custom_headers = nil) - begin_create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, registry_name, registry_create_parameters, custom_headers:nil) + begin_create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers:custom_headers).value! end # @@ -907,7 +909,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers = nil) + def begin_create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -919,7 +921,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -982,8 +983,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [RegistryListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -997,8 +998,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1011,11 +1012,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1069,8 +1071,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [RegistryListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1084,8 +1086,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1098,11 +1100,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1157,12 +1160,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # @return [RegistryListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1177,12 +1180,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_03_01 # @return [RegistryListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/operations.rb b/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/operations.rb index 0bb56d857..6c693eed7 100644 --- a/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/operations.rb +++ b/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/operations.rb @@ -29,8 +29,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/registries.rb b/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/registries.rb index 086be05a2..c78a6a23d 100644 --- a/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/registries.rb +++ b/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/registries.rb @@ -33,8 +33,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [RegistryNameStatus] operation results. # - def check_name_availability(registry_name_check_request, custom_headers = nil) - response = check_name_availability_async(registry_name_check_request, custom_headers).value! + def check_name_availability(registry_name_check_request, custom_headers:nil) + response = check_name_availability_async(registry_name_check_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(registry_name_check_request, custom_headers = nil) - check_name_availability_async(registry_name_check_request, custom_headers).value! + def check_name_availability_with_http_info(registry_name_check_request, custom_headers:nil) + check_name_availability_async(registry_name_check_request, custom_headers:custom_headers).value! end # @@ -66,14 +66,13 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(registry_name_check_request, custom_headers = nil) + def check_name_availability_async(registry_name_check_request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'registry_name_check_request is nil' if registry_name_check_request.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -137,8 +136,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Registry] operation results. # - def get(resource_group_name, registry_name, custom_headers = nil) - response = get_async(resource_group_name, registry_name, custom_headers).value! + def get(resource_group_name, registry_name, custom_headers:nil) + response = get_async(resource_group_name, registry_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +152,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, registry_name, custom_headers = nil) - get_async(resource_group_name, registry_name, custom_headers).value! + def get_with_http_info(resource_group_name, registry_name, custom_headers:nil) + get_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -168,7 +167,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, registry_name, custom_headers = nil) + def get_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -179,6 +178,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -235,8 +235,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Registry] operation results. # - def create(resource_group_name, registry_name, registry, custom_headers = nil) - response = create_async(resource_group_name, registry_name, registry, custom_headers).value! + def create(resource_group_name, registry_name, registry, custom_headers:nil) + response = create_async(resource_group_name, registry_name, registry, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -251,9 +251,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, registry_name, registry, custom_headers = nil) + def create_async(resource_group_name, registry_name, registry, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, registry_name, registry, custom_headers) + promise = begin_create_async(resource_group_name, registry_name, registry, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -278,8 +278,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, registry_name, custom_headers = nil) - response = delete_async(resource_group_name, registry_name, custom_headers).value! + def delete(resource_group_name, registry_name, custom_headers:nil) + response = delete_async(resource_group_name, registry_name, custom_headers:custom_headers).value! nil end @@ -293,9 +293,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, registry_name, custom_headers = nil) + def delete_async(resource_group_name, registry_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, registry_name, custom_headers) + promise = begin_delete_async(resource_group_name, registry_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -322,8 +322,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Registry] operation results. # - def update(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value! + def update(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -339,9 +339,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) + def update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -367,8 +367,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -382,8 +382,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -396,13 +396,14 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -455,8 +456,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -468,8 +469,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -480,12 +481,13 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -541,8 +543,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [RegistryListCredentialsResult] operation results. # - def list_credentials(resource_group_name, registry_name, custom_headers = nil) - response = list_credentials_async(resource_group_name, registry_name, custom_headers).value! + def list_credentials(resource_group_name, registry_name, custom_headers:nil) + response = list_credentials_async(resource_group_name, registry_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -557,8 +559,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_credentials_with_http_info(resource_group_name, registry_name, custom_headers = nil) - list_credentials_async(resource_group_name, registry_name, custom_headers).value! + def list_credentials_with_http_info(resource_group_name, registry_name, custom_headers:nil) + list_credentials_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -572,7 +574,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_credentials_async(resource_group_name, registry_name, custom_headers = nil) + def list_credentials_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -583,6 +585,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -642,8 +645,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [RegistryListCredentialsResult] operation results. # - def regenerate_credential(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil) - response = regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers).value! + def regenerate_credential(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:nil) + response = regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -662,8 +665,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_credential_with_http_info(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil) - regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers).value! + def regenerate_credential_with_http_info(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:nil) + regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:custom_headers).value! end # @@ -681,7 +684,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil) + def regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -693,7 +696,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -757,8 +759,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [RegistryUsageListResult] operation results. # - def list_usages(resource_group_name, registry_name, custom_headers = nil) - response = list_usages_async(resource_group_name, registry_name, custom_headers).value! + def list_usages(resource_group_name, registry_name, custom_headers:nil) + response = list_usages_async(resource_group_name, registry_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -773,8 +775,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usages_with_http_info(resource_group_name, registry_name, custom_headers = nil) - list_usages_async(resource_group_name, registry_name, custom_headers).value! + def list_usages_with_http_info(resource_group_name, registry_name, custom_headers:nil) + list_usages_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -788,7 +790,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usages_async(resource_group_name, registry_name, custom_headers = nil) + def list_usages_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -799,6 +801,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -855,8 +858,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Registry] operation results. # - def begin_create(resource_group_name, registry_name, registry, custom_headers = nil) - response = begin_create_async(resource_group_name, registry_name, registry, custom_headers).value! + def begin_create(resource_group_name, registry_name, registry, custom_headers:nil) + response = begin_create_async(resource_group_name, registry_name, registry, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -872,8 +875,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, registry_name, registry, custom_headers = nil) - begin_create_async(resource_group_name, registry_name, registry, custom_headers).value! + def begin_create_with_http_info(resource_group_name, registry_name, registry, custom_headers:nil) + begin_create_async(resource_group_name, registry_name, registry, custom_headers:custom_headers).value! end # @@ -888,7 +891,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, registry_name, registry, custom_headers = nil) + def begin_create_async(resource_group_name, registry_name, registry, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -900,7 +903,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -973,8 +975,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, registry_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, registry_name, custom_headers).value! + def begin_delete(resource_group_name, registry_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, registry_name, custom_headers:custom_headers).value! nil end @@ -989,8 +991,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, registry_name, custom_headers = nil) - begin_delete_async(resource_group_name, registry_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, registry_name, custom_headers:nil) + begin_delete_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -1004,7 +1006,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, registry_name, custom_headers = nil) + def begin_delete_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1015,6 +1017,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1062,8 +1065,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Registry] operation results. # - def begin_update(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value! + def begin_update(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1080,8 +1083,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers).value! end # @@ -1097,7 +1100,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1109,7 +1112,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1182,8 +1184,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [RegistryListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1197,8 +1199,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1211,11 +1213,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1269,8 +1272,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [RegistryListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1284,8 +1287,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1298,11 +1301,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1357,12 +1361,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [RegistryListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1377,12 +1381,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [RegistryListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/replications.rb b/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/replications.rb index 95b01aa31..2231d0fb4 100644 --- a/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/replications.rb +++ b/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/replications.rb @@ -33,8 +33,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Replication] operation results. # - def get(resource_group_name, registry_name, replication_name, custom_headers = nil) - response = get_async(resource_group_name, registry_name, replication_name, custom_headers).value! + def get(resource_group_name, registry_name, replication_name, custom_headers:nil) + response = get_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, registry_name, replication_name, custom_headers = nil) - get_async(resource_group_name, registry_name, replication_name, custom_headers).value! + def get_with_http_info(resource_group_name, registry_name, replication_name, custom_headers:nil) + get_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, registry_name, replication_name, custom_headers = nil) + def get_async(resource_group_name, registry_name, replication_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -138,8 +139,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Replication] operation results. # - def create(resource_group_name, registry_name, replication_name, replication, custom_headers = nil) - response = create_async(resource_group_name, registry_name, replication_name, replication, custom_headers).value! + def create(resource_group_name, registry_name, replication_name, replication, custom_headers:nil) + response = create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -155,9 +156,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, registry_name, replication_name, replication, custom_headers = nil) + def create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers) + promise = begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -183,8 +184,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, registry_name, replication_name, custom_headers = nil) - response = delete_async(resource_group_name, registry_name, replication_name, custom_headers).value! + def delete(resource_group_name, registry_name, replication_name, custom_headers:nil) + response = delete_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! nil end @@ -199,9 +200,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, registry_name, replication_name, custom_headers = nil) + def delete_async(resource_group_name, registry_name, replication_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers) + promise = begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -229,8 +230,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Replication] operation results. # - def update(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers).value! + def update(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -247,9 +248,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil) + def update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -276,8 +277,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list(resource_group_name, registry_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, registry_name, custom_headers) + def list(resource_group_name, registry_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, registry_name, custom_headers:custom_headers) first_page.get_all_items end @@ -292,8 +293,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, registry_name, custom_headers = nil) - list_async(resource_group_name, registry_name, custom_headers).value! + def list_with_http_info(resource_group_name, registry_name, custom_headers:nil) + list_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -307,7 +308,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, registry_name, custom_headers = nil) + def list_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -318,6 +319,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -375,8 +377,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Replication] operation results. # - def begin_create(resource_group_name, registry_name, replication_name, replication, custom_headers = nil) - response = begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers).value! + def begin_create(resource_group_name, registry_name, replication_name, replication, custom_headers:nil) + response = begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -393,8 +395,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, registry_name, replication_name, replication, custom_headers = nil) - begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers).value! + def begin_create_with_http_info(resource_group_name, registry_name, replication_name, replication, custom_headers:nil) + begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:custom_headers).value! end # @@ -410,7 +412,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers = nil) + def begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -426,7 +428,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -500,8 +501,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, registry_name, replication_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers).value! + def begin_delete(resource_group_name, registry_name, replication_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! nil end @@ -517,8 +518,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, registry_name, replication_name, custom_headers = nil) - begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, registry_name, replication_name, custom_headers:nil) + begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! end # @@ -533,7 +534,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers = nil) + def begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -548,6 +549,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -596,8 +598,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Replication] operation results. # - def begin_update(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers).value! + def begin_update(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -615,8 +617,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:custom_headers).value! end # @@ -633,7 +635,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -649,7 +651,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -722,8 +723,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [ReplicationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -737,8 +738,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -751,11 +752,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -811,12 +813,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [ReplicationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, registry_name, custom_headers = nil) - response = list_async(resource_group_name, registry_name, custom_headers).value! + def list_as_lazy(resource_group_name, registry_name, custom_headers:nil) + response = list_async(resource_group_name, registry_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb b/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb index acae53641..e0a7288bc 100644 --- a/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb +++ b/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb @@ -33,8 +33,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Webhook] operation results. # - def get(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = get_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def get(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = get_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil) - get_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def get_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) + get_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def get_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -139,8 +140,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Webhook] operation results. # - def create(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil) - response = create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers).value! + def create(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:nil) + response = create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -157,9 +158,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil) + def create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers) + promise = begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -185,8 +186,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = delete_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def delete(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! nil end @@ -201,9 +202,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def delete_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers) + promise = begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -231,8 +232,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Webhook] operation results. # - def update(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers).value! + def update(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -249,9 +250,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil) + def update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -278,8 +279,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list(resource_group_name, registry_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, registry_name, custom_headers) + def list(resource_group_name, registry_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, registry_name, custom_headers:custom_headers) first_page.get_all_items end @@ -294,8 +295,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, registry_name, custom_headers = nil) - list_async(resource_group_name, registry_name, custom_headers).value! + def list_with_http_info(resource_group_name, registry_name, custom_headers:nil) + list_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -309,7 +310,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, registry_name, custom_headers = nil) + def list_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -320,6 +321,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -376,8 +378,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [EventInfo] operation results. # - def ping(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = ping_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def ping(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = ping_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -393,8 +395,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def ping_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil) - ping_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def ping_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) + ping_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end # @@ -409,7 +411,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def ping_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def ping_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -424,6 +426,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -480,8 +483,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [CallbackConfig] operation results. # - def get_callback_config(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def get_callback_config(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -497,8 +500,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_callback_config_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil) - get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def get_callback_config_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) + get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end # @@ -513,7 +516,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -528,6 +531,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -584,8 +588,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list_events(resource_group_name, registry_name, webhook_name, custom_headers = nil) - first_page = list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers) + def list_events(resource_group_name, registry_name, webhook_name, custom_headers:nil) + first_page = list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers) first_page.get_all_items end @@ -601,8 +605,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_events_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil) - list_events_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def list_events_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) + list_events_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end # @@ -617,7 +621,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_events_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def list_events_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -632,6 +636,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -690,8 +695,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Webhook] operation results. # - def begin_create(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers).value! + def begin_create(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -709,8 +714,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil) - begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:nil) + begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:custom_headers).value! end # @@ -727,7 +732,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil) + def begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -743,7 +748,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -817,8 +821,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def begin_delete(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! nil end @@ -834,8 +838,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil) - begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) + begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end # @@ -850,7 +854,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -865,6 +869,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -913,8 +918,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Webhook] operation results. # - def begin_update(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers).value! + def begin_update(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -932,8 +937,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:custom_headers).value! end # @@ -950,7 +955,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -966,7 +971,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1039,8 +1043,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [WebhookListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1054,8 +1058,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1068,11 +1072,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1126,8 +1131,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [EventListResult] operation results. # - def list_events_next(next_page_link, custom_headers = nil) - response = list_events_next_async(next_page_link, custom_headers).value! + def list_events_next(next_page_link, custom_headers:nil) + response = list_events_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1141,8 +1146,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_events_next_with_http_info(next_page_link, custom_headers = nil) - list_events_next_async(next_page_link, custom_headers).value! + def list_events_next_with_http_info(next_page_link, custom_headers:nil) + list_events_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1155,11 +1160,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_events_next_async(next_page_link, custom_headers = nil) + def list_events_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1215,12 +1221,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # @return [WebhookListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, registry_name, custom_headers = nil) - response = list_async(resource_group_name, registry_name, custom_headers).value! + def list_as_lazy(resource_group_name, registry_name, custom_headers:nil) + response = list_async(resource_group_name, registry_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1238,12 +1244,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_06_01_preview # # @return [EventListResult] which provide lazy access to pages of the response. # - def list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = list_events_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = list_events_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_events_next_async(next_page_link, custom_headers) + list_events_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/operations.rb b/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/operations.rb index de1bb1236..5234dde9c 100644 --- a/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/operations.rb +++ b/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/operations.rb @@ -29,8 +29,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/registries.rb b/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/registries.rb index c01e75821..2b5fd00e2 100644 --- a/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/registries.rb +++ b/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/registries.rb @@ -33,8 +33,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [RegistryNameStatus] operation results. # - def check_name_availability(registry_name_check_request, custom_headers = nil) - response = check_name_availability_async(registry_name_check_request, custom_headers).value! + def check_name_availability(registry_name_check_request, custom_headers:nil) + response = check_name_availability_async(registry_name_check_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(registry_name_check_request, custom_headers = nil) - check_name_availability_async(registry_name_check_request, custom_headers).value! + def check_name_availability_with_http_info(registry_name_check_request, custom_headers:nil) + check_name_availability_async(registry_name_check_request, custom_headers:custom_headers).value! end # @@ -66,14 +66,13 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(registry_name_check_request, custom_headers = nil) + def check_name_availability_async(registry_name_check_request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'registry_name_check_request is nil' if registry_name_check_request.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -137,8 +136,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Registry] operation results. # - def get(resource_group_name, registry_name, custom_headers = nil) - response = get_async(resource_group_name, registry_name, custom_headers).value! + def get(resource_group_name, registry_name, custom_headers:nil) + response = get_async(resource_group_name, registry_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +152,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, registry_name, custom_headers = nil) - get_async(resource_group_name, registry_name, custom_headers).value! + def get_with_http_info(resource_group_name, registry_name, custom_headers:nil) + get_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -168,7 +167,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, registry_name, custom_headers = nil) + def get_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -179,6 +178,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -235,8 +235,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Registry] operation results. # - def create(resource_group_name, registry_name, registry, custom_headers = nil) - response = create_async(resource_group_name, registry_name, registry, custom_headers).value! + def create(resource_group_name, registry_name, registry, custom_headers:nil) + response = create_async(resource_group_name, registry_name, registry, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -251,9 +251,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, registry_name, registry, custom_headers = nil) + def create_async(resource_group_name, registry_name, registry, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, registry_name, registry, custom_headers) + promise = begin_create_async(resource_group_name, registry_name, registry, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -278,8 +278,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, registry_name, custom_headers = nil) - response = delete_async(resource_group_name, registry_name, custom_headers).value! + def delete(resource_group_name, registry_name, custom_headers:nil) + response = delete_async(resource_group_name, registry_name, custom_headers:custom_headers).value! nil end @@ -293,9 +293,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, registry_name, custom_headers = nil) + def delete_async(resource_group_name, registry_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, registry_name, custom_headers) + promise = begin_delete_async(resource_group_name, registry_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -322,8 +322,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Registry] operation results. # - def update(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value! + def update(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -339,9 +339,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) + def update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -367,8 +367,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -382,8 +382,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -396,13 +396,14 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -455,8 +456,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -468,8 +469,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -480,12 +481,13 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -541,8 +543,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [RegistryListCredentialsResult] operation results. # - def list_credentials(resource_group_name, registry_name, custom_headers = nil) - response = list_credentials_async(resource_group_name, registry_name, custom_headers).value! + def list_credentials(resource_group_name, registry_name, custom_headers:nil) + response = list_credentials_async(resource_group_name, registry_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -557,8 +559,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_credentials_with_http_info(resource_group_name, registry_name, custom_headers = nil) - list_credentials_async(resource_group_name, registry_name, custom_headers).value! + def list_credentials_with_http_info(resource_group_name, registry_name, custom_headers:nil) + list_credentials_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -572,7 +574,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_credentials_async(resource_group_name, registry_name, custom_headers = nil) + def list_credentials_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -583,6 +585,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -642,8 +645,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [RegistryListCredentialsResult] operation results. # - def regenerate_credential(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil) - response = regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers).value! + def regenerate_credential(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:nil) + response = regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -662,8 +665,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_credential_with_http_info(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil) - regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers).value! + def regenerate_credential_with_http_info(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:nil) + regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:custom_headers).value! end # @@ -681,7 +684,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil) + def regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -693,7 +696,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -757,8 +759,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [RegistryUsageListResult] operation results. # - def list_usages(resource_group_name, registry_name, custom_headers = nil) - response = list_usages_async(resource_group_name, registry_name, custom_headers).value! + def list_usages(resource_group_name, registry_name, custom_headers:nil) + response = list_usages_async(resource_group_name, registry_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -773,8 +775,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usages_with_http_info(resource_group_name, registry_name, custom_headers = nil) - list_usages_async(resource_group_name, registry_name, custom_headers).value! + def list_usages_with_http_info(resource_group_name, registry_name, custom_headers:nil) + list_usages_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -788,7 +790,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usages_async(resource_group_name, registry_name, custom_headers = nil) + def list_usages_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -799,6 +801,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -855,8 +858,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Registry] operation results. # - def begin_create(resource_group_name, registry_name, registry, custom_headers = nil) - response = begin_create_async(resource_group_name, registry_name, registry, custom_headers).value! + def begin_create(resource_group_name, registry_name, registry, custom_headers:nil) + response = begin_create_async(resource_group_name, registry_name, registry, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -872,8 +875,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, registry_name, registry, custom_headers = nil) - begin_create_async(resource_group_name, registry_name, registry, custom_headers).value! + def begin_create_with_http_info(resource_group_name, registry_name, registry, custom_headers:nil) + begin_create_async(resource_group_name, registry_name, registry, custom_headers:custom_headers).value! end # @@ -888,7 +891,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, registry_name, registry, custom_headers = nil) + def begin_create_async(resource_group_name, registry_name, registry, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -900,7 +903,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -973,8 +975,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, registry_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, registry_name, custom_headers).value! + def begin_delete(resource_group_name, registry_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, registry_name, custom_headers:custom_headers).value! nil end @@ -989,8 +991,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, registry_name, custom_headers = nil) - begin_delete_async(resource_group_name, registry_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, registry_name, custom_headers:nil) + begin_delete_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -1004,7 +1006,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, registry_name, custom_headers = nil) + def begin_delete_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1015,6 +1017,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1062,8 +1065,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Registry] operation results. # - def begin_update(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value! + def begin_update(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1080,8 +1083,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:custom_headers).value! end # @@ -1097,7 +1100,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1109,7 +1112,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1182,8 +1184,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [RegistryListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1197,8 +1199,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1211,11 +1213,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1269,8 +1272,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [RegistryListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1284,8 +1287,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1298,11 +1301,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1357,12 +1361,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [RegistryListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1377,12 +1381,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [RegistryListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/replications.rb b/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/replications.rb index e68757fcc..de2698da4 100644 --- a/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/replications.rb +++ b/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/replications.rb @@ -33,8 +33,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Replication] operation results. # - def get(resource_group_name, registry_name, replication_name, custom_headers = nil) - response = get_async(resource_group_name, registry_name, replication_name, custom_headers).value! + def get(resource_group_name, registry_name, replication_name, custom_headers:nil) + response = get_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, registry_name, replication_name, custom_headers = nil) - get_async(resource_group_name, registry_name, replication_name, custom_headers).value! + def get_with_http_info(resource_group_name, registry_name, replication_name, custom_headers:nil) + get_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, registry_name, replication_name, custom_headers = nil) + def get_async(resource_group_name, registry_name, replication_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -138,8 +139,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Replication] operation results. # - def create(resource_group_name, registry_name, replication_name, replication, custom_headers = nil) - response = create_async(resource_group_name, registry_name, replication_name, replication, custom_headers).value! + def create(resource_group_name, registry_name, replication_name, replication, custom_headers:nil) + response = create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -155,9 +156,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, registry_name, replication_name, replication, custom_headers = nil) + def create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers) + promise = begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -183,8 +184,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, registry_name, replication_name, custom_headers = nil) - response = delete_async(resource_group_name, registry_name, replication_name, custom_headers).value! + def delete(resource_group_name, registry_name, replication_name, custom_headers:nil) + response = delete_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! nil end @@ -199,9 +200,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, registry_name, replication_name, custom_headers = nil) + def delete_async(resource_group_name, registry_name, replication_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers) + promise = begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -229,8 +230,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Replication] operation results. # - def update(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers).value! + def update(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -247,9 +248,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil) + def update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -276,8 +277,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Array] operation results. # - def list(resource_group_name, registry_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, registry_name, custom_headers) + def list(resource_group_name, registry_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, registry_name, custom_headers:custom_headers) first_page.get_all_items end @@ -292,8 +293,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, registry_name, custom_headers = nil) - list_async(resource_group_name, registry_name, custom_headers).value! + def list_with_http_info(resource_group_name, registry_name, custom_headers:nil) + list_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -307,7 +308,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, registry_name, custom_headers = nil) + def list_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -318,6 +319,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -375,8 +377,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Replication] operation results. # - def begin_create(resource_group_name, registry_name, replication_name, replication, custom_headers = nil) - response = begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers).value! + def begin_create(resource_group_name, registry_name, replication_name, replication, custom_headers:nil) + response = begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -393,8 +395,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, registry_name, replication_name, replication, custom_headers = nil) - begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers).value! + def begin_create_with_http_info(resource_group_name, registry_name, replication_name, replication, custom_headers:nil) + begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:custom_headers).value! end # @@ -410,7 +412,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers = nil) + def begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -426,7 +428,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -500,8 +501,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, registry_name, replication_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers).value! + def begin_delete(resource_group_name, registry_name, replication_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! nil end @@ -517,8 +518,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, registry_name, replication_name, custom_headers = nil) - begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, registry_name, replication_name, custom_headers:nil) + begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! end # @@ -533,7 +534,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers = nil) + def begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -548,6 +549,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -596,8 +598,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Replication] operation results. # - def begin_update(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers).value! + def begin_update(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -615,8 +617,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:custom_headers).value! end # @@ -633,7 +635,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -649,7 +651,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -722,8 +723,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [ReplicationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -737,8 +738,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -751,11 +752,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -811,12 +813,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [ReplicationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, registry_name, custom_headers = nil) - response = list_async(resource_group_name, registry_name, custom_headers).value! + def list_as_lazy(resource_group_name, registry_name, custom_headers:nil) + response = list_async(resource_group_name, registry_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/webhooks.rb b/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/webhooks.rb index 98ac3f0e8..ec9a3a94f 100644 --- a/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/webhooks.rb +++ b/management/azure_mgmt_container_registry/lib/2017-10-01/generated/azure_mgmt_container_registry/webhooks.rb @@ -33,8 +33,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Webhook] operation results. # - def get(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = get_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def get(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = get_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil) - get_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def get_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) + get_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def get_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -139,8 +140,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Webhook] operation results. # - def create(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil) - response = create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers).value! + def create(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:nil) + response = create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -157,9 +158,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil) + def create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers) + promise = begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -185,8 +186,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = delete_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def delete(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! nil end @@ -201,9 +202,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def delete_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers) + promise = begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -231,8 +232,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Webhook] operation results. # - def update(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers).value! + def update(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -249,9 +250,9 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil) + def update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -278,8 +279,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Array] operation results. # - def list(resource_group_name, registry_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, registry_name, custom_headers) + def list(resource_group_name, registry_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, registry_name, custom_headers:custom_headers) first_page.get_all_items end @@ -294,8 +295,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, registry_name, custom_headers = nil) - list_async(resource_group_name, registry_name, custom_headers).value! + def list_with_http_info(resource_group_name, registry_name, custom_headers:nil) + list_async(resource_group_name, registry_name, custom_headers:custom_headers).value! end # @@ -309,7 +310,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, registry_name, custom_headers = nil) + def list_async(resource_group_name, registry_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -320,6 +321,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -376,8 +378,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [EventInfo] operation results. # - def ping(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = ping_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def ping(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = ping_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -393,8 +395,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def ping_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil) - ping_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def ping_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) + ping_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end # @@ -409,7 +411,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def ping_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def ping_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -424,6 +426,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -480,8 +483,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [CallbackConfig] operation results. # - def get_callback_config(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def get_callback_config(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -497,8 +500,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_callback_config_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil) - get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def get_callback_config_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) + get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end # @@ -513,7 +516,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -528,6 +531,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -584,8 +588,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Array] operation results. # - def list_events(resource_group_name, registry_name, webhook_name, custom_headers = nil) - first_page = list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers) + def list_events(resource_group_name, registry_name, webhook_name, custom_headers:nil) + first_page = list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers) first_page.get_all_items end @@ -601,8 +605,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_events_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil) - list_events_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def list_events_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) + list_events_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end # @@ -617,7 +621,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_events_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def list_events_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -632,6 +636,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -690,8 +695,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Webhook] operation results. # - def begin_create(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers).value! + def begin_create(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -709,8 +714,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil) - begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:nil) + begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:custom_headers).value! end # @@ -727,7 +732,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil) + def begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -743,7 +748,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -817,8 +821,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def begin_delete(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! nil end @@ -834,8 +838,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil) - begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) + begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end # @@ -850,7 +854,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers = nil) + def begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -865,6 +869,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -913,8 +918,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Webhook] operation results. # - def begin_update(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers).value! + def begin_update(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -932,8 +937,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:custom_headers).value! end # @@ -950,7 +955,7 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -966,7 +971,6 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1039,8 +1043,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [WebhookListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1054,8 +1058,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1068,11 +1072,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1126,8 +1131,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [EventListResult] operation results. # - def list_events_next(next_page_link, custom_headers = nil) - response = list_events_next_async(next_page_link, custom_headers).value! + def list_events_next(next_page_link, custom_headers:nil) + response = list_events_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1141,8 +1146,8 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_events_next_with_http_info(next_page_link, custom_headers = nil) - list_events_next_async(next_page_link, custom_headers).value! + def list_events_next_with_http_info(next_page_link, custom_headers:nil) + list_events_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1155,11 +1160,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_events_next_async(next_page_link, custom_headers = nil) + def list_events_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1215,12 +1221,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # @return [WebhookListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, registry_name, custom_headers = nil) - response = list_async(resource_group_name, registry_name, custom_headers).value! + def list_as_lazy(resource_group_name, registry_name, custom_headers:nil) + response = list_async(resource_group_name, registry_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1238,12 +1244,12 @@ module Azure::ContainerRegistry::Mgmt::V2017_10_01 # # @return [EventListResult] which provide lazy access to pages of the response. # - def list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers = nil) - response = list_events_async(resource_group_name, registry_name, webhook_name, custom_headers).value! + def list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers:nil) + response = list_events_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_events_next_async(next_page_link, custom_headers) + list_events_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_registry/lib/profiles/latest/modules/containerregistry_profile_module.rb b/management/azure_mgmt_container_registry/lib/profiles/latest/modules/containerregistry_profile_module.rb index 9f6618f70..e9db8c049 100644 --- a/management/azure_mgmt_container_registry/lib/profiles/latest/modules/containerregistry_profile_module.rb +++ b/management/azure_mgmt_container_registry/lib/profiles/latest/modules/containerregistry_profile_module.rb @@ -75,15 +75,15 @@ module Azure::ContainerRegistry::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::ContainerRegistry::Mgmt::V2017_10_01::ContainerRegistryManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ContainerRegistry::Mgmt::V2017_10_01::ContainerRegistryManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @registries = client_0.registries - @operations = client_0.operations - @replications = client_0.replications - @webhooks = client_0.webhooks + add_telemetry(@client_0) + @registries = @client_0.registries + @operations = @client_0.operations + @replications = @client_0.replications + @webhooks = @client_0.webhooks @model_classes = ModelClasses.new end @@ -93,6 +93,14 @@ module Azure::ContainerRegistry::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_container_service/lib/2016-03-30/generated/azure_mgmt_container_service/container_services.rb b/management/azure_mgmt_container_service/lib/2016-03-30/generated/azure_mgmt_container_service/container_services.rb index 1f38ab4d1..50780b6c5 100644 --- a/management/azure_mgmt_container_service/lib/2016-03-30/generated/azure_mgmt_container_service/container_services.rb +++ b/management/azure_mgmt_container_service/lib/2016-03-30/generated/azure_mgmt_container_service/container_services.rb @@ -31,8 +31,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [ContainerServiceListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,12 +60,13 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -124,8 +125,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [ContainerService] operation results. # - def create_or_update(resource_group_name, container_service_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, container_service_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -141,9 +142,9 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -173,8 +174,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [ContainerService] operation results. # - def get(resource_group_name, container_service_name, custom_headers = nil) - response = get_async(resource_group_name, container_service_name, custom_headers).value! + def get(resource_group_name, container_service_name, custom_headers:nil) + response = get_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -192,8 +193,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, container_service_name, custom_headers = nil) - get_async(resource_group_name, container_service_name, custom_headers).value! + def get_with_http_info(resource_group_name, container_service_name, custom_headers:nil) + get_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! end # @@ -210,7 +211,7 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, container_service_name, custom_headers = nil) + def get_async(resource_group_name, container_service_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'container_service_name is nil' if container_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -218,6 +219,7 @@ module Azure::ContainerService::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -275,8 +277,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, container_service_name, custom_headers = nil) - response = delete_async(resource_group_name, container_service_name, custom_headers).value! + def delete(resource_group_name, container_service_name, custom_headers:nil) + response = delete_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! nil end @@ -290,9 +292,9 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, container_service_name, custom_headers = nil) + def delete_async(resource_group_name, container_service_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, container_service_name, custom_headers) + promise = begin_delete_async(resource_group_name, container_service_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -318,8 +320,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [ContainerServiceListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -335,8 +337,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -351,13 +353,14 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -416,8 +419,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [ContainerService] operation results. # - def begin_create_or_update(resource_group_name, container_service_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, container_service_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -435,8 +438,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, container_service_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, container_service_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers).value! end # @@ -453,7 +456,7 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'container_service_name is nil' if container_service_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -462,7 +465,6 @@ module Azure::ContainerService::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -549,8 +551,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, container_service_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, container_service_name, custom_headers).value! + def begin_delete(resource_group_name, container_service_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! nil end @@ -569,8 +571,8 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, container_service_name, custom_headers = nil) - begin_delete_async(resource_group_name, container_service_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, container_service_name, custom_headers:nil) + begin_delete_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! end # @@ -588,7 +590,7 @@ module Azure::ContainerService::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, container_service_name, custom_headers = nil) + def begin_delete_async(resource_group_name, container_service_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'container_service_name is nil' if container_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -596,6 +598,7 @@ module Azure::ContainerService::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_container_service/lib/2016-09-30/generated/azure_mgmt_container_service/container_services.rb b/management/azure_mgmt_container_service/lib/2016-09-30/generated/azure_mgmt_container_service/container_services.rb index eff8319b1..553c72f60 100644 --- a/management/azure_mgmt_container_service/lib/2016-09-30/generated/azure_mgmt_container_service/container_services.rb +++ b/management/azure_mgmt_container_service/lib/2016-09-30/generated/azure_mgmt_container_service/container_services.rb @@ -33,8 +33,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -66,12 +66,13 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -132,8 +133,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [ContainerService] operation results. # - def create_or_update(resource_group_name, container_service_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, container_service_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -149,9 +150,9 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -183,8 +184,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [ContainerService] operation results. # - def get(resource_group_name, container_service_name, custom_headers = nil) - response = get_async(resource_group_name, container_service_name, custom_headers).value! + def get(resource_group_name, container_service_name, custom_headers:nil) + response = get_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -204,8 +205,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, container_service_name, custom_headers = nil) - get_async(resource_group_name, container_service_name, custom_headers).value! + def get_with_http_info(resource_group_name, container_service_name, custom_headers:nil) + get_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! end # @@ -224,7 +225,7 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, container_service_name, custom_headers = nil) + def get_async(resource_group_name, container_service_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'container_service_name is nil' if container_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -232,6 +233,7 @@ module Azure::ContainerService::Mgmt::V2016_09_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, container_service_name, custom_headers = nil) - response = delete_async(resource_group_name, container_service_name, custom_headers).value! + def delete(resource_group_name, container_service_name, custom_headers:nil) + response = delete_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! nil end @@ -306,9 +308,9 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, container_service_name, custom_headers = nil) + def delete_async(resource_group_name, container_service_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, container_service_name, custom_headers) + promise = begin_delete_async(resource_group_name, container_service_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -336,8 +338,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -355,8 +357,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -373,13 +375,14 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +443,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [ContainerService] operation results. # - def begin_create_or_update(resource_group_name, container_service_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, container_service_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -461,8 +464,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, container_service_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, container_service_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers).value! end # @@ -481,7 +484,7 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'container_service_name is nil' if container_service_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -490,7 +493,6 @@ module Azure::ContainerService::Mgmt::V2016_09_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -579,8 +581,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, container_service_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, container_service_name, custom_headers).value! + def begin_delete(resource_group_name, container_service_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! nil end @@ -601,8 +603,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, container_service_name, custom_headers = nil) - begin_delete_async(resource_group_name, container_service_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, container_service_name, custom_headers:nil) + begin_delete_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! end # @@ -622,7 +624,7 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, container_service_name, custom_headers = nil) + def begin_delete_async(resource_group_name, container_service_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'container_service_name is nil' if container_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -630,6 +632,7 @@ module Azure::ContainerService::Mgmt::V2016_09_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -678,8 +681,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [ContainerServiceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -697,8 +700,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -715,11 +718,12 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -778,8 +782,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [ContainerServiceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -798,8 +802,8 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -817,11 +821,12 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -878,12 +883,12 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # @return [ContainerServiceListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -904,12 +909,12 @@ module Azure::ContainerService::Mgmt::V2016_09_30 # @return [ContainerServiceListResult] which provide lazy access to pages of # the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_service/lib/2017-01-31/generated/azure_mgmt_container_service/container_services.rb b/management/azure_mgmt_container_service/lib/2017-01-31/generated/azure_mgmt_container_service/container_services.rb index 33374ff4d..0c7d0d06e 100644 --- a/management/azure_mgmt_container_service/lib/2017-01-31/generated/azure_mgmt_container_service/container_services.rb +++ b/management/azure_mgmt_container_service/lib/2017-01-31/generated/azure_mgmt_container_service/container_services.rb @@ -33,8 +33,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -66,12 +66,13 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -132,8 +133,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [ContainerService] operation results. # - def create_or_update(resource_group_name, container_service_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, container_service_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -149,9 +150,9 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -183,8 +184,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [ContainerService] operation results. # - def get(resource_group_name, container_service_name, custom_headers = nil) - response = get_async(resource_group_name, container_service_name, custom_headers).value! + def get(resource_group_name, container_service_name, custom_headers:nil) + response = get_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -204,8 +205,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, container_service_name, custom_headers = nil) - get_async(resource_group_name, container_service_name, custom_headers).value! + def get_with_http_info(resource_group_name, container_service_name, custom_headers:nil) + get_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! end # @@ -224,7 +225,7 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, container_service_name, custom_headers = nil) + def get_async(resource_group_name, container_service_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'container_service_name is nil' if container_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -232,6 +233,7 @@ module Azure::ContainerService::Mgmt::V2017_01_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, container_service_name, custom_headers = nil) - response = delete_async(resource_group_name, container_service_name, custom_headers).value! + def delete(resource_group_name, container_service_name, custom_headers:nil) + response = delete_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! nil end @@ -306,9 +308,9 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, container_service_name, custom_headers = nil) + def delete_async(resource_group_name, container_service_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, container_service_name, custom_headers) + promise = begin_delete_async(resource_group_name, container_service_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -336,8 +338,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -355,8 +357,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -373,13 +375,14 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +443,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [ContainerService] operation results. # - def begin_create_or_update(resource_group_name, container_service_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, container_service_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -461,8 +464,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, container_service_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, container_service_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:custom_headers).value! end # @@ -481,7 +484,7 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'container_service_name is nil' if container_service_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -490,7 +493,6 @@ module Azure::ContainerService::Mgmt::V2017_01_31 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -579,8 +581,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, container_service_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, container_service_name, custom_headers).value! + def begin_delete(resource_group_name, container_service_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! nil end @@ -601,8 +603,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, container_service_name, custom_headers = nil) - begin_delete_async(resource_group_name, container_service_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, container_service_name, custom_headers:nil) + begin_delete_async(resource_group_name, container_service_name, custom_headers:custom_headers).value! end # @@ -622,7 +624,7 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, container_service_name, custom_headers = nil) + def begin_delete_async(resource_group_name, container_service_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'container_service_name is nil' if container_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -630,6 +632,7 @@ module Azure::ContainerService::Mgmt::V2017_01_31 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -678,8 +681,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [ContainerServiceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -697,8 +700,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -715,11 +718,12 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -778,8 +782,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [ContainerServiceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -798,8 +802,8 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -817,11 +821,12 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -878,12 +883,12 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # @return [ContainerServiceListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -904,12 +909,12 @@ module Azure::ContainerService::Mgmt::V2017_01_31 # @return [ContainerServiceListResult] which provide lazy access to pages of # the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_container_service/lib/profiles/latest/modules/containerservice_profile_module.rb b/management/azure_mgmt_container_service/lib/profiles/latest/modules/containerservice_profile_module.rb index b82ae196a..88fe82e8f 100644 --- a/management/azure_mgmt_container_service/lib/profiles/latest/modules/containerservice_profile_module.rb +++ b/management/azure_mgmt_container_service/lib/profiles/latest/modules/containerservice_profile_module.rb @@ -46,12 +46,12 @@ module Azure::ContainerService::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::ContainerService::Mgmt::V2017_01_31::ComputeManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ContainerService::Mgmt::V2017_01_31::ComputeManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @container_services = client_0.container_services + add_telemetry(@client_0) + @container_services = @client_0.container_services @model_classes = ModelClasses.new end @@ -61,6 +61,14 @@ module Azure::ContainerService::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/authorization_policies.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/authorization_policies.rb index 3f1d5bf23..36823fef3 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/authorization_policies.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/authorization_policies.rb @@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [AuthorizationPolicyResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, authorization_policy_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'authorization_policy_name is nil' if authorization_policy_name.nil? @@ -85,7 +85,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -159,8 +158,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [AuthorizationPolicyResourceFormat] operation results. # - def get(resource_group_name, hub_name, authorization_policy_name, custom_headers = nil) - response = get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value! + def get(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil) + response = get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -175,8 +174,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers = nil) - get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil) + get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value! end # @@ -190,7 +189,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers = nil) + def get_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'authorization_policy_name is nil' if authorization_policy_name.nil? @@ -199,6 +198,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -253,8 +253,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers) + def list_by_hub(resource_group_name, hub_name, custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -268,8 +268,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -282,7 +282,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -290,6 +290,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -345,8 +346,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [AuthorizationPolicy] operation results. # - def regenerate_primary_key(resource_group_name, hub_name, authorization_policy_name, custom_headers = nil) - response = regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value! + def regenerate_primary_key(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil) + response = regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -361,8 +362,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_primary_key_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers = nil) - regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value! + def regenerate_primary_key_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil) + regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value! end # @@ -376,7 +377,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers = nil) + def regenerate_primary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'authorization_policy_name is nil' if authorization_policy_name.nil? @@ -385,6 +386,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +442,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [AuthorizationPolicy] operation results. # - def regenerate_secondary_key(resource_group_name, hub_name, authorization_policy_name, custom_headers = nil) - response = regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value! + def regenerate_secondary_key(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil) + response = regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -456,8 +458,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_secondary_key_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers = nil) - regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers).value! + def regenerate_secondary_key_with_http_info(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil) + regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:custom_headers).value! end # @@ -471,7 +473,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers = nil) + def regenerate_secondary_key_async(resource_group_name, hub_name, authorization_policy_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'authorization_policy_name is nil' if authorization_policy_name.nil? @@ -480,6 +482,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -534,8 +537,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [AuthorizationPolicyListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -549,8 +552,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -563,11 +566,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -622,12 +626,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [AuthorizationPolicyListResult] which provide lazy access to pages of # the response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/connector_mappings.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/connector_mappings.rb index 23b84f693..c148f7525 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/connector_mappings.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/connector_mappings.rb @@ -39,8 +39,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ConnectorMappingResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -59,8 +59,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, connector_name, mapping_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'connector_name is nil' if connector_name.nil? @@ -92,7 +92,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -167,8 +166,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ConnectorMappingResourceFormat] operation results. # - def get(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil) - response = get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers).value! + def get(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil) + response = get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,8 +183,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil) - get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil) + get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:custom_headers).value! end # @@ -200,7 +199,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil) + def get_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'connector_name is nil' if connector_name.nil? @@ -210,6 +209,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -265,8 +265,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def delete(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil) - response = delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers).value! + def delete(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil) + response = delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:custom_headers).value! nil end @@ -282,8 +282,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil) - delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers).value! + def delete_with_http_info(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil) + delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:custom_headers).value! end # @@ -298,7 +298,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers = nil) + def delete_async(resource_group_name, hub_name, connector_name, mapping_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'connector_name is nil' if connector_name.nil? @@ -308,6 +308,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -353,8 +354,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_connector(resource_group_name, hub_name, connector_name, custom_headers = nil) - first_page = list_by_connector_as_lazy(resource_group_name, hub_name, connector_name, custom_headers) + def list_by_connector(resource_group_name, hub_name, connector_name, custom_headers:nil) + first_page = list_by_connector_as_lazy(resource_group_name, hub_name, connector_name, custom_headers:custom_headers) first_page.get_all_items end @@ -369,8 +370,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_connector_with_http_info(resource_group_name, hub_name, connector_name, custom_headers = nil) - list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers).value! + def list_by_connector_with_http_info(resource_group_name, hub_name, connector_name, custom_headers:nil) + list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value! end # @@ -384,7 +385,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers = nil) + def list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'connector_name is nil' if connector_name.nil? @@ -393,6 +394,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -447,8 +449,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ConnectorMappingListResult] operation results. # - def list_by_connector_next(next_page_link, custom_headers = nil) - response = list_by_connector_next_async(next_page_link, custom_headers).value! + def list_by_connector_next(next_page_link, custom_headers:nil) + response = list_by_connector_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -462,8 +464,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_connector_next_with_http_info(next_page_link, custom_headers = nil) - list_by_connector_next_async(next_page_link, custom_headers).value! + def list_by_connector_next_with_http_info(next_page_link, custom_headers:nil) + list_by_connector_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -476,11 +478,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_connector_next_async(next_page_link, custom_headers = nil) + def list_by_connector_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -536,12 +539,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [ConnectorMappingListResult] which provide lazy access to pages of # the response. # - def list_by_connector_as_lazy(resource_group_name, hub_name, connector_name, custom_headers = nil) - response = list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers).value! + def list_by_connector_as_lazy(resource_group_name, hub_name, connector_name, custom_headers:nil) + response = list_by_connector_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_connector_next_async(next_page_link, custom_headers) + list_by_connector_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/connectors.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/connectors.rb index b01a2e46c..b9e5284ac 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/connectors.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/connectors.rb @@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ConnectorResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, connector_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, connector_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ConnectorResourceFormat] operation results. # - def get(resource_group_name, hub_name, connector_name, custom_headers = nil) - response = get_async(resource_group_name, hub_name, connector_name, custom_headers).value! + def get(resource_group_name, hub_name, connector_name, custom_headers:nil) + response = get_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, connector_name, custom_headers = nil) - get_async(resource_group_name, hub_name, connector_name, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, connector_name, custom_headers:nil) + get_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, connector_name, custom_headers = nil) + def get_async(resource_group_name, hub_name, connector_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'connector_name is nil' if connector_name.nil? @@ -123,6 +123,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, hub_name, connector_name, custom_headers = nil) - response = delete_async(resource_group_name, hub_name, connector_name, custom_headers).value! + def delete(resource_group_name, hub_name, connector_name, custom_headers:nil) + response = delete_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value! nil end @@ -191,9 +192,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, hub_name, connector_name, custom_headers = nil) + def delete_async(resource_group_name, hub_name, connector_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers) + promise = begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers) + def list_by_hub(resource_group_name, hub_name, custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -232,8 +233,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -246,7 +247,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -254,6 +255,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,8 +313,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ConnectorResourceFormat] operation results. # - def begin_create_or_update(resource_group_name, hub_name, connector_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, hub_name, connector_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -329,8 +331,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, hub_name, connector_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, hub_name, connector_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers:custom_headers).value! end # @@ -346,7 +348,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, hub_name, connector_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'connector_name is nil' if connector_name.nil? @@ -359,7 +361,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -422,8 +423,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, hub_name, connector_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers).value! + def begin_delete(resource_group_name, hub_name, connector_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value! nil end @@ -438,8 +439,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, hub_name, connector_name, custom_headers = nil) - begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, hub_name, connector_name, custom_headers:nil) + begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers:custom_headers).value! end # @@ -453,7 +454,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers = nil) + def begin_delete_async(resource_group_name, hub_name, connector_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'connector_name is nil' if connector_name.nil? @@ -462,6 +463,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -506,8 +508,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ConnectorListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -521,8 +523,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -535,11 +537,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -594,12 +597,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [ConnectorListResult] which provide lazy access to pages of the # response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/hubs.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/hubs.rb index f7e00a270..3e33d1a65 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/hubs.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/hubs.rb @@ -36,8 +36,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Hub] operation results. # - def create_or_update(resource_group_name, hub_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, hub_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, hub_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, hub_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, hub_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, "'hub_name' should satisfy the constraint - 'MaxLength': '64'" if !hub_name.nil? && hub_name.length > 64 @@ -81,7 +81,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -155,8 +154,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Hub] operation results. # - def update(resource_group_name, hub_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, hub_name, parameters, custom_headers).value! + def update(resource_group_name, hub_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -171,8 +170,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, hub_name, parameters, custom_headers = nil) - update_async(resource_group_name, hub_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, hub_name, parameters, custom_headers:nil) + update_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value! end # @@ -186,7 +185,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, hub_name, parameters, custom_headers = nil) + def update_async(resource_group_name, hub_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -195,7 +194,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -256,8 +254,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, hub_name, custom_headers = nil) - response = delete_async(resource_group_name, hub_name, custom_headers).value! + def delete(resource_group_name, hub_name, custom_headers:nil) + response = delete_async(resource_group_name, hub_name, custom_headers:custom_headers).value! nil end @@ -270,9 +268,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, hub_name, custom_headers = nil) + def delete_async(resource_group_name, hub_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, hub_name, custom_headers) + promise = begin_delete_async(resource_group_name, hub_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -296,8 +294,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Hub] operation results. # - def get(resource_group_name, hub_name, custom_headers = nil) - response = get_async(resource_group_name, hub_name, custom_headers).value! + def get(resource_group_name, hub_name, custom_headers:nil) + response = get_async(resource_group_name, hub_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -311,8 +309,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, custom_headers = nil) - get_async(resource_group_name, hub_name, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, custom_headers:nil) + get_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -325,7 +323,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, custom_headers = nil) + def get_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -333,6 +331,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -386,8 +385,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -400,8 +399,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -413,13 +412,14 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -472,8 +472,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -485,8 +485,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -497,12 +497,13 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -556,8 +557,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, hub_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, hub_name, custom_headers).value! + def begin_delete(resource_group_name, hub_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, hub_name, custom_headers:custom_headers).value! nil end @@ -571,8 +572,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, hub_name, custom_headers = nil) - begin_delete_async(resource_group_name, hub_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, hub_name, custom_headers:nil) + begin_delete_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -585,7 +586,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, hub_name, custom_headers = nil) + def begin_delete_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -593,6 +594,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -637,8 +639,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [HubListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -652,8 +654,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -666,11 +668,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -724,8 +727,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [HubListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -739,8 +742,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -753,11 +756,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -810,12 +814,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [HubListResult] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -829,12 +833,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [HubListResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/images.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/images.rb index 028489f8f..ca366c895 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/images.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/images.rb @@ -36,8 +36,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ImageDefinition] operation results. # - def get_upload_url_for_entity_type(resource_group_name, hub_name, parameters, custom_headers = nil) - response = get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers).value! + def get_upload_url_for_entity_type(resource_group_name, hub_name, parameters, custom_headers:nil) + response = get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_upload_url_for_entity_type_with_http_info(resource_group_name, hub_name, parameters, custom_headers = nil) - get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers).value! + def get_upload_url_for_entity_type_with_http_info(resource_group_name, hub_name, parameters, custom_headers:nil) + get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers = nil) + def get_upload_url_for_entity_type_async(resource_group_name, hub_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -78,7 +78,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -143,8 +142,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ImageDefinition] operation results. # - def get_upload_url_for_data(resource_group_name, hub_name, parameters, custom_headers = nil) - response = get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers).value! + def get_upload_url_for_data(resource_group_name, hub_name, parameters, custom_headers:nil) + response = get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -160,8 +159,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_upload_url_for_data_with_http_info(resource_group_name, hub_name, parameters, custom_headers = nil) - get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers).value! + def get_upload_url_for_data_with_http_info(resource_group_name, hub_name, parameters, custom_headers:nil) + get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers:custom_headers).value! end # @@ -176,7 +175,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers = nil) + def get_upload_url_for_data_async(resource_group_name, hub_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -185,7 +184,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/interactions.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/interactions.rb index fcf190805..8931c06ec 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/interactions.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/interactions.rb @@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [InteractionResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, interaction_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, interaction_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -85,8 +85,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [InteractionResourceFormat] operation results. # - def get(resource_group_name, hub_name, interaction_name, locale_code = 'en-us', custom_headers = nil) - response = get_async(resource_group_name, hub_name, interaction_name, locale_code, custom_headers).value! + def get(resource_group_name, hub_name, interaction_name, locale_code:'en-us', custom_headers:nil) + response = get_async(resource_group_name, hub_name, interaction_name, locale_code:locale_code, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -103,8 +103,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, interaction_name, locale_code = 'en-us', custom_headers = nil) - get_async(resource_group_name, hub_name, interaction_name, locale_code, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, interaction_name, locale_code:'en-us', custom_headers:nil) + get_async(resource_group_name, hub_name, interaction_name, locale_code:locale_code, custom_headers:custom_headers).value! end # @@ -120,7 +120,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, interaction_name, locale_code = 'en-us', custom_headers = nil) + def get_async(resource_group_name, hub_name, interaction_name, locale_code:'en-us', custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'interaction_name is nil' if interaction_name.nil? @@ -129,6 +129,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -185,8 +186,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, locale_code = 'en-us', custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, locale_code, custom_headers) + def list_by_hub(resource_group_name, hub_name, locale_code:'en-us', custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, locale_code:locale_code, custom_headers:custom_headers) first_page.get_all_items end @@ -202,8 +203,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, locale_code = 'en-us', custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, locale_code, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, locale_code:'en-us', custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, locale_code:locale_code, custom_headers:custom_headers).value! end # @@ -218,7 +219,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, locale_code = 'en-us', custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, locale_code:'en-us', custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -226,6 +227,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -281,8 +283,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [SuggestRelationshipLinksResponse] operation results. # - def suggest_relationship_links(resource_group_name, hub_name, interaction_name, custom_headers = nil) - response = suggest_relationship_links_async(resource_group_name, hub_name, interaction_name, custom_headers).value! + def suggest_relationship_links(resource_group_name, hub_name, interaction_name, custom_headers:nil) + response = suggest_relationship_links_async(resource_group_name, hub_name, interaction_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -297,8 +299,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def suggest_relationship_links_with_http_info(resource_group_name, hub_name, interaction_name, custom_headers = nil) - suggest_relationship_links_async(resource_group_name, hub_name, interaction_name, custom_headers).value! + def suggest_relationship_links_with_http_info(resource_group_name, hub_name, interaction_name, custom_headers:nil) + suggest_relationship_links_async(resource_group_name, hub_name, interaction_name, custom_headers:custom_headers).value! end # @@ -312,7 +314,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def suggest_relationship_links_async(resource_group_name, hub_name, interaction_name, custom_headers = nil) + def suggest_relationship_links_async(resource_group_name, hub_name, interaction_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'interaction_name is nil' if interaction_name.nil? @@ -321,6 +323,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,8 +381,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [InteractionResourceFormat] operation results. # - def begin_create_or_update(resource_group_name, hub_name, interaction_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, hub_name, interaction_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -396,8 +399,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, hub_name, interaction_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, hub_name, interaction_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers:custom_headers).value! end # @@ -413,7 +416,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, hub_name, interaction_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'interaction_name is nil' if interaction_name.nil? @@ -426,7 +429,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -489,8 +491,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [InteractionListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -504,8 +506,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -518,11 +520,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -579,12 +582,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [InteractionListResult] which provide lazy access to pages of the # response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, locale_code = 'en-us', custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, locale_code, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, locale_code:'en-us', custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, locale_code:locale_code, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/kpi.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/kpi.rb index 6c83bf555..be03d3aad 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/kpi.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/kpi.rb @@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [KpiResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, kpi_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, kpi_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [KpiResourceFormat] operation results. # - def get(resource_group_name, hub_name, kpi_name, custom_headers = nil) - response = get_async(resource_group_name, hub_name, kpi_name, custom_headers).value! + def get(resource_group_name, hub_name, kpi_name, custom_headers:nil) + response = get_async(resource_group_name, hub_name, kpi_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, kpi_name, custom_headers = nil) - get_async(resource_group_name, hub_name, kpi_name, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, kpi_name, custom_headers:nil) + get_async(resource_group_name, hub_name, kpi_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, kpi_name, custom_headers = nil) + def get_async(resource_group_name, hub_name, kpi_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'kpi_name is nil' if kpi_name.nil? @@ -123,6 +123,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, hub_name, kpi_name, custom_headers = nil) - response = delete_async(resource_group_name, hub_name, kpi_name, custom_headers).value! + def delete(resource_group_name, hub_name, kpi_name, custom_headers:nil) + response = delete_async(resource_group_name, hub_name, kpi_name, custom_headers:custom_headers).value! nil end @@ -191,9 +192,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, hub_name, kpi_name, custom_headers = nil) + def delete_async(resource_group_name, hub_name, kpi_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, hub_name, kpi_name, custom_headers) + promise = begin_delete_async(resource_group_name, hub_name, kpi_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def reprocess(resource_group_name, hub_name, kpi_name, custom_headers = nil) - response = reprocess_async(resource_group_name, hub_name, kpi_name, custom_headers).value! + def reprocess(resource_group_name, hub_name, kpi_name, custom_headers:nil) + response = reprocess_async(resource_group_name, hub_name, kpi_name, custom_headers:custom_headers).value! nil end @@ -233,8 +234,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def reprocess_with_http_info(resource_group_name, hub_name, kpi_name, custom_headers = nil) - reprocess_async(resource_group_name, hub_name, kpi_name, custom_headers).value! + def reprocess_with_http_info(resource_group_name, hub_name, kpi_name, custom_headers:nil) + reprocess_async(resource_group_name, hub_name, kpi_name, custom_headers:custom_headers).value! end # @@ -248,7 +249,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def reprocess_async(resource_group_name, hub_name, kpi_name, custom_headers = nil) + def reprocess_async(resource_group_name, hub_name, kpi_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'kpi_name is nil' if kpi_name.nil? @@ -257,6 +258,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -301,8 +303,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers) + def list_by_hub(resource_group_name, hub_name, custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -316,8 +318,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -330,7 +332,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -338,6 +340,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [KpiResourceFormat] operation results. # - def begin_create_or_update(resource_group_name, hub_name, kpi_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, hub_name, kpi_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -413,8 +416,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, hub_name, kpi_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, hub_name, kpi_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers:custom_headers).value! end # @@ -430,7 +433,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, hub_name, kpi_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'kpi_name is nil' if kpi_name.nil? @@ -443,7 +446,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -506,8 +508,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, hub_name, kpi_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, hub_name, kpi_name, custom_headers).value! + def begin_delete(resource_group_name, hub_name, kpi_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, hub_name, kpi_name, custom_headers:custom_headers).value! nil end @@ -522,8 +524,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, hub_name, kpi_name, custom_headers = nil) - begin_delete_async(resource_group_name, hub_name, kpi_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, hub_name, kpi_name, custom_headers:nil) + begin_delete_async(resource_group_name, hub_name, kpi_name, custom_headers:custom_headers).value! end # @@ -537,7 +539,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, hub_name, kpi_name, custom_headers = nil) + def begin_delete_async(resource_group_name, hub_name, kpi_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'kpi_name is nil' if kpi_name.nil? @@ -546,6 +548,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -590,8 +593,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [KpiListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -605,8 +608,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -619,11 +622,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -677,12 +681,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [KpiListResult] which provide lazy access to pages of the response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/links.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/links.rb index c2cacd306..b06a803a8 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/links.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/links.rb @@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [LinkResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, link_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, link_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [LinkResourceFormat] operation results. # - def get(resource_group_name, hub_name, link_name, custom_headers = nil) - response = get_async(resource_group_name, hub_name, link_name, custom_headers).value! + def get(resource_group_name, hub_name, link_name, custom_headers:nil) + response = get_async(resource_group_name, hub_name, link_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, link_name, custom_headers = nil) - get_async(resource_group_name, hub_name, link_name, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, link_name, custom_headers:nil) + get_async(resource_group_name, hub_name, link_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, link_name, custom_headers = nil) + def get_async(resource_group_name, hub_name, link_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'link_name is nil' if link_name.nil? @@ -123,6 +123,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -177,8 +178,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def delete(resource_group_name, hub_name, link_name, custom_headers = nil) - response = delete_async(resource_group_name, hub_name, link_name, custom_headers).value! + def delete(resource_group_name, hub_name, link_name, custom_headers:nil) + response = delete_async(resource_group_name, hub_name, link_name, custom_headers:custom_headers).value! nil end @@ -193,8 +194,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, hub_name, link_name, custom_headers = nil) - delete_async(resource_group_name, hub_name, link_name, custom_headers).value! + def delete_with_http_info(resource_group_name, hub_name, link_name, custom_headers:nil) + delete_async(resource_group_name, hub_name, link_name, custom_headers:custom_headers).value! end # @@ -208,7 +209,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, hub_name, link_name, custom_headers = nil) + def delete_async(resource_group_name, hub_name, link_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'link_name is nil' if link_name.nil? @@ -217,6 +218,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -261,8 +263,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers) + def list_by_hub(resource_group_name, hub_name, custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -276,8 +278,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -290,7 +292,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -298,6 +300,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -355,8 +358,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [LinkResourceFormat] operation results. # - def begin_create_or_update(resource_group_name, hub_name, link_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, hub_name, link_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -373,8 +376,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, hub_name, link_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, hub_name, link_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:custom_headers).value! end # @@ -390,7 +393,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, hub_name, link_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'link_name is nil' if link_name.nil? @@ -403,7 +406,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -466,8 +468,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [LinkListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,8 +483,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -495,11 +497,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -553,12 +556,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [LinkListResult] which provide lazy access to pages of the response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/operations.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/operations.rb index 6fe1c498f..317a8d256 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/operations.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/operations.rb @@ -32,8 +32,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -45,8 +45,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,11 +57,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -115,8 +116,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -130,8 +131,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -144,11 +145,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -201,12 +203,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/predictions.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/predictions.rb index 291619660..97fa39199 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/predictions.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/predictions.rb @@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [PredictionResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, prediction_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [PredictionResourceFormat] operation results. # - def get(resource_group_name, hub_name, prediction_name, custom_headers = nil) - response = get_async(resource_group_name, hub_name, prediction_name, custom_headers).value! + def get(resource_group_name, hub_name, prediction_name, custom_headers:nil) + response = get_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers = nil) - get_async(resource_group_name, hub_name, prediction_name, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers:nil) + get_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, prediction_name, custom_headers = nil) + def get_async(resource_group_name, hub_name, prediction_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'prediction_name is nil' if prediction_name.nil? @@ -123,6 +123,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, hub_name, prediction_name, custom_headers = nil) - response = delete_async(resource_group_name, hub_name, prediction_name, custom_headers).value! + def delete(resource_group_name, hub_name, prediction_name, custom_headers:nil) + response = delete_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value! nil end @@ -191,9 +192,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, hub_name, prediction_name, custom_headers = nil) + def delete_async(resource_group_name, hub_name, prediction_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers) + promise = begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -218,8 +219,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [PredictionTrainingResults] operation results. # - def get_training_results(resource_group_name, hub_name, prediction_name, custom_headers = nil) - response = get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers).value! + def get_training_results(resource_group_name, hub_name, prediction_name, custom_headers:nil) + response = get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -234,8 +235,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_training_results_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers = nil) - get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers).value! + def get_training_results_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers:nil) + get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value! end # @@ -249,7 +250,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers = nil) + def get_training_results_async(resource_group_name, hub_name, prediction_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'prediction_name is nil' if prediction_name.nil? @@ -258,6 +259,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -313,8 +315,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [PredictionModelStatus] operation results. # - def get_model_status(resource_group_name, hub_name, prediction_name, custom_headers = nil) - response = get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers).value! + def get_model_status(resource_group_name, hub_name, prediction_name, custom_headers:nil) + response = get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -329,8 +331,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_model_status_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers = nil) - get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers).value! + def get_model_status_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers:nil) + get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value! end # @@ -344,7 +346,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers = nil) + def get_model_status_async(resource_group_name, hub_name, prediction_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'prediction_name is nil' if prediction_name.nil? @@ -353,6 +355,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -409,8 +412,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def model_status(resource_group_name, hub_name, prediction_name, parameters, custom_headers = nil) - response = model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers).value! + def model_status(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil) + response = model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers).value! nil end @@ -427,8 +430,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def model_status_with_http_info(resource_group_name, hub_name, prediction_name, parameters, custom_headers = nil) - model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers).value! + def model_status_with_http_info(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil) + model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers).value! end # @@ -444,7 +447,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers = nil) + def model_status_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'prediction_name is nil' if prediction_name.nil? @@ -454,7 +457,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -507,8 +509,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers) + def list_by_hub(resource_group_name, hub_name, custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -522,8 +524,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -536,7 +538,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -544,6 +546,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -601,8 +604,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [PredictionResourceFormat] operation results. # - def begin_create_or_update(resource_group_name, hub_name, prediction_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -619,8 +622,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, hub_name, prediction_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:custom_headers).value! end # @@ -636,7 +639,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, hub_name, prediction_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'prediction_name is nil' if prediction_name.nil? @@ -648,7 +651,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -711,8 +713,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, hub_name, prediction_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers).value! + def begin_delete(resource_group_name, hub_name, prediction_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value! nil end @@ -727,8 +729,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers = nil) - begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, hub_name, prediction_name, custom_headers:nil) + begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers:custom_headers).value! end # @@ -742,7 +744,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers = nil) + def begin_delete_async(resource_group_name, hub_name, prediction_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'prediction_name is nil' if prediction_name.nil? @@ -751,6 +753,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -795,8 +798,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [PredictionListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -810,8 +813,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -824,11 +827,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -883,12 +887,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [PredictionListResult] which provide lazy access to pages of the # response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/profiles.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/profiles.rb index f738c46c3..9c91e22c9 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/profiles.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/profiles.rb @@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ProfileResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, profile_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, profile_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ProfileResourceFormat] operation results. # - def get(resource_group_name, hub_name, profile_name, locale_code = 'en-us', custom_headers = nil) - response = get_async(resource_group_name, hub_name, profile_name, locale_code, custom_headers).value! + def get(resource_group_name, hub_name, profile_name, locale_code:'en-us', custom_headers:nil) + response = get_async(resource_group_name, hub_name, profile_name, locale_code:locale_code, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -101,8 +101,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, profile_name, locale_code = 'en-us', custom_headers = nil) - get_async(resource_group_name, hub_name, profile_name, locale_code, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, profile_name, locale_code:'en-us', custom_headers:nil) + get_async(resource_group_name, hub_name, profile_name, locale_code:locale_code, custom_headers:custom_headers).value! end # @@ -117,7 +117,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, profile_name, locale_code = 'en-us', custom_headers = nil) + def get_async(resource_group_name, hub_name, profile_name, locale_code:'en-us', custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -126,6 +126,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -180,8 +181,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, hub_name, profile_name, locale_code = 'en-us', custom_headers = nil) - response = delete_async(resource_group_name, hub_name, profile_name, locale_code, custom_headers).value! + def delete(resource_group_name, hub_name, profile_name, locale_code:'en-us', custom_headers:nil) + response = delete_async(resource_group_name, hub_name, profile_name, locale_code:locale_code, custom_headers:custom_headers).value! nil end @@ -196,9 +197,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, hub_name, profile_name, locale_code = 'en-us', custom_headers = nil) + def delete_async(resource_group_name, hub_name, profile_name, locale_code:'en-us', custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, hub_name, profile_name, locale_code, custom_headers) + promise = begin_delete_async(resource_group_name, hub_name, profile_name, locale_code:locale_code, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -223,8 +224,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, locale_code = 'en-us', custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, locale_code, custom_headers) + def list_by_hub(resource_group_name, hub_name, locale_code:'en-us', custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, locale_code:locale_code, custom_headers:custom_headers) first_page.get_all_items end @@ -239,8 +240,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, locale_code = 'en-us', custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, locale_code, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, locale_code:'en-us', custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, locale_code:locale_code, custom_headers:custom_headers).value! end # @@ -254,7 +255,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, locale_code = 'en-us', custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, locale_code:'en-us', custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -262,6 +263,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -319,8 +321,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def get_enriching_kpis(resource_group_name, hub_name, profile_name, custom_headers = nil) - response = get_enriching_kpis_async(resource_group_name, hub_name, profile_name, custom_headers).value! + def get_enriching_kpis(resource_group_name, hub_name, profile_name, custom_headers:nil) + response = get_enriching_kpis_async(resource_group_name, hub_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -337,8 +339,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_enriching_kpis_with_http_info(resource_group_name, hub_name, profile_name, custom_headers = nil) - get_enriching_kpis_async(resource_group_name, hub_name, profile_name, custom_headers).value! + def get_enriching_kpis_with_http_info(resource_group_name, hub_name, profile_name, custom_headers:nil) + get_enriching_kpis_async(resource_group_name, hub_name, profile_name, custom_headers:custom_headers).value! end # @@ -354,7 +356,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_enriching_kpis_async(resource_group_name, hub_name, profile_name, custom_headers = nil) + def get_enriching_kpis_async(resource_group_name, hub_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -363,6 +365,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -436,8 +439,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ProfileResourceFormat] operation results. # - def begin_create_or_update(resource_group_name, hub_name, profile_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, hub_name, profile_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -454,8 +457,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, hub_name, profile_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, hub_name, profile_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers:custom_headers).value! end # @@ -471,7 +474,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, hub_name, profile_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -484,7 +487,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -548,8 +550,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, hub_name, profile_name, locale_code = 'en-us', custom_headers = nil) - response = begin_delete_async(resource_group_name, hub_name, profile_name, locale_code, custom_headers).value! + def begin_delete(resource_group_name, hub_name, profile_name, locale_code:'en-us', custom_headers:nil) + response = begin_delete_async(resource_group_name, hub_name, profile_name, locale_code:locale_code, custom_headers:custom_headers).value! nil end @@ -565,8 +567,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, hub_name, profile_name, locale_code = 'en-us', custom_headers = nil) - begin_delete_async(resource_group_name, hub_name, profile_name, locale_code, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, hub_name, profile_name, locale_code:'en-us', custom_headers:nil) + begin_delete_async(resource_group_name, hub_name, profile_name, locale_code:locale_code, custom_headers:custom_headers).value! end # @@ -581,7 +583,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, hub_name, profile_name, locale_code = 'en-us', custom_headers = nil) + def begin_delete_async(resource_group_name, hub_name, profile_name, locale_code:'en-us', custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -590,6 +592,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -634,8 +637,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ProfileListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -649,8 +652,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -663,11 +666,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -723,12 +727,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [ProfileListResult] which provide lazy access to pages of the # response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, locale_code = 'en-us', custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, locale_code, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, locale_code:'en-us', custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, locale_code:locale_code, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationship_links.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationship_links.rb index e89557e93..25cefcf60 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationship_links.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationship_links.rb @@ -38,8 +38,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RelationshipLinkResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,9 +55,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RelationshipLinkResourceFormat] operation results. # - def get(resource_group_name, hub_name, relationship_link_name, custom_headers = nil) - response = get_async(resource_group_name, hub_name, relationship_link_name, custom_headers).value! + def get(resource_group_name, hub_name, relationship_link_name, custom_headers:nil) + response = get_async(resource_group_name, hub_name, relationship_link_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -100,8 +100,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, relationship_link_name, custom_headers = nil) - get_async(resource_group_name, hub_name, relationship_link_name, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, relationship_link_name, custom_headers:nil) + get_async(resource_group_name, hub_name, relationship_link_name, custom_headers:custom_headers).value! end # @@ -115,7 +115,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, relationship_link_name, custom_headers = nil) + def get_async(resource_group_name, hub_name, relationship_link_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'relationship_link_name is nil' if relationship_link_name.nil? @@ -124,6 +124,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -177,8 +178,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, hub_name, relationship_link_name, custom_headers = nil) - response = delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers).value! + def delete(resource_group_name, hub_name, relationship_link_name, custom_headers:nil) + response = delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers:custom_headers).value! nil end @@ -192,9 +193,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers = nil) + def delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers) + promise = begin_delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -218,8 +219,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers) + def list_by_hub(resource_group_name, hub_name, custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -233,8 +234,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -247,7 +248,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -255,6 +256,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -313,8 +315,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RelationshipLinkResourceFormat] operation results. # - def begin_create_or_update(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -332,8 +334,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers:custom_headers).value! end # @@ -350,7 +352,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, hub_name, relationship_link_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'relationship_link_name is nil' if relationship_link_name.nil? @@ -363,7 +365,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -426,8 +427,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, hub_name, relationship_link_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers).value! + def begin_delete(resource_group_name, hub_name, relationship_link_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers:custom_headers).value! nil end @@ -442,8 +443,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, hub_name, relationship_link_name, custom_headers = nil) - begin_delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, hub_name, relationship_link_name, custom_headers:nil) + begin_delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers:custom_headers).value! end # @@ -457,7 +458,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers = nil) + def begin_delete_async(resource_group_name, hub_name, relationship_link_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'relationship_link_name is nil' if relationship_link_name.nil? @@ -466,6 +467,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -510,8 +512,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RelationshipLinkListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -525,8 +527,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -539,11 +541,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -598,12 +601,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [RelationshipLinkListResult] which provide lazy access to pages of # the response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationships.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationships.rb index 7f1ab70d2..0af2d32e9 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationships.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/relationships.rb @@ -37,8 +37,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RelationshipResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, relationship_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, relationship_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RelationshipResourceFormat] operation results. # - def get(resource_group_name, hub_name, relationship_name, custom_headers = nil) - response = get_async(resource_group_name, hub_name, relationship_name, custom_headers).value! + def get(resource_group_name, hub_name, relationship_name, custom_headers:nil) + response = get_async(resource_group_name, hub_name, relationship_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, relationship_name, custom_headers = nil) - get_async(resource_group_name, hub_name, relationship_name, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, relationship_name, custom_headers:nil) + get_async(resource_group_name, hub_name, relationship_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, relationship_name, custom_headers = nil) + def get_async(resource_group_name, hub_name, relationship_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'relationship_name is nil' if relationship_name.nil? @@ -123,6 +123,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, hub_name, relationship_name, custom_headers = nil) - response = delete_async(resource_group_name, hub_name, relationship_name, custom_headers).value! + def delete(resource_group_name, hub_name, relationship_name, custom_headers:nil) + response = delete_async(resource_group_name, hub_name, relationship_name, custom_headers:custom_headers).value! nil end @@ -191,9 +192,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, hub_name, relationship_name, custom_headers = nil) + def delete_async(resource_group_name, hub_name, relationship_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, hub_name, relationship_name, custom_headers) + promise = begin_delete_async(resource_group_name, hub_name, relationship_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers) + def list_by_hub(resource_group_name, hub_name, custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -232,8 +233,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -246,7 +247,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -254,6 +255,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,8 +313,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RelationshipResourceFormat] operation results. # - def begin_create_or_update(resource_group_name, hub_name, relationship_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, hub_name, relationship_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -329,8 +331,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, hub_name, relationship_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, hub_name, relationship_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers:custom_headers).value! end # @@ -346,7 +348,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, hub_name, relationship_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'relationship_name is nil' if relationship_name.nil? @@ -359,7 +361,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -422,8 +423,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, hub_name, relationship_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, hub_name, relationship_name, custom_headers).value! + def begin_delete(resource_group_name, hub_name, relationship_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, hub_name, relationship_name, custom_headers:custom_headers).value! nil end @@ -438,8 +439,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, hub_name, relationship_name, custom_headers = nil) - begin_delete_async(resource_group_name, hub_name, relationship_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, hub_name, relationship_name, custom_headers:nil) + begin_delete_async(resource_group_name, hub_name, relationship_name, custom_headers:custom_headers).value! end # @@ -453,7 +454,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, hub_name, relationship_name, custom_headers = nil) + def begin_delete_async(resource_group_name, hub_name, relationship_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'relationship_name is nil' if relationship_name.nil? @@ -462,6 +463,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -506,8 +508,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RelationshipListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -521,8 +523,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -535,11 +537,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -594,12 +597,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [RelationshipListResult] which provide lazy access to pages of the # response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/role_assignments.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/role_assignments.rb index a8713404b..528cc83f9 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/role_assignments.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/role_assignments.rb @@ -34,8 +34,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers) + def list_by_hub(resource_group_name, hub_name, custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -128,8 +129,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RoleAssignmentResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, assignment_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, assignment_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,9 +146,9 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -174,8 +175,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RoleAssignmentResourceFormat] operation results. # - def get(resource_group_name, hub_name, assignment_name, custom_headers = nil) - response = get_async(resource_group_name, hub_name, assignment_name, custom_headers).value! + def get(resource_group_name, hub_name, assignment_name, custom_headers:nil) + response = get_async(resource_group_name, hub_name, assignment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -190,8 +191,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, assignment_name, custom_headers = nil) - get_async(resource_group_name, hub_name, assignment_name, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, assignment_name, custom_headers:nil) + get_async(resource_group_name, hub_name, assignment_name, custom_headers:custom_headers).value! end # @@ -205,7 +206,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, assignment_name, custom_headers = nil) + def get_async(resource_group_name, hub_name, assignment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'assignment_name is nil' if assignment_name.nil? @@ -214,6 +215,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -268,8 +270,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def delete(resource_group_name, hub_name, assignment_name, custom_headers = nil) - response = delete_async(resource_group_name, hub_name, assignment_name, custom_headers).value! + def delete(resource_group_name, hub_name, assignment_name, custom_headers:nil) + response = delete_async(resource_group_name, hub_name, assignment_name, custom_headers:custom_headers).value! nil end @@ -284,8 +286,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, hub_name, assignment_name, custom_headers = nil) - delete_async(resource_group_name, hub_name, assignment_name, custom_headers).value! + def delete_with_http_info(resource_group_name, hub_name, assignment_name, custom_headers:nil) + delete_async(resource_group_name, hub_name, assignment_name, custom_headers:custom_headers).value! end # @@ -299,7 +301,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, hub_name, assignment_name, custom_headers = nil) + def delete_async(resource_group_name, hub_name, assignment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'assignment_name is nil' if assignment_name.nil? @@ -308,6 +310,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -355,8 +358,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RoleAssignmentResourceFormat] operation results. # - def begin_create_or_update(resource_group_name, hub_name, assignment_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, hub_name, assignment_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -373,8 +376,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, hub_name, assignment_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, hub_name, assignment_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers:custom_headers).value! end # @@ -390,7 +393,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, hub_name, assignment_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'assignment_name is nil' if assignment_name.nil? @@ -403,7 +406,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -466,8 +468,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RoleAssignmentListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,8 +483,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -495,11 +497,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -554,12 +557,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [RoleAssignmentListResult] which provide lazy access to pages of the # response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/roles.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/roles.rb index 57352e381..13d539886 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/roles.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/roles.rb @@ -34,8 +34,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers) + def list_by_hub(resource_group_name, hub_name, custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -125,8 +126,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RoleListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -140,8 +141,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -154,11 +155,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -212,12 +214,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [RoleListResult] which provide lazy access to pages of the response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/views.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/views.rb index 0d77718f0..006c93754 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/views.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/views.rb @@ -35,8 +35,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, user_id, custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, user_id, custom_headers) + def list_by_hub(resource_group_name, hub_name, user_id, custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, user_id, custom_headers:custom_headers) first_page.get_all_items end @@ -51,8 +51,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, user_id, custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, user_id, custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -75,6 +75,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -132,8 +133,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ViewResourceFormat] operation results. # - def create_or_update(resource_group_name, hub_name, view_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, hub_name, view_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -150,8 +151,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, hub_name, view_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, hub_name, view_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers:custom_headers).value! end # @@ -167,7 +168,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, hub_name, view_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'view_name is nil' if view_name.nil? @@ -179,7 +180,6 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -244,8 +244,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ViewResourceFormat] operation results. # - def get(resource_group_name, hub_name, view_name, user_id, custom_headers = nil) - response = get_async(resource_group_name, hub_name, view_name, user_id, custom_headers).value! + def get(resource_group_name, hub_name, view_name, user_id, custom_headers:nil) + response = get_async(resource_group_name, hub_name, view_name, user_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -261,8 +261,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, view_name, user_id, custom_headers = nil) - get_async(resource_group_name, hub_name, view_name, user_id, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, view_name, user_id, custom_headers:nil) + get_async(resource_group_name, hub_name, view_name, user_id, custom_headers:custom_headers).value! end # @@ -277,7 +277,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, view_name, user_id, custom_headers = nil) + def get_async(resource_group_name, hub_name, view_name, user_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'view_name is nil' if view_name.nil? @@ -287,6 +287,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -342,8 +343,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # will be added to the HTTP request. # # - def delete(resource_group_name, hub_name, view_name, user_id, custom_headers = nil) - response = delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers).value! + def delete(resource_group_name, hub_name, view_name, user_id, custom_headers:nil) + response = delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers:custom_headers).value! nil end @@ -359,8 +360,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, hub_name, view_name, user_id, custom_headers = nil) - delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers).value! + def delete_with_http_info(resource_group_name, hub_name, view_name, user_id, custom_headers:nil) + delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers:custom_headers).value! end # @@ -375,7 +376,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers = nil) + def delete_async(resource_group_name, hub_name, view_name, user_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'view_name is nil' if view_name.nil? @@ -385,6 +386,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -429,8 +431,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ViewListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -444,8 +446,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -458,11 +460,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -517,12 +520,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [ViewListResult] which provide lazy access to pages of the response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, user_id, custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, user_id, custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/widget_types.rb b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/widget_types.rb index a0506f95b..13a76ae4c 100644 --- a/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/widget_types.rb +++ b/management/azure_mgmt_customer_insights/lib/2017-04-26/generated/azure_mgmt_customer_insights/widget_types.rb @@ -34,8 +34,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Array] operation results. # - def list_by_hub(resource_group_name, hub_name, custom_headers = nil) - first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers) + def list_by_hub(resource_group_name, hub_name, custom_headers:nil) + first_page = list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers = nil) - list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_with_http_info(resource_group_name, hub_name, custom_headers:nil) + list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_async(resource_group_name, hub_name, custom_headers = nil) + def list_by_hub_async(resource_group_name, hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [WidgetTypeResourceFormat] operation results. # - def get(resource_group_name, hub_name, widget_type_name, custom_headers = nil) - response = get_async(resource_group_name, hub_name, widget_type_name, custom_headers).value! + def get(resource_group_name, hub_name, widget_type_name, custom_headers:nil) + response = get_async(resource_group_name, hub_name, widget_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -142,8 +143,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, hub_name, widget_type_name, custom_headers = nil) - get_async(resource_group_name, hub_name, widget_type_name, custom_headers).value! + def get_with_http_info(resource_group_name, hub_name, widget_type_name, custom_headers:nil) + get_async(resource_group_name, hub_name, widget_type_name, custom_headers:custom_headers).value! end # @@ -157,7 +158,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, hub_name, widget_type_name, custom_headers = nil) + def get_async(resource_group_name, hub_name, widget_type_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'hub_name is nil' if hub_name.nil? fail ArgumentError, 'widget_type_name is nil' if widget_type_name.nil? @@ -166,6 +167,7 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -220,8 +222,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [WidgetTypeListResult] operation results. # - def list_by_hub_next(next_page_link, custom_headers = nil) - response = list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next(next_page_link, custom_headers:nil) + response = list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -235,8 +237,8 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_hub_next_async(next_page_link, custom_headers).value! + def list_by_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -249,11 +251,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_hub_next_async(next_page_link, custom_headers = nil) + def list_by_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,12 +311,12 @@ module Azure::CustomerInsights::Mgmt::V2017_04_26 # @return [WidgetTypeListResult] which provide lazy access to pages of the # response. # - def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers = nil) - response = list_by_hub_async(resource_group_name, hub_name, custom_headers).value! + def list_by_hub_as_lazy(resource_group_name, hub_name, custom_headers:nil) + response = list_by_hub_async(resource_group_name, hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_hub_next_async(next_page_link, custom_headers) + list_by_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_customer_insights/lib/profiles/latest/modules/customerinsights_profile_module.rb b/management/azure_mgmt_customer_insights/lib/profiles/latest/modules/customerinsights_profile_module.rb index ee5194348..d70dbeb8e 100644 --- a/management/azure_mgmt_customer_insights/lib/profiles/latest/modules/customerinsights_profile_module.rb +++ b/management/azure_mgmt_customer_insights/lib/profiles/latest/modules/customerinsights_profile_module.rb @@ -150,28 +150,28 @@ module Azure::CustomerInsights::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::CustomerInsights::Mgmt::V2017_04_26::CustomerInsightsManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::CustomerInsights::Mgmt::V2017_04_26::CustomerInsightsManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @hubs = client_0.hubs - @profiles = client_0.profiles - @interactions = client_0.interactions - @relationships = client_0.relationships - @relationship_links = client_0.relationship_links - @authorization_policies = client_0.authorization_policies - @connectors = client_0.connectors - @connector_mappings = client_0.connector_mappings - @kpi = client_0.kpi - @widget_types = client_0.widget_types - @views = client_0.views - @links = client_0.links - @roles = client_0.roles - @role_assignments = client_0.role_assignments - @images = client_0.images - @predictions = client_0.predictions + add_telemetry(@client_0) + @operations = @client_0.operations + @hubs = @client_0.hubs + @profiles = @client_0.profiles + @interactions = @client_0.interactions + @relationships = @client_0.relationships + @relationship_links = @client_0.relationship_links + @authorization_policies = @client_0.authorization_policies + @connectors = @client_0.connectors + @connector_mappings = @client_0.connector_mappings + @kpi = @client_0.kpi + @widget_types = @client_0.widget_types + @views = @client_0.views + @links = @client_0.links + @roles = @client_0.roles + @role_assignments = @client_0.role_assignments + @images = @client_0.images + @predictions = @client_0.predictions @model_classes = ModelClasses.new end @@ -181,6 +181,14 @@ module Azure::CustomerInsights::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_datalake_analytics/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb b/management/azure_mgmt_datalake_analytics/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb index 9f0c14a94..aa112136e 100644 --- a/management/azure_mgmt_datalake_analytics/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb +++ b/management/azure_mgmt_datalake_analytics/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb @@ -36,8 +36,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [StorageAccountInfo] operation results. # - def get_storage_account(resource_group_name, account_name, storage_account_name, custom_headers = nil) - response = get_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def get_storage_account(resource_group_name, account_name, storage_account_name, custom_headers:nil) + response = get_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -56,8 +56,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers = nil) - get_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def get_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil) + get_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers = nil) + def get_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -84,6 +84,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -142,8 +143,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # will be added to the HTTP request. # # - def delete_storage_account(resource_group_name, account_name, storage_account_name, custom_headers = nil) - response = delete_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def delete_storage_account(resource_group_name, account_name, storage_account_name, custom_headers:nil) + response = delete_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! nil end @@ -162,8 +163,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers = nil) - delete_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def delete_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil) + delete_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers = nil) + def delete_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -190,6 +191,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -239,8 +241,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # will be added to the HTTP request. # # - def update_storage_account(resource_group_name, account_name, storage_account_name, parameters, custom_headers = nil) - response = update_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value! + def update_storage_account(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) + response = update_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value! nil end @@ -260,8 +262,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers = nil) - update_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value! + def update_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) + update_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value! end # @@ -280,7 +282,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers = nil) + def update_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -290,7 +292,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -349,8 +350,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # will be added to the HTTP request. # # - def add_storage_account(resource_group_name, account_name, storage_account_name, parameters, custom_headers = nil) - response = add_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value! + def add_storage_account(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) + response = add_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value! nil end @@ -371,8 +372,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers = nil) - add_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value! + def add_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) + add_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value! end # @@ -392,7 +393,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers = nil) + def add_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -402,7 +403,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -462,8 +462,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [BlobContainer] operation results. # - def get_storage_container(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) - response = get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value! + def get_storage_container(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) + response = get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -484,8 +484,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_storage_container_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) - get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value! + def get_storage_container_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) + get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! end # @@ -505,7 +505,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) + def get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -515,6 +515,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -575,8 +576,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers = nil) - first_page = list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers) + def list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers:nil) + first_page = list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -596,8 +597,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_storage_containers_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers = nil) - list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def list_storage_containers_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil) + list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! end # @@ -616,7 +617,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers = nil) + def list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -625,6 +626,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -686,8 +688,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) - first_page = list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers) + def list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) + first_page = list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers) first_page.get_all_items end @@ -708,8 +710,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_sas_tokens_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) - list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value! + def list_sas_tokens_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) + list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! end # @@ -729,7 +731,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) + def list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -739,6 +741,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -798,8 +801,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [DataLakeStoreAccountInfo] operation results. # - def get_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) - response = get_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value! + def get_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) + response = get_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -818,8 +821,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) - get_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value! + def get_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) + get_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value! end # @@ -837,7 +840,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) + def get_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil? @@ -846,6 +849,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -904,8 +908,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # will be added to the HTTP request. # # - def delete_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) - response = delete_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value! + def delete_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) + response = delete_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value! nil end @@ -924,8 +928,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) - delete_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value! + def delete_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) + delete_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value! end # @@ -943,7 +947,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) + def delete_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil? @@ -952,6 +956,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1002,8 +1007,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # will be added to the HTTP request. # # - def add_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil) - response = add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value! + def add_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers:nil) + response = add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers:custom_headers).value! nil end @@ -1024,8 +1029,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil) - add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value! + def add_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers:nil) + add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers:custom_headers).value! end # @@ -1045,7 +1050,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil) + def add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil? @@ -1055,7 +1060,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1135,8 +1139,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list_storage_accounts(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - first_page = list_storage_accounts_as_lazy(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers) + def list_storage_accounts(resource_group_name, account_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + first_page = list_storage_accounts_as_lazy(resource_group_name, account_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers) first_page.get_all_items end @@ -1177,8 +1181,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_storage_accounts_with_http_info(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - list_storage_accounts_async(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_storage_accounts_with_http_info(resource_group_name, account_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + list_storage_accounts_async(resource_group_name, account_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! end # @@ -1218,7 +1222,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_storage_accounts_async(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) + def list_storage_accounts_async(resource_group_name, account_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1226,6 +1230,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1307,8 +1312,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list_data_lake_store_accounts(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - first_page = list_data_lake_store_accounts_as_lazy(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers) + def list_data_lake_store_accounts(resource_group_name, account_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + first_page = list_data_lake_store_accounts_as_lazy(resource_group_name, account_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers) first_page.get_all_items end @@ -1349,8 +1354,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_data_lake_store_accounts_with_http_info(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - list_data_lake_store_accounts_async(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_data_lake_store_accounts_with_http_info(resource_group_name, account_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + list_data_lake_store_accounts_async(resource_group_name, account_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! end # @@ -1390,7 +1395,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_data_lake_store_accounts_async(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) + def list_data_lake_store_accounts_async(resource_group_name, account_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1398,6 +1403,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1476,8 +1482,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers) + def list_by_resource_group(resource_group_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers) first_page.get_all_items end @@ -1515,8 +1521,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! end # @@ -1553,13 +1559,14 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1636,8 +1643,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - first_page = list_as_lazy(filter, top, skip, expand, select, orderby, count, search, format, custom_headers) + def list(filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers) first_page.get_all_items end @@ -1673,8 +1680,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - list_async(filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_with_http_info(filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + list_async(filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! end # @@ -1709,12 +1716,13 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) + def list_async(filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1771,8 +1779,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [DataLakeAnalyticsAccount] operation results. # - def get(resource_group_name, account_name, custom_headers = nil) - response = get_async(resource_group_name, account_name, custom_headers).value! + def get(resource_group_name, account_name, custom_headers:nil) + response = get_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1788,8 +1796,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_async(resource_group_name, account_name, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -1804,7 +1812,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, custom_headers = nil) + def get_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1812,6 +1820,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1867,8 +1876,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -1883,9 +1892,9 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, account_name, custom_headers) + promise = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1913,8 +1922,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [DataLakeAnalyticsAccount] operation results. # - def create(resource_group_name, name, parameters, custom_headers = nil) - response = create_async(resource_group_name, name, parameters, custom_headers).value! + def create(resource_group_name, name, parameters, custom_headers:nil) + response = create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1930,9 +1939,9 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, name, parameters, custom_headers = nil) + def create_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1962,8 +1971,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [DataLakeAnalyticsAccount] operation results. # - def update(resource_group_name, name, parameters, custom_headers = nil) - response = update_async(resource_group_name, name, parameters, custom_headers).value! + def update(resource_group_name, name, parameters, custom_headers:nil) + response = update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1979,9 +1988,9 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, name, parameters, custom_headers = nil) + def update_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -2009,8 +2018,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, account_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, account_name, custom_headers).value! + def begin_delete(resource_group_name, account_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -2027,8 +2036,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - begin_delete_async(resource_group_name, account_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -2044,7 +2053,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, account_name, custom_headers = nil) + def begin_delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -2052,6 +2061,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2100,8 +2110,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [DataLakeAnalyticsAccount] operation results. # - def begin_create(resource_group_name, name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create(resource_group_name, name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2119,8 +2129,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -2137,7 +2147,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -2146,7 +2156,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2223,8 +2232,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [DataLakeAnalyticsAccount] operation results. # - def begin_update(resource_group_name, name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_update(resource_group_name, name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2242,8 +2251,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -2260,7 +2269,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -2269,7 +2278,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2344,8 +2352,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [ListBlobContainersResult] operation results. # - def list_storage_containers_next(next_page_link, custom_headers = nil) - response = list_storage_containers_next_async(next_page_link, custom_headers).value! + def list_storage_containers_next(next_page_link, custom_headers:nil) + response = list_storage_containers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2361,8 +2369,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_storage_containers_next_with_http_info(next_page_link, custom_headers = nil) - list_storage_containers_next_async(next_page_link, custom_headers).value! + def list_storage_containers_next_with_http_info(next_page_link, custom_headers:nil) + list_storage_containers_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2377,11 +2385,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_storage_containers_next_async(next_page_link, custom_headers = nil) + def list_storage_containers_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2436,8 +2445,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [ListSasTokensResult] operation results. # - def list_sas_tokens_next(next_page_link, custom_headers = nil) - response = list_sas_tokens_next_async(next_page_link, custom_headers).value! + def list_sas_tokens_next(next_page_link, custom_headers:nil) + response = list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2452,8 +2461,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_sas_tokens_next_with_http_info(next_page_link, custom_headers = nil) - list_sas_tokens_next_async(next_page_link, custom_headers).value! + def list_sas_tokens_next_with_http_info(next_page_link, custom_headers:nil) + list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2467,11 +2476,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_sas_tokens_next_async(next_page_link, custom_headers = nil) + def list_sas_tokens_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2528,8 +2538,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # @return [DataLakeAnalyticsAccountListStorageAccountsResult] operation # results. # - def list_storage_accounts_next(next_page_link, custom_headers = nil) - response = list_storage_accounts_next_async(next_page_link, custom_headers).value! + def list_storage_accounts_next(next_page_link, custom_headers:nil) + response = list_storage_accounts_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2545,8 +2555,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_storage_accounts_next_with_http_info(next_page_link, custom_headers = nil) - list_storage_accounts_next_async(next_page_link, custom_headers).value! + def list_storage_accounts_next_with_http_info(next_page_link, custom_headers:nil) + list_storage_accounts_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2561,11 +2571,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_storage_accounts_next_async(next_page_link, custom_headers = nil) + def list_storage_accounts_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2621,8 +2632,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [DataLakeAnalyticsAccountListDataLakeStoreResult] operation results. # - def list_data_lake_store_accounts_next(next_page_link, custom_headers = nil) - response = list_data_lake_store_accounts_next_async(next_page_link, custom_headers).value! + def list_data_lake_store_accounts_next(next_page_link, custom_headers:nil) + response = list_data_lake_store_accounts_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2638,8 +2649,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_data_lake_store_accounts_next_with_http_info(next_page_link, custom_headers = nil) - list_data_lake_store_accounts_next_async(next_page_link, custom_headers).value! + def list_data_lake_store_accounts_next_with_http_info(next_page_link, custom_headers:nil) + list_data_lake_store_accounts_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2654,11 +2665,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_data_lake_store_accounts_next_async(next_page_link, custom_headers = nil) + def list_data_lake_store_accounts_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2713,8 +2725,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [DataLakeAnalyticsAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2729,8 +2741,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2744,11 +2756,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2803,8 +2816,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [DataLakeAnalyticsAccountListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2819,8 +2832,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2834,11 +2847,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2899,12 +2913,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # @return [ListBlobContainersResult] which provide lazy access to pages of the # response. # - def list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers = nil) - response = list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers:nil) + response = list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_storage_containers_next_async(next_page_link, custom_headers) + list_storage_containers_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2928,12 +2942,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # @return [ListSasTokensResult] which provide lazy access to pages of the # response. # - def list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) - response = list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value! + def list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) + response = list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_sas_tokens_next_async(next_page_link, custom_headers) + list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2977,12 +2991,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # @return [DataLakeAnalyticsAccountListStorageAccountsResult] which provide # lazy access to pages of the response. # - def list_storage_accounts_as_lazy(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - response = list_storage_accounts_async(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_storage_accounts_as_lazy(resource_group_name, account_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + response = list_storage_accounts_async(resource_group_name, account_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_storage_accounts_next_async(next_page_link, custom_headers) + list_storage_accounts_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3026,12 +3040,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # @return [DataLakeAnalyticsAccountListDataLakeStoreResult] which provide lazy # access to pages of the response. # - def list_data_lake_store_accounts_as_lazy(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - response = list_data_lake_store_accounts_async(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_data_lake_store_accounts_as_lazy(resource_group_name, account_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + response = list_data_lake_store_accounts_async(resource_group_name, account_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_data_lake_store_accounts_next_async(next_page_link, custom_headers) + list_data_lake_store_accounts_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3072,12 +3086,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # @return [DataLakeAnalyticsAccountListResult] which provide lazy access to # pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3116,12 +3130,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview # @return [DataLakeAnalyticsAccountListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - response = list_async(filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_as_lazy(filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + response = list_async(filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/account.rb b/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/account.rb index 9dc94239f..2b7dfbab0 100644 --- a/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/account.rb +++ b/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/account.rb @@ -46,8 +46,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, filter, top, skip, select, orderby, count, custom_headers) + def list_by_resource_group(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers) first_page.get_all_items end @@ -76,8 +76,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, filter, top, skip, select, orderby, count, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! end # @@ -105,7 +105,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '1'" if !skip.nil? && skip < 1 @@ -114,6 +114,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -181,8 +182,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - first_page = list_as_lazy(filter, top, skip, select, orderby, count, custom_headers) + def list(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers) first_page.get_all_items end @@ -209,8 +210,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - list_async(filter, top, skip, select, orderby, count, custom_headers).value! + def list_with_http_info(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + list_async(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! end # @@ -236,7 +237,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) + def list_async(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '1'" if !skip.nil? && skip < 1 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -244,6 +245,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -303,8 +305,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [DataLakeAnalyticsAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,9 +323,9 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def create_async(resource_group_name, account_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -354,8 +356,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [DataLakeAnalyticsAccount] operation results. # - def update(resource_group_name, account_name, parameters = nil, custom_headers = nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, parameters:nil, custom_headers:nil) + response = update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -372,9 +374,9 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, account_name, parameters = nil, custom_headers = nil) + def update_async(resource_group_name, account_name, parameters:nil, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, account_name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -401,8 +403,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -417,9 +419,9 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, account_name, custom_headers) + promise = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -445,8 +447,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [DataLakeAnalyticsAccount] operation results. # - def get(resource_group_name, account_name, custom_headers = nil) - response = get_async(resource_group_name, account_name, custom_headers).value! + def get(resource_group_name, account_name, custom_headers:nil) + response = get_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -462,8 +464,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_async(resource_group_name, account_name, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -478,7 +480,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, custom_headers = nil) + def get_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -486,6 +488,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -545,8 +548,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [DataLakeAnalyticsAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -565,8 +568,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -584,7 +587,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -593,7 +596,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -671,8 +673,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [DataLakeAnalyticsAccount] operation results. # - def begin_update(resource_group_name, account_name, parameters = nil, custom_headers = nil) - response = begin_update_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_update(resource_group_name, account_name, parameters:nil, custom_headers:nil) + response = begin_update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -691,8 +693,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, account_name, parameters = nil, custom_headers = nil) - begin_update_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, account_name, parameters:nil, custom_headers:nil) + begin_update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers).value! end # @@ -710,7 +712,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, account_name, parameters = nil, custom_headers = nil) + def begin_update_async(resource_group_name, account_name, parameters:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -718,7 +720,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -793,8 +794,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, account_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, account_name, custom_headers).value! + def begin_delete(resource_group_name, account_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -811,8 +812,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - begin_delete_async(resource_group_name, account_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -828,7 +829,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, account_name, custom_headers = nil) + def begin_delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -836,6 +837,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -881,8 +883,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [DataLakeAnalyticsAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -897,8 +899,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -912,11 +914,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -971,8 +974,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [DataLakeAnalyticsAccountListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -987,8 +990,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1002,11 +1005,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1076,12 +1080,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [DataLakeAnalyticsAccountListResult] which provide lazy access to # pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, filter, top, skip, select, orderby, count, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1111,12 +1115,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [DataLakeAnalyticsAccountListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - response = list_async(filter, top, skip, select, orderby, count, custom_headers).value! + def list_as_lazy(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + response = list_async(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/compute_policies.rb b/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/compute_policies.rb index cf3946698..0806ecbf2 100644 --- a/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/compute_policies.rb +++ b/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/compute_policies.rb @@ -40,8 +40,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [ComputePolicy] operation results. # - def create_or_update(resource_group_name, account_name, compute_policy_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, account_name, compute_policy_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, account_name, compute_policy_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, account_name, compute_policy_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -64,8 +64,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, account_name, compute_policy_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, account_name, compute_policy_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, account_name, compute_policy_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, account_name, compute_policy_name, parameters, custom_headers:custom_headers).value! end # @@ -87,7 +87,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, account_name, compute_policy_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, account_name, compute_policy_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'compute_policy_name is nil' if compute_policy_name.nil? @@ -97,7 +97,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -165,8 +164,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [ComputePolicy] operation results. # - def update(resource_group_name, account_name, compute_policy_name, parameters = nil, custom_headers = nil) - response = update_async(resource_group_name, account_name, compute_policy_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, compute_policy_name, parameters:nil, custom_headers:nil) + response = update_async(resource_group_name, account_name, compute_policy_name, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -185,8 +184,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, compute_policy_name, parameters = nil, custom_headers = nil) - update_async(resource_group_name, account_name, compute_policy_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, compute_policy_name, parameters:nil, custom_headers:nil) + update_async(resource_group_name, account_name, compute_policy_name, parameters:parameters, custom_headers:custom_headers).value! end # @@ -204,7 +203,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, compute_policy_name, parameters = nil, custom_headers = nil) + def update_async(resource_group_name, account_name, compute_policy_name, parameters:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'compute_policy_name is nil' if compute_policy_name.nil? @@ -213,7 +212,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -279,8 +277,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, compute_policy_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, compute_policy_name, custom_headers).value! + def delete(resource_group_name, account_name, compute_policy_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, compute_policy_name, custom_headers:custom_headers).value! nil end @@ -298,8 +296,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, compute_policy_name, custom_headers = nil) - delete_async(resource_group_name, account_name, compute_policy_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, compute_policy_name, custom_headers:nil) + delete_async(resource_group_name, account_name, compute_policy_name, custom_headers:custom_headers).value! end # @@ -316,7 +314,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, compute_policy_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, compute_policy_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'compute_policy_name is nil' if compute_policy_name.nil? @@ -325,6 +323,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -373,8 +372,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [ComputePolicy] operation results. # - def get(resource_group_name, account_name, compute_policy_name, custom_headers = nil) - response = get_async(resource_group_name, account_name, compute_policy_name, custom_headers).value! + def get(resource_group_name, account_name, compute_policy_name, custom_headers:nil) + response = get_async(resource_group_name, account_name, compute_policy_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -392,8 +391,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, compute_policy_name, custom_headers = nil) - get_async(resource_group_name, account_name, compute_policy_name, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, compute_policy_name, custom_headers:nil) + get_async(resource_group_name, account_name, compute_policy_name, custom_headers:custom_headers).value! end # @@ -410,7 +409,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, compute_policy_name, custom_headers = nil) + def get_async(resource_group_name, account_name, compute_policy_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'compute_policy_name is nil' if compute_policy_name.nil? @@ -419,6 +418,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -476,8 +476,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list_by_account(resource_group_name, account_name, custom_headers = nil) - first_page = list_by_account_as_lazy(resource_group_name, account_name, custom_headers) + def list_by_account(resource_group_name, account_name, custom_headers:nil) + first_page = list_by_account_as_lazy(resource_group_name, account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -494,8 +494,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_by_account_async(resource_group_name, account_name, custom_headers).value! + def list_by_account_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_by_account_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -511,7 +511,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_async(resource_group_name, account_name, custom_headers = nil) + def list_by_account_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -519,6 +519,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -574,8 +575,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [ComputePolicyListResult] operation results. # - def list_by_account_next(next_page_link, custom_headers = nil) - response = list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next(next_page_link, custom_headers:nil) + response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -590,8 +591,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -605,11 +606,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_next_async(next_page_link, custom_headers = nil) + def list_by_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -667,12 +669,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [ComputePolicyListResult] which provide lazy access to pages of the # response. # - def list_by_account_as_lazy(resource_group_name, account_name, custom_headers = nil) - response = list_by_account_async(resource_group_name, account_name, custom_headers).value! + def list_by_account_as_lazy(resource_group_name, account_name, custom_headers:nil) + response = list_by_account_async(resource_group_name, account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_account_next_async(next_page_link, custom_headers) + list_by_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb b/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb index c320bcc9d..6b709b60d 100644 --- a/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb +++ b/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb @@ -37,8 +37,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def add(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil) - response = add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value! + def add(resource_group_name, account_name, data_lake_store_account_name, parameters:nil, custom_headers:nil) + response = add_async(resource_group_name, account_name, data_lake_store_account_name, parameters:parameters, custom_headers:custom_headers).value! nil end @@ -59,8 +59,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil) - add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value! + def add_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters:nil, custom_headers:nil) + add_async(resource_group_name, account_name, data_lake_store_account_name, parameters:parameters, custom_headers:custom_headers).value! end # @@ -80,7 +80,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_async(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil) + def add_async(resource_group_name, account_name, data_lake_store_account_name, parameters:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil? @@ -89,7 +89,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -146,8 +145,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value! + def delete(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value! nil end @@ -166,8 +165,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) - delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) + delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value! end # @@ -185,7 +184,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil? @@ -194,6 +193,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -243,8 +243,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [DataLakeStoreAccountInfo] operation results. # - def get(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) - response = get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value! + def get(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) + response = get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -263,8 +263,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) - get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) + get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value! end # @@ -282,7 +282,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil) + def get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil? @@ -291,6 +291,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -363,8 +364,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list_by_account(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - first_page = list_by_account_as_lazy(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers) + def list_by_account(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + first_page = list_by_account_as_lazy(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers) first_page.get_all_items end @@ -396,8 +397,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_with_http_info(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - list_by_account_async(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers).value! + def list_by_account_with_http_info(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + list_by_account_async(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! end # @@ -428,7 +429,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_async(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) + def list_by_account_async(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 @@ -438,6 +439,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -494,8 +496,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [DataLakeAnalyticsAccountListDataLakeStoreResult] operation results. # - def list_by_account_next(next_page_link, custom_headers = nil) - response = list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next(next_page_link, custom_headers:nil) + response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -511,8 +513,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -527,11 +529,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_next_async(next_page_link, custom_headers = nil) + def list_by_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -604,12 +607,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [DataLakeAnalyticsAccountListDataLakeStoreResult] which provide lazy # access to pages of the response. # - def list_by_account_as_lazy(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - response = list_by_account_async(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers).value! + def list_by_account_as_lazy(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + response = list_by_account_async(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_account_next_async(next_page_link, custom_headers) + list_by_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/firewall_rules.rb b/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/firewall_rules.rb index ebf61553a..bb8900cbb 100644 --- a/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/firewall_rules.rb +++ b/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/firewall_rules.rb @@ -38,8 +38,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [FirewallRule] operation results. # - def create_or_update(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil? @@ -91,7 +91,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -159,8 +158,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [FirewallRule] operation results. # - def update(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil) - response = update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, firewall_rule_name, parameters:nil, custom_headers:nil) + response = update_async(resource_group_name, account_name, firewall_rule_name, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -179,8 +178,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil) - update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, firewall_rule_name, parameters:nil, custom_headers:nil) + update_async(resource_group_name, account_name, firewall_rule_name, parameters:parameters, custom_headers:custom_headers).value! end # @@ -198,7 +197,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil) + def update_async(resource_group_name, account_name, firewall_rule_name, parameters:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil? @@ -207,7 +206,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -273,8 +271,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def delete(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! nil end @@ -292,8 +290,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! end # @@ -310,7 +308,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil? @@ -319,6 +317,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -366,8 +365,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [FirewallRule] operation results. # - def get(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - response = get_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def get(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + response = get_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -384,8 +383,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - get_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + get_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! end # @@ -401,7 +400,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) + def get_async(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil? @@ -410,6 +409,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -467,8 +467,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list_by_account(resource_group_name, account_name, custom_headers = nil) - first_page = list_by_account_as_lazy(resource_group_name, account_name, custom_headers) + def list_by_account(resource_group_name, account_name, custom_headers:nil) + first_page = list_by_account_as_lazy(resource_group_name, account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -485,8 +485,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_by_account_async(resource_group_name, account_name, custom_headers).value! + def list_by_account_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_by_account_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -502,7 +502,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_async(resource_group_name, account_name, custom_headers = nil) + def list_by_account_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -510,6 +510,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -565,8 +566,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [DataLakeAnalyticsFirewallRuleListResult] operation results. # - def list_by_account_next(next_page_link, custom_headers = nil) - response = list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next(next_page_link, custom_headers:nil) + response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -581,8 +582,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -596,11 +597,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_next_async(next_page_link, custom_headers = nil) + def list_by_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -658,12 +660,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [DataLakeAnalyticsFirewallRuleListResult] which provide lazy access # to pages of the response. # - def list_by_account_as_lazy(resource_group_name, account_name, custom_headers = nil) - response = list_by_account_async(resource_group_name, account_name, custom_headers).value! + def list_by_account_as_lazy(resource_group_name, account_name, custom_headers:nil) + response = list_by_account_async(resource_group_name, account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_account_next_async(next_page_link, custom_headers) + list_by_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb b/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb index 4c15defbb..5453170ce 100644 --- a/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb +++ b/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb @@ -37,8 +37,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def add(resource_group_name, account_name, storage_account_name, parameters, custom_headers = nil) - response = add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value! + def add(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) + response = add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value! nil end @@ -59,8 +59,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers = nil) - add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value! + def add_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) + add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value! end # @@ -80,7 +80,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers = nil) + def add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -90,7 +90,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -149,8 +148,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def update(resource_group_name, account_name, storage_account_name, parameters = nil, custom_headers = nil) - response = update_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, storage_account_name, parameters:nil, custom_headers:nil) + response = update_async(resource_group_name, account_name, storage_account_name, parameters:parameters, custom_headers:custom_headers).value! nil end @@ -171,8 +170,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, storage_account_name, parameters = nil, custom_headers = nil) - update_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, storage_account_name, parameters:nil, custom_headers:nil) + update_async(resource_group_name, account_name, storage_account_name, parameters:parameters, custom_headers:custom_headers).value! end # @@ -192,7 +191,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, storage_account_name, parameters = nil, custom_headers = nil) + def update_async(resource_group_name, account_name, storage_account_name, parameters:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -201,7 +200,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -258,8 +256,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, storage_account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def delete(resource_group_name, account_name, storage_account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! nil end @@ -278,8 +276,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers = nil) - delete_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil) + delete_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! end # @@ -297,7 +295,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, storage_account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, storage_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -306,6 +304,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -355,8 +354,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [StorageAccountInfo] operation results. # - def get(resource_group_name, account_name, storage_account_name, custom_headers = nil) - response = get_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def get(resource_group_name, account_name, storage_account_name, custom_headers:nil) + response = get_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -375,8 +374,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers = nil) - get_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil) + get_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! end # @@ -394,7 +393,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, storage_account_name, custom_headers = nil) + def get_async(resource_group_name, account_name, storage_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -403,6 +402,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -464,8 +464,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [StorageContainer] operation results. # - def get_storage_container(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) - response = get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value! + def get_storage_container(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) + response = get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -486,8 +486,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_storage_container_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) - get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value! + def get_storage_container_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) + get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! end # @@ -507,7 +507,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) + def get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -517,6 +517,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -577,8 +578,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers = nil) - first_page = list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers) + def list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers:nil) + first_page = list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -598,8 +599,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_storage_containers_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers = nil) - list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def list_storage_containers_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil) + list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! end # @@ -618,7 +619,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers = nil) + def list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -627,6 +628,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -688,8 +690,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) - first_page = list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers) + def list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) + first_page = list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers) first_page.get_all_items end @@ -710,8 +712,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_sas_tokens_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) - list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value! + def list_sas_tokens_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) + list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! end # @@ -731,7 +733,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) + def list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil? @@ -741,6 +743,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -813,8 +816,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list_by_account(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - first_page = list_by_account_as_lazy(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers) + def list_by_account(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + first_page = list_by_account_as_lazy(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers) first_page.get_all_items end @@ -846,8 +849,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_with_http_info(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - list_by_account_async(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers).value! + def list_by_account_with_http_info(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + list_by_account_async(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! end # @@ -878,7 +881,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_async(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) + def list_by_account_async(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 @@ -888,6 +891,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -944,8 +948,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [ListStorageContainersResult] operation results. # - def list_storage_containers_next(next_page_link, custom_headers = nil) - response = list_storage_containers_next_async(next_page_link, custom_headers).value! + def list_storage_containers_next(next_page_link, custom_headers:nil) + response = list_storage_containers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -961,8 +965,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_storage_containers_next_with_http_info(next_page_link, custom_headers = nil) - list_storage_containers_next_async(next_page_link, custom_headers).value! + def list_storage_containers_next_with_http_info(next_page_link, custom_headers:nil) + list_storage_containers_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -977,11 +981,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_storage_containers_next_async(next_page_link, custom_headers = nil) + def list_storage_containers_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1036,8 +1041,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [ListSasTokensResult] operation results. # - def list_sas_tokens_next(next_page_link, custom_headers = nil) - response = list_sas_tokens_next_async(next_page_link, custom_headers).value! + def list_sas_tokens_next(next_page_link, custom_headers:nil) + response = list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1052,8 +1057,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_sas_tokens_next_with_http_info(next_page_link, custom_headers = nil) - list_sas_tokens_next_async(next_page_link, custom_headers).value! + def list_sas_tokens_next_with_http_info(next_page_link, custom_headers:nil) + list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1067,11 +1072,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_sas_tokens_next_async(next_page_link, custom_headers = nil) + def list_sas_tokens_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1128,8 +1134,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [DataLakeAnalyticsAccountListStorageAccountsResult] operation # results. # - def list_by_account_next(next_page_link, custom_headers = nil) - response = list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next(next_page_link, custom_headers:nil) + response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1145,8 +1151,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1161,11 +1167,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_next_async(next_page_link, custom_headers = nil) + def list_by_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1226,12 +1233,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [ListStorageContainersResult] which provide lazy access to pages of # the response. # - def list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers = nil) - response = list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers).value! + def list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers:nil) + response = list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_storage_containers_next_async(next_page_link, custom_headers) + list_storage_containers_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1255,12 +1262,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [ListSasTokensResult] which provide lazy access to pages of the # response. # - def list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil) - response = list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value! + def list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil) + response = list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_sas_tokens_next_async(next_page_link, custom_headers) + list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1295,12 +1302,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01 # @return [DataLakeAnalyticsAccountListStorageAccountsResult] which provide # lazy access to pages of the response. # - def list_by_account_as_lazy(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - response = list_by_account_async(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers).value! + def list_by_account_as_lazy(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + response = list_by_account_async(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_account_next_async(next_page_link, custom_headers) + list_by_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_datalake_analytics/lib/profiles/latest/modules/datalakeanalytics_profile_module.rb b/management/azure_mgmt_datalake_analytics/lib/profiles/latest/modules/datalakeanalytics_profile_module.rb index f32f66904..ab3171897 100644 --- a/management/azure_mgmt_datalake_analytics/lib/profiles/latest/modules/datalakeanalytics_profile_module.rb +++ b/management/azure_mgmt_datalake_analytics/lib/profiles/latest/modules/datalakeanalytics_profile_module.rb @@ -66,16 +66,16 @@ module Azure::DataLakeAnalytics::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::DataLakeAnalyticsAccountManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::DataLakeAnalyticsAccountManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @compute_policies = client_0.compute_policies - @firewall_rules = client_0.firewall_rules - @storage_accounts = client_0.storage_accounts - @data_lake_store_accounts = client_0.data_lake_store_accounts - @account = client_0.account + add_telemetry(@client_0) + @compute_policies = @client_0.compute_policies + @firewall_rules = @client_0.firewall_rules + @storage_accounts = @client_0.storage_accounts + @data_lake_store_accounts = @client_0.data_lake_store_accounts + @account = @client_0.account @model_classes = ModelClasses.new end @@ -85,6 +85,14 @@ module Azure::DataLakeAnalytics::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_datalake_analytics/spec/2016-11-01/account_spec.rb b/management/azure_mgmt_datalake_analytics/spec/2016-11-01/account_spec.rb index 888891f36..e1467bcd9 100644 --- a/management/azure_mgmt_datalake_analytics/spec/2016-11-01/account_spec.rb +++ b/management/azure_mgmt_datalake_analytics/spec/2016-11-01/account_spec.rb @@ -50,7 +50,7 @@ describe 'DataLakeAnalyticsClient Account' do :testtag3 => :testtag3, } - result = @client.update_async(@resource_group.name, @datalake_analytics_acc_name, analytics_acc_update_parameters).value! + result = @client.update_async(@resource_group.name, @datalake_analytics_acc_name, parameters:analytics_acc_update_parameters).value! expect(result.body).to be_an_instance_of(Models::DataLakeAnalyticsAccount) expect(result.body.name).to eq(@datalake_analytics_acc_name) expect(result.body.tags.count).to eq(3) diff --git a/management/azure_mgmt_datalake_store/lib/2015-10-01-preview/generated/azure_mgmt_datalake_store/account.rb b/management/azure_mgmt_datalake_store/lib/2015-10-01-preview/generated/azure_mgmt_datalake_store/account.rb index 29c911858..4b3a0bf9b 100644 --- a/management/azure_mgmt_datalake_store/lib/2015-10-01-preview/generated/azure_mgmt_datalake_store/account.rb +++ b/management/azure_mgmt_datalake_store/lib/2015-10-01-preview/generated/azure_mgmt_datalake_store/account.rb @@ -34,8 +34,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # will be added to the HTTP request. # # - def delete_firewall_rule(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - response = delete_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def delete_firewall_rule(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + response = delete_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! nil end @@ -53,8 +53,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_firewall_rule_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - delete_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def delete_firewall_rule_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + delete_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! end # @@ -71,7 +71,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) + def delete_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil? @@ -80,6 +80,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [FirewallRule] operation results. # - def get_firewall_rule(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - response = get_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def get_firewall_rule(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + response = get_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_firewall_rule_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - get_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def get_firewall_rule_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + get_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! end # @@ -162,7 +163,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) + def get_firewall_rule_async(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil? @@ -171,6 +172,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -228,8 +230,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list_firewall_rules(resource_group_name, account_name, custom_headers = nil) - first_page = list_firewall_rules_as_lazy(resource_group_name, account_name, custom_headers) + def list_firewall_rules(resource_group_name, account_name, custom_headers:nil) + first_page = list_firewall_rules_as_lazy(resource_group_name, account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -246,8 +248,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_firewall_rules_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_firewall_rules_async(resource_group_name, account_name, custom_headers).value! + def list_firewall_rules_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_firewall_rules_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -263,7 +265,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_firewall_rules_async(resource_group_name, account_name, custom_headers = nil) + def list_firewall_rules_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -271,6 +273,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -330,8 +333,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [FirewallRule] operation results. # - def create_or_update_firewall_rule(resource_group_name, account_name, name, parameters, custom_headers = nil) - response = create_or_update_firewall_rule_async(resource_group_name, account_name, name, parameters, custom_headers).value! + def create_or_update_firewall_rule(resource_group_name, account_name, name, parameters, custom_headers:nil) + response = create_or_update_firewall_rule_async(resource_group_name, account_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -350,8 +353,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_firewall_rule_with_http_info(resource_group_name, account_name, name, parameters, custom_headers = nil) - create_or_update_firewall_rule_async(resource_group_name, account_name, name, parameters, custom_headers).value! + def create_or_update_firewall_rule_with_http_info(resource_group_name, account_name, name, parameters, custom_headers:nil) + create_or_update_firewall_rule_async(resource_group_name, account_name, name, parameters, custom_headers:custom_headers).value! end # @@ -369,7 +372,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_firewall_rule_async(resource_group_name, account_name, name, parameters, custom_headers = nil) + def create_or_update_firewall_rule_async(resource_group_name, account_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -379,7 +382,6 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -445,8 +447,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [DataLakeStoreAccount] operation results. # - def create(resource_group_name, name, parameters, custom_headers = nil) - response = create_async(resource_group_name, name, parameters, custom_headers).value! + def create(resource_group_name, name, parameters, custom_headers:nil) + response = create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -462,9 +464,9 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, name, parameters, custom_headers = nil) + def create_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -493,8 +495,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [DataLakeStoreAccount] operation results. # - def update(resource_group_name, name, parameters, custom_headers = nil) - response = update_async(resource_group_name, name, parameters, custom_headers).value! + def update(resource_group_name, name, parameters, custom_headers:nil) + response = update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -510,9 +512,9 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, name, parameters, custom_headers = nil) + def update_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -538,8 +540,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -554,9 +556,9 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, account_name, custom_headers) + promise = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -582,8 +584,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [DataLakeStoreAccount] operation results. # - def get(resource_group_name, account_name, custom_headers = nil) - response = get_async(resource_group_name, account_name, custom_headers).value! + def get(resource_group_name, account_name, custom_headers:nil) + response = get_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -599,8 +601,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_async(resource_group_name, account_name, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -615,7 +617,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, custom_headers = nil) + def get_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -623,6 +625,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -679,8 +682,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # will be added to the HTTP request. # # - def enable_key_vault(resource_group_name, account_name, custom_headers = nil) - response = enable_key_vault_async(resource_group_name, account_name, custom_headers).value! + def enable_key_vault(resource_group_name, account_name, custom_headers:nil) + response = enable_key_vault_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -697,8 +700,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def enable_key_vault_with_http_info(resource_group_name, account_name, custom_headers = nil) - enable_key_vault_async(resource_group_name, account_name, custom_headers).value! + def enable_key_vault_with_http_info(resource_group_name, account_name, custom_headers:nil) + enable_key_vault_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -714,7 +717,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def enable_key_vault_async(resource_group_name, account_name, custom_headers = nil) + def enable_key_vault_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -722,6 +725,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -790,8 +794,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers) + def list_by_resource_group(resource_group_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers) first_page.get_all_items end @@ -829,8 +833,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! end # @@ -867,13 +871,14 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -950,8 +955,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - first_page = list_as_lazy(filter, top, skip, expand, select, orderby, count, search, format, custom_headers) + def list(filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers) first_page.get_all_items end @@ -987,8 +992,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - list_async(filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_with_http_info(filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + list_async(filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! end # @@ -1023,12 +1028,13 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) + def list_async(filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1086,8 +1092,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [DataLakeStoreAccount] operation results. # - def begin_create(resource_group_name, name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create(resource_group_name, name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1104,8 +1110,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -1121,7 +1127,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1130,7 +1136,6 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1206,8 +1211,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [DataLakeStoreAccount] operation results. # - def begin_update(resource_group_name, name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_update(resource_group_name, name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1224,8 +1229,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -1241,7 +1246,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1250,7 +1255,6 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1324,8 +1328,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, account_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, account_name, custom_headers).value! + def begin_delete(resource_group_name, account_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -1341,8 +1345,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - begin_delete_async(resource_group_name, account_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -1357,7 +1361,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, account_name, custom_headers = nil) + def begin_delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1365,6 +1369,7 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1410,8 +1415,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [DataLakeStoreFirewallRuleListResult] operation results. # - def list_firewall_rules_next(next_page_link, custom_headers = nil) - response = list_firewall_rules_next_async(next_page_link, custom_headers).value! + def list_firewall_rules_next(next_page_link, custom_headers:nil) + response = list_firewall_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1426,8 +1431,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_firewall_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_firewall_rules_next_async(next_page_link, custom_headers).value! + def list_firewall_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_firewall_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1441,11 +1446,12 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_firewall_rules_next_async(next_page_link, custom_headers = nil) + def list_firewall_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1500,8 +1506,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [DataLakeStoreAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1516,8 +1522,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1531,11 +1537,12 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1590,8 +1597,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [DataLakeStoreAccountListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1606,8 +1613,8 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1621,11 +1628,12 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1683,12 +1691,12 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # @return [DataLakeStoreFirewallRuleListResult] which provide lazy access to # pages of the response. # - def list_firewall_rules_as_lazy(resource_group_name, account_name, custom_headers = nil) - response = list_firewall_rules_async(resource_group_name, account_name, custom_headers).value! + def list_firewall_rules_as_lazy(resource_group_name, account_name, custom_headers:nil) + response = list_firewall_rules_async(resource_group_name, account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_firewall_rules_next_async(next_page_link, custom_headers) + list_firewall_rules_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1729,12 +1737,12 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # @return [DataLakeStoreAccountListResult] which provide lazy access to pages # of the response. # - def list_by_resource_group_as_lazy(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1773,12 +1781,12 @@ module Azure::DataLakeStore::Mgmt::V2015_10_01_preview # @return [DataLakeStoreAccountListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil) - response = list_async(filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value! + def list_as_lazy(filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) + response = list_async(filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/account.rb b/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/account.rb index 5424c80be..d0c9eae4b 100644 --- a/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/account.rb +++ b/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/account.rb @@ -34,8 +34,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [DataLakeStoreAccount] operation results. # - def create(resource_group_name, name, parameters, custom_headers = nil) - response = create_async(resource_group_name, name, parameters, custom_headers).value! + def create(resource_group_name, name, parameters, custom_headers:nil) + response = create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, name, parameters, custom_headers = nil) + def create_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -82,8 +82,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [DataLakeStoreAccount] operation results. # - def update(resource_group_name, name, parameters, custom_headers = nil) - response = update_async(resource_group_name, name, parameters, custom_headers).value! + def update(resource_group_name, name, parameters, custom_headers:nil) + response = update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,9 +99,9 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, name, parameters, custom_headers = nil) + def update_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -126,8 +126,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, name, custom_headers = nil) - response = delete_async(resource_group_name, name, custom_headers).value! + def delete(resource_group_name, name, custom_headers:nil) + response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -141,9 +141,9 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, name, custom_headers = nil) + def delete_async(resource_group_name, name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, name, custom_headers) + promise = begin_delete_async(resource_group_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -168,8 +168,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [DataLakeStoreAccount] operation results. # - def get(resource_group_name, name, custom_headers = nil) - response = get_async(resource_group_name, name, custom_headers).value! + def get(resource_group_name, name, custom_headers:nil) + response = get_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,8 +184,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, custom_headers = nil) - get_async(resource_group_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, name, custom_headers:nil) + get_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -199,7 +199,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, custom_headers = nil) + def get_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -207,6 +207,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -263,8 +264,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def enable_key_vault(resource_group_name, account_name, custom_headers = nil) - response = enable_key_vault_async(resource_group_name, account_name, custom_headers).value! + def enable_key_vault(resource_group_name, account_name, custom_headers:nil) + response = enable_key_vault_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -281,8 +282,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def enable_key_vault_with_http_info(resource_group_name, account_name, custom_headers = nil) - enable_key_vault_async(resource_group_name, account_name, custom_headers).value! + def enable_key_vault_with_http_info(resource_group_name, account_name, custom_headers:nil) + enable_key_vault_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -298,7 +299,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def enable_key_vault_async(resource_group_name, account_name, custom_headers = nil) + def enable_key_vault_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -306,6 +307,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -365,8 +367,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, filter, top, skip, select, orderby, count, custom_headers) + def list_by_resource_group(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers) first_page.get_all_items end @@ -395,8 +397,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, filter, top, skip, select, orderby, count, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! end # @@ -424,7 +426,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '1'" if !skip.nil? && skip < 1 @@ -433,6 +435,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,8 +503,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - first_page = list_as_lazy(filter, top, skip, select, orderby, count, custom_headers) + def list(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers) first_page.get_all_items end @@ -528,8 +531,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - list_async(filter, top, skip, select, orderby, count, custom_headers).value! + def list_with_http_info(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + list_async(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! end # @@ -555,7 +558,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) + def list_async(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1 fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '1'" if !skip.nil? && skip < 1 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -563,6 +566,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -620,8 +624,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [DataLakeStoreAccount] operation results. # - def begin_create(resource_group_name, name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create(resource_group_name, name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -638,8 +642,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -655,7 +659,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -664,7 +668,6 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -740,8 +743,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [DataLakeStoreAccount] operation results. # - def begin_update(resource_group_name, name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_update(resource_group_name, name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -758,8 +761,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -775,7 +778,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -784,7 +787,6 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -857,8 +859,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, name, custom_headers = nil) - response = begin_delete_async(resource_group_name, name, custom_headers).value! + def begin_delete(resource_group_name, name, custom_headers:nil) + response = begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -873,8 +875,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, name, custom_headers = nil) - begin_delete_async(resource_group_name, name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, name, custom_headers:nil) + begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -888,7 +890,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, name, custom_headers = nil) + def begin_delete_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -896,6 +898,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -941,8 +944,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [DataLakeStoreAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -957,8 +960,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -972,11 +975,12 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1031,8 +1035,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [DataLakeStoreAccountListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1047,8 +1051,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1062,11 +1066,12 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1136,12 +1141,12 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # @return [DataLakeStoreAccountListResult] which provide lazy access to pages # of the response. # - def list_by_resource_group_as_lazy(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, filter, top, skip, select, orderby, count, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1171,12 +1176,12 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # @return [DataLakeStoreAccountListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil) - response = list_async(filter, top, skip, select, orderby, count, custom_headers).value! + def list_as_lazy(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) + response = list_async(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/firewall_rules.rb b/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/firewall_rules.rb index 84c9147a9..d8b53801f 100644 --- a/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/firewall_rules.rb +++ b/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/firewall_rules.rb @@ -38,8 +38,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [FirewallRule] operation results. # - def create_or_update(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil? @@ -91,7 +91,6 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -159,8 +158,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [FirewallRule] operation results. # - def update(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil) - response = update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, firewall_rule_name, parameters:nil, custom_headers:nil) + response = update_async(resource_group_name, account_name, firewall_rule_name, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -179,8 +178,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil) - update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, firewall_rule_name, parameters:nil, custom_headers:nil) + update_async(resource_group_name, account_name, firewall_rule_name, parameters:parameters, custom_headers:custom_headers).value! end # @@ -198,7 +197,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil) + def update_async(resource_group_name, account_name, firewall_rule_name, parameters:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil? @@ -207,7 +206,6 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -273,8 +271,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def delete(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! nil end @@ -292,8 +290,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! end # @@ -310,7 +308,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil? @@ -319,6 +317,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -366,8 +365,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [FirewallRule] operation results. # - def get(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - response = get_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def get(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + response = get_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -384,8 +383,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) - get_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) + get_async(resource_group_name, account_name, firewall_rule_name, custom_headers:custom_headers).value! end # @@ -401,7 +400,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, firewall_rule_name, custom_headers = nil) + def get_async(resource_group_name, account_name, firewall_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil? @@ -410,6 +409,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -467,8 +467,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list_by_account(resource_group_name, account_name, custom_headers = nil) - first_page = list_by_account_as_lazy(resource_group_name, account_name, custom_headers) + def list_by_account(resource_group_name, account_name, custom_headers:nil) + first_page = list_by_account_as_lazy(resource_group_name, account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -485,8 +485,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_by_account_async(resource_group_name, account_name, custom_headers).value! + def list_by_account_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_by_account_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -502,7 +502,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_async(resource_group_name, account_name, custom_headers = nil) + def list_by_account_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -510,6 +510,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -565,8 +566,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [DataLakeStoreFirewallRuleListResult] operation results. # - def list_by_account_next(next_page_link, custom_headers = nil) - response = list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next(next_page_link, custom_headers:nil) + response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -581,8 +582,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -596,11 +597,12 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_next_async(next_page_link, custom_headers = nil) + def list_by_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -658,12 +660,12 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # @return [DataLakeStoreFirewallRuleListResult] which provide lazy access to # pages of the response. # - def list_by_account_as_lazy(resource_group_name, account_name, custom_headers = nil) - response = list_by_account_async(resource_group_name, account_name, custom_headers).value! + def list_by_account_as_lazy(resource_group_name, account_name, custom_headers:nil) + response = list_by_account_async(resource_group_name, account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_account_next_async(next_page_link, custom_headers) + list_by_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/trusted_id_providers.rb b/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/trusted_id_providers.rb index 969d548bc..3cf2ddfc1 100644 --- a/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/trusted_id_providers.rb +++ b/management/azure_mgmt_datalake_store/lib/2016-11-01/generated/azure_mgmt_datalake_store/trusted_id_providers.rb @@ -39,8 +39,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [TrustedIdProvider] operation results. # - def create_or_update(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -62,8 +62,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'trusted_id_provider_name is nil' if trusted_id_provider_name.nil? @@ -94,7 +94,6 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -163,8 +162,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [TrustedIdProvider] operation results. # - def update(resource_group_name, account_name, trusted_id_provider_name, parameters = nil, custom_headers = nil) - response = update_async(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, trusted_id_provider_name, parameters:nil, custom_headers:nil) + response = update_async(resource_group_name, account_name, trusted_id_provider_name, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,8 +183,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, trusted_id_provider_name, parameters = nil, custom_headers = nil) - update_async(resource_group_name, account_name, trusted_id_provider_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, trusted_id_provider_name, parameters:nil, custom_headers:nil) + update_async(resource_group_name, account_name, trusted_id_provider_name, parameters:parameters, custom_headers:custom_headers).value! end # @@ -204,7 +203,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, trusted_id_provider_name, parameters = nil, custom_headers = nil) + def update_async(resource_group_name, account_name, trusted_id_provider_name, parameters:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'trusted_id_provider_name is nil' if trusted_id_provider_name.nil? @@ -213,7 +212,6 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -280,8 +278,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, trusted_id_provider_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers).value! + def delete(resource_group_name, account_name, trusted_id_provider_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers:custom_headers).value! nil end @@ -300,8 +298,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, trusted_id_provider_name, custom_headers = nil) - delete_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, trusted_id_provider_name, custom_headers:nil) + delete_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers:custom_headers).value! end # @@ -319,7 +317,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'trusted_id_provider_name is nil' if trusted_id_provider_name.nil? @@ -328,6 +326,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -376,8 +375,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [TrustedIdProvider] operation results. # - def get(resource_group_name, account_name, trusted_id_provider_name, custom_headers = nil) - response = get_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers).value! + def get(resource_group_name, account_name, trusted_id_provider_name, custom_headers:nil) + response = get_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -395,8 +394,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, trusted_id_provider_name, custom_headers = nil) - get_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers).value! + def get_with_http_info(resource_group_name, account_name, trusted_id_provider_name, custom_headers:nil) + get_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers:custom_headers).value! end # @@ -413,7 +412,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers = nil) + def get_async(resource_group_name, account_name, trusted_id_provider_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'trusted_id_provider_name is nil' if trusted_id_provider_name.nil? @@ -422,6 +421,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -479,8 +479,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Array] operation results. # - def list_by_account(resource_group_name, account_name, custom_headers = nil) - first_page = list_by_account_as_lazy(resource_group_name, account_name, custom_headers) + def list_by_account(resource_group_name, account_name, custom_headers:nil) + first_page = list_by_account_as_lazy(resource_group_name, account_name, custom_headers:custom_headers) first_page.get_all_items end @@ -497,8 +497,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_by_account_async(resource_group_name, account_name, custom_headers).value! + def list_by_account_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_by_account_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -514,7 +514,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_async(resource_group_name, account_name, custom_headers = nil) + def list_by_account_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -522,6 +522,7 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -577,8 +578,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [DataLakeStoreTrustedIdProviderListResult] operation results. # - def list_by_account_next(next_page_link, custom_headers = nil) - response = list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next(next_page_link, custom_headers:nil) + response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -593,8 +594,8 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_account_next_with_http_info(next_page_link, custom_headers = nil) - list_by_account_next_async(next_page_link, custom_headers).value! + def list_by_account_next_with_http_info(next_page_link, custom_headers:nil) + list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -608,11 +609,12 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_account_next_async(next_page_link, custom_headers = nil) + def list_by_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -670,12 +672,12 @@ module Azure::DataLakeStore::Mgmt::V2016_11_01 # @return [DataLakeStoreTrustedIdProviderListResult] which provide lazy access # to pages of the response. # - def list_by_account_as_lazy(resource_group_name, account_name, custom_headers = nil) - response = list_by_account_async(resource_group_name, account_name, custom_headers).value! + def list_by_account_as_lazy(resource_group_name, account_name, custom_headers:nil) + response = list_by_account_async(resource_group_name, account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_account_next_async(next_page_link, custom_headers) + list_by_account_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_datalake_store/lib/profiles/latest/modules/datalakestore_profile_module.rb b/management/azure_mgmt_datalake_store/lib/profiles/latest/modules/datalakestore_profile_module.rb index 9f8f07818..f71db0d64 100644 --- a/management/azure_mgmt_datalake_store/lib/profiles/latest/modules/datalakestore_profile_module.rb +++ b/management/azure_mgmt_datalake_store/lib/profiles/latest/modules/datalakestore_profile_module.rb @@ -59,14 +59,14 @@ module Azure::DataLakeStore::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::DataLakeStore::Mgmt::V2016_11_01::DataLakeStoreAccountManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::DataLakeStore::Mgmt::V2016_11_01::DataLakeStoreAccountManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @firewall_rules = client_0.firewall_rules - @trusted_id_providers = client_0.trusted_id_providers - @account = client_0.account + add_telemetry(@client_0) + @firewall_rules = @client_0.firewall_rules + @trusted_id_providers = @client_0.trusted_id_providers + @account = @client_0.account @model_classes = ModelClasses.new end @@ -76,6 +76,14 @@ module Azure::DataLakeStore::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb index 11869277f..2569425ec 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb @@ -39,8 +39,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -93,6 +93,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ArmTemplate] operation results. # - def get(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -170,8 +171,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -188,7 +189,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -198,6 +199,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -252,8 +254,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationArmTemplate] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -267,8 +269,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -281,11 +283,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -348,12 +351,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationArmTemplate] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb index 590114f67..63d30dd9f 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb @@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ArtifactSource] operation results. # - def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,8 +165,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -190,6 +191,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -246,8 +248,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ArtifactSource] operation results. # - def create_or_update(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -263,8 +265,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) - create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) + create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value! end # @@ -279,7 +281,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -289,7 +291,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -362,8 +363,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -378,8 +379,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -393,7 +394,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -402,6 +403,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -449,8 +451,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ArtifactSource] operation results. # - def update(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) - response = update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! + def update(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) + response = update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -467,8 +469,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) - update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) + update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value! end # @@ -484,7 +486,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, artifact_source, custom_headers = nil) + def update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -494,7 +496,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -557,8 +558,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationArtifactSource] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -572,8 +573,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -586,11 +587,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -652,12 +654,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationArtifactSource] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb index d3772a8b1..cb3390665 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb @@ -39,8 +39,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -93,6 +93,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Artifact] operation results. # - def get(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -170,8 +171,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -188,7 +189,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -198,6 +199,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -257,8 +259,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ArmTemplateInfo] operation results. # - def generate_arm_template(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers = nil) - response = generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers).value! + def generate_arm_template(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil) + response = generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -277,8 +279,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_arm_template_with_http_info(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers = nil) - generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers).value! + def generate_arm_template_with_http_info(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil) + generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:custom_headers).value! end # @@ -296,7 +298,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers = nil) + def generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -307,7 +309,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -370,8 +371,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationArtifact] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -385,8 +386,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -399,11 +400,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -466,12 +468,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationArtifact] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb index 09b0ab618..22e3d3ab1 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb @@ -34,8 +34,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [LabCost] operation results. # - def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -78,6 +78,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [LabCost] operation results. # - def create_or_update(resource_group_name, lab_name, name, lab_cost, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, lab_cost, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, lab_cost, custom_headers = nil) - create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, lab_cost, custom_headers:nil) + create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers:custom_headers).value! end # @@ -167,7 +168,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -177,7 +178,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb index fa7d446d5..f761ba1dd 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb @@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [CustomImage] operation results. # - def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,8 +165,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -190,6 +191,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -247,8 +249,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [CustomImage] operation results. # - def create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -263,9 +265,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -290,8 +292,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -305,9 +307,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -334,8 +336,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [CustomImage] operation results. # - def begin_create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -352,8 +354,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, custom_image, custom_headers = nil) - begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, custom_image, custom_headers:nil) + begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers).value! end # @@ -369,7 +371,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -379,7 +381,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -452,8 +453,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) - response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -468,8 +469,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -483,7 +484,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -492,6 +493,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -536,8 +538,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationCustomImage] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -551,8 +553,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -565,11 +567,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -631,12 +634,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationCustomImage] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb index 577c71fda..d3d2c9000 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb @@ -39,8 +39,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -93,6 +93,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Disk] operation results. # - def get(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -170,8 +171,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -188,7 +189,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -198,6 +199,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -256,8 +258,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Disk] operation results. # - def create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value! + def create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -273,9 +275,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -301,8 +303,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! nil end @@ -317,9 +319,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -346,8 +348,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) - response = attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value! + def attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil) + response = attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers).value! nil end @@ -364,9 +366,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) + def attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil) # Send request - promise = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers) + promise = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -393,8 +395,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) - response = detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value! + def detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil) + response = detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers).value! nil end @@ -411,9 +413,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) + def detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil) # Send request - promise = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers) + promise = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -441,8 +443,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Disk] operation results. # - def begin_create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -460,8 +462,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) - begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil) + begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers).value! end # @@ -478,7 +480,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -489,7 +491,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -563,8 +564,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) - response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) + response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! nil end @@ -580,8 +581,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) - begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers:nil) + begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! end # @@ -596,7 +597,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) + def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -606,6 +607,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -654,8 +656,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) - response = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value! + def begin_attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil) + response = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers).value! nil end @@ -674,8 +676,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_attach_with_http_info(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) - begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value! + def begin_attach_with_http_info(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil) + begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers).value! end # @@ -693,7 +695,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers = nil) + def begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -704,7 +706,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -761,8 +762,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) - response = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value! + def begin_detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil) + response = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers).value! nil end @@ -781,8 +782,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_detach_with_http_info(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) - begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value! + def begin_detach_with_http_info(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil) + begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers).value! end # @@ -800,7 +801,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers = nil) + def begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -811,7 +812,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -864,8 +864,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationDisk] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -879,8 +879,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -893,11 +893,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -960,12 +961,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationDisk] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb index 54d97e329..351ef7e82 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb @@ -39,8 +39,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -93,6 +93,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [DtlEnvironment] operation results. # - def get(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -170,8 +171,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -188,7 +189,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -198,6 +199,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -257,8 +259,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [DtlEnvironment] operation results. # - def create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value! + def create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -275,9 +277,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -303,8 +305,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! nil end @@ -319,9 +321,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -350,8 +352,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [DtlEnvironment] operation results. # - def begin_create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -370,8 +372,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) - begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil) + begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers).value! end # @@ -389,7 +391,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -400,7 +402,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -474,8 +475,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) - response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) + response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! nil end @@ -491,8 +492,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) - begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers:nil) + begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! end # @@ -507,7 +508,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) + def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -517,6 +518,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -561,8 +563,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationDtlEnvironment] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -576,8 +578,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -590,11 +592,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -657,12 +660,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationDtlEnvironment] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb index 097595355..78a55cc63 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb @@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Formula] operation results. # - def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,8 +165,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -190,6 +191,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -248,8 +250,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Formula] operation results. # - def create_or_update(resource_group_name, lab_name, name, formula, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, formula, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -265,9 +267,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -293,8 +295,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -309,8 +311,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -324,7 +326,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -333,6 +335,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -381,8 +384,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Formula] operation results. # - def begin_create_or_update(resource_group_name, lab_name, name, formula, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, name, formula, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -400,8 +403,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, formula, custom_headers = nil) - begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, formula, custom_headers:nil) + begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers).value! end # @@ -418,7 +421,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -428,7 +431,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -501,8 +503,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationFormula] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -516,8 +518,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -530,11 +532,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -596,12 +599,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationFormula] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb index ba3aa756f..807098899 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb @@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -143,8 +144,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationGalleryImage] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -158,8 +159,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -172,11 +173,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -238,12 +240,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationGalleryImage] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb index 1305b87c9..d23e2a824 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb @@ -36,8 +36,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list_by_subscription(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_by_subscription_as_lazy(expand, filter, top, orderby, custom_headers) + def list_by_subscription(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_by_subscription_as_lazy(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_by_subscription_async(expand, filter, top, orderby, custom_headers).value! + def list_by_subscription_with_http_info(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_by_subscription_async(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -75,12 +75,13 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_by_subscription_async(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -141,8 +142,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, expand, filter, top, orderby, custom_headers) + def list_by_resource_group(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -162,8 +163,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -182,13 +183,14 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -245,8 +247,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Schedule] operation results. # - def get(resource_group_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, name, expand, custom_headers).value! + def get(resource_group_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -262,8 +264,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -278,7 +280,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -286,6 +288,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -341,8 +344,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Schedule] operation results. # - def create_or_update(resource_group_name, name, schedule, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, schedule, custom_headers).value! + def create_or_update(resource_group_name, name, schedule, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -357,8 +360,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, name, schedule, custom_headers = nil) - create_or_update_async(resource_group_name, name, schedule, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, name, schedule, custom_headers:nil) + create_or_update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value! end # @@ -372,7 +375,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, name, schedule, custom_headers = nil) + def create_or_update_async(resource_group_name, name, schedule, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -381,7 +384,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -453,8 +455,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def delete(resource_group_name, name, custom_headers = nil) - response = delete_async(resource_group_name, name, custom_headers).value! + def delete(resource_group_name, name, custom_headers:nil) + response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -468,8 +470,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, name, custom_headers = nil) - delete_async(resource_group_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, name, custom_headers:nil) + delete_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -482,7 +484,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, name, custom_headers = nil) + def delete_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -490,6 +492,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -535,8 +538,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Schedule] operation results. # - def update(resource_group_name, name, schedule, custom_headers = nil) - response = update_async(resource_group_name, name, schedule, custom_headers).value! + def update(resource_group_name, name, schedule, custom_headers:nil) + response = update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -551,8 +554,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, name, schedule, custom_headers = nil) - update_async(resource_group_name, name, schedule, custom_headers).value! + def update_with_http_info(resource_group_name, name, schedule, custom_headers:nil) + update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value! end # @@ -566,7 +569,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, name, schedule, custom_headers = nil) + def update_async(resource_group_name, name, schedule, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -575,7 +578,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -636,8 +638,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def execute(resource_group_name, name, custom_headers = nil) - response = execute_async(resource_group_name, name, custom_headers).value! + def execute(resource_group_name, name, custom_headers:nil) + response = execute_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -650,9 +652,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def execute_async(resource_group_name, name, custom_headers = nil) + def execute_async(resource_group_name, name, custom_headers:nil) # Send request - promise = begin_execute_async(resource_group_name, name, custom_headers) + promise = begin_execute_async(resource_group_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -677,8 +679,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def retarget(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) - response = retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value! + def retarget(resource_group_name, name, retarget_schedule_properties, custom_headers:nil) + response = retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers).value! nil end @@ -693,9 +695,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) + def retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:nil) # Send request - promise = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers) + promise = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -718,8 +720,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_execute(resource_group_name, name, custom_headers = nil) - response = begin_execute_async(resource_group_name, name, custom_headers).value! + def begin_execute(resource_group_name, name, custom_headers:nil) + response = begin_execute_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -733,8 +735,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_execute_with_http_info(resource_group_name, name, custom_headers = nil) - begin_execute_async(resource_group_name, name, custom_headers).value! + def begin_execute_with_http_info(resource_group_name, name, custom_headers:nil) + begin_execute_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -747,7 +749,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_execute_async(resource_group_name, name, custom_headers = nil) + def begin_execute_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -755,6 +757,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -801,8 +804,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_retarget(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) - response = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value! + def begin_retarget(resource_group_name, name, retarget_schedule_properties, custom_headers:nil) + response = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers).value! nil end @@ -819,8 +822,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_retarget_with_http_info(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) - begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value! + def begin_retarget_with_http_info(resource_group_name, name, retarget_schedule_properties, custom_headers:nil) + begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers).value! end # @@ -836,7 +839,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers = nil) + def begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -845,7 +848,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -898,8 +900,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationSchedule] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -913,8 +915,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -927,11 +929,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -985,8 +988,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationSchedule] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1000,8 +1003,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1014,11 +1017,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1078,12 +1082,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationSchedule] which provide lazy access to pages # of the response. # - def list_by_subscription_as_lazy(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_by_subscription_async(expand, filter, top, orderby, custom_headers).value! + def list_by_subscription_as_lazy(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_by_subscription_async(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1106,12 +1110,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationSchedule] which provide lazy access to pages # of the response. # - def list_by_resource_group_as_lazy(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb index 455f91d06..2dcfd7fd4 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb @@ -36,8 +36,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list_by_subscription(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_by_subscription_as_lazy(expand, filter, top, orderby, custom_headers) + def list_by_subscription(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_by_subscription_as_lazy(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_by_subscription_async(expand, filter, top, orderby, custom_headers).value! + def list_by_subscription_with_http_info(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_by_subscription_async(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -75,12 +75,13 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_by_subscription_async(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -141,8 +142,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, expand, filter, top, orderby, custom_headers) + def list_by_resource_group(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -162,8 +163,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -182,13 +183,14 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -245,8 +247,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Lab] operation results. # - def get(resource_group_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, name, expand, custom_headers).value! + def get(resource_group_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -262,8 +264,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -278,7 +280,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -286,6 +288,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -342,8 +345,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Lab] operation results. # - def create_or_update(resource_group_name, name, lab, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, lab, custom_headers).value! + def create_or_update(resource_group_name, name, lab, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, lab, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -357,9 +360,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, name, lab, custom_headers = nil) + def create_or_update_async(resource_group_name, name, lab, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, name, lab, custom_headers) + promise = begin_create_or_update_async(resource_group_name, name, lab, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -383,8 +386,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, name, custom_headers = nil) - response = delete_async(resource_group_name, name, custom_headers).value! + def delete(resource_group_name, name, custom_headers:nil) + response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -397,9 +400,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, name, custom_headers = nil) + def delete_async(resource_group_name, name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, name, custom_headers) + promise = begin_delete_async(resource_group_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -424,8 +427,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Lab] operation results. # - def update(resource_group_name, name, lab, custom_headers = nil) - response = update_async(resource_group_name, name, lab, custom_headers).value! + def update(resource_group_name, name, lab, custom_headers:nil) + response = update_async(resource_group_name, name, lab, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -440,8 +443,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, name, lab, custom_headers = nil) - update_async(resource_group_name, name, lab, custom_headers).value! + def update_with_http_info(resource_group_name, name, lab, custom_headers:nil) + update_async(resource_group_name, name, lab, custom_headers:custom_headers).value! end # @@ -455,7 +458,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, name, lab, custom_headers = nil) + def update_async(resource_group_name, name, lab, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -464,7 +467,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -526,8 +528,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def claim_any_vm(resource_group_name, name, custom_headers = nil) - response = claim_any_vm_async(resource_group_name, name, custom_headers).value! + def claim_any_vm(resource_group_name, name, custom_headers:nil) + response = claim_any_vm_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -540,9 +542,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def claim_any_vm_async(resource_group_name, name, custom_headers = nil) + def claim_any_vm_async(resource_group_name, name, custom_headers:nil) # Send request - promise = begin_claim_any_vm_async(resource_group_name, name, custom_headers) + promise = begin_claim_any_vm_async(resource_group_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -568,8 +570,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def create_environment(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) - response = create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers).value! + def create_environment(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:nil) + response = create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:custom_headers).value! nil end @@ -585,9 +587,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) + def create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:nil) # Send request - promise = begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers) + promise = begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -612,8 +614,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def export_resource_usage(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) - response = export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers).value! + def export_resource_usage(resource_group_name, name, export_resource_usage_parameters, custom_headers:nil) + response = export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:custom_headers).value! nil end @@ -628,9 +630,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) + def export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:nil) # Send request - promise = begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers) + promise = begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -656,8 +658,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [GenerateUploadUriResponse] operation results. # - def generate_upload_uri(resource_group_name, name, generate_upload_uri_parameter, custom_headers = nil) - response = generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers).value! + def generate_upload_uri(resource_group_name, name, generate_upload_uri_parameter, custom_headers:nil) + response = generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -673,8 +675,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_upload_uri_with_http_info(resource_group_name, name, generate_upload_uri_parameter, custom_headers = nil) - generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers).value! + def generate_upload_uri_with_http_info(resource_group_name, name, generate_upload_uri_parameter, custom_headers:nil) + generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers:custom_headers).value! end # @@ -689,7 +691,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers = nil) + def generate_upload_uri_async(resource_group_name, name, generate_upload_uri_parameter, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -698,7 +700,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -761,8 +762,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list_vhds(resource_group_name, name, custom_headers = nil) - first_page = list_vhds_as_lazy(resource_group_name, name, custom_headers) + def list_vhds(resource_group_name, name, custom_headers:nil) + first_page = list_vhds_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -776,8 +777,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_vhds_with_http_info(resource_group_name, name, custom_headers = nil) - list_vhds_async(resource_group_name, name, custom_headers).value! + def list_vhds_with_http_info(resource_group_name, name, custom_headers:nil) + list_vhds_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -790,7 +791,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_vhds_async(resource_group_name, name, custom_headers = nil) + def list_vhds_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -798,6 +799,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -854,8 +856,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Lab] operation results. # - def begin_create_or_update(resource_group_name, name, lab, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, name, lab, custom_headers).value! + def begin_create_or_update(resource_group_name, name, lab, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, name, lab, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -871,8 +873,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, name, lab, custom_headers = nil) - begin_create_or_update_async(resource_group_name, name, lab, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, name, lab, custom_headers:nil) + begin_create_or_update_async(resource_group_name, name, lab, custom_headers:custom_headers).value! end # @@ -887,7 +889,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, name, lab, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, name, lab, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -896,7 +898,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -968,8 +969,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, name, custom_headers = nil) - response = begin_delete_async(resource_group_name, name, custom_headers).value! + def begin_delete(resource_group_name, name, custom_headers:nil) + response = begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -983,8 +984,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, name, custom_headers = nil) - begin_delete_async(resource_group_name, name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, name, custom_headers:nil) + begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -997,7 +998,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, name, custom_headers = nil) + def begin_delete_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -1005,6 +1006,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1049,8 +1051,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_claim_any_vm(resource_group_name, name, custom_headers = nil) - response = begin_claim_any_vm_async(resource_group_name, name, custom_headers).value! + def begin_claim_any_vm(resource_group_name, name, custom_headers:nil) + response = begin_claim_any_vm_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -1065,8 +1067,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_claim_any_vm_with_http_info(resource_group_name, name, custom_headers = nil) - begin_claim_any_vm_async(resource_group_name, name, custom_headers).value! + def begin_claim_any_vm_with_http_info(resource_group_name, name, custom_headers:nil) + begin_claim_any_vm_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1080,7 +1082,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_claim_any_vm_async(resource_group_name, name, custom_headers = nil) + def begin_claim_any_vm_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -1088,6 +1090,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1135,8 +1138,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_create_environment(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) - response = begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers).value! + def begin_create_environment(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:nil) + response = begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:custom_headers).value! nil end @@ -1154,8 +1157,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_environment_with_http_info(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) - begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers).value! + def begin_create_environment_with_http_info(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:nil) + begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:custom_headers).value! end # @@ -1172,7 +1175,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers = nil) + def begin_create_environment_async(resource_group_name, name, lab_virtual_machine_creation_parameter, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -1181,7 +1184,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1236,8 +1238,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_export_resource_usage(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) - response = begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers).value! + def begin_export_resource_usage(resource_group_name, name, export_resource_usage_parameters, custom_headers:nil) + response = begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:custom_headers).value! nil end @@ -1254,8 +1256,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_export_resource_usage_with_http_info(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) - begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers).value! + def begin_export_resource_usage_with_http_info(resource_group_name, name, export_resource_usage_parameters, custom_headers:nil) + begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:custom_headers).value! end # @@ -1271,7 +1273,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers = nil) + def begin_export_resource_usage_async(resource_group_name, name, export_resource_usage_parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -1280,7 +1282,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1333,8 +1334,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationLab] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1348,8 +1349,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1362,11 +1363,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1420,8 +1422,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationLab] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1435,8 +1437,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1449,11 +1451,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1507,8 +1510,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationLabVhd] operation results. # - def list_vhds_next(next_page_link, custom_headers = nil) - response = list_vhds_next_async(next_page_link, custom_headers).value! + def list_vhds_next(next_page_link, custom_headers:nil) + response = list_vhds_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1522,8 +1525,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_vhds_next_with_http_info(next_page_link, custom_headers = nil) - list_vhds_next_async(next_page_link, custom_headers).value! + def list_vhds_next_with_http_info(next_page_link, custom_headers:nil) + list_vhds_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1536,11 +1539,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_vhds_next_async(next_page_link, custom_headers = nil) + def list_vhds_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1600,12 +1604,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationLab] which provide lazy access to pages of # the response. # - def list_by_subscription_as_lazy(expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_by_subscription_async(expand, filter, top, orderby, custom_headers).value! + def list_by_subscription_as_lazy(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_by_subscription_async(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1628,12 +1632,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationLab] which provide lazy access to pages of # the response. # - def list_by_resource_group_as_lazy(resource_group_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1650,12 +1654,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationLabVhd] which provide lazy access to pages # of the response. # - def list_vhds_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_vhds_async(resource_group_name, name, custom_headers).value! + def list_vhds_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_vhds_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_vhds_next_async(next_page_link, custom_headers) + list_vhds_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb index e580279f5..452f6db84 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb @@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [NotificationChannel] operation results. # - def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,8 +165,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -190,6 +191,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -246,8 +248,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [NotificationChannel] operation results. # - def create_or_update(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -263,8 +265,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) - create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) + create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:custom_headers).value! end # @@ -279,7 +281,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -289,7 +291,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -362,8 +363,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -378,8 +379,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -393,7 +394,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -402,6 +403,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -448,8 +450,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [NotificationChannel] operation results. # - def update(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) - response = update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! + def update(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) + response = update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -465,8 +467,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) - update_async(resource_group_name, lab_name, name, notification_channel, custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) + update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:custom_headers).value! end # @@ -481,7 +483,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, notification_channel, custom_headers = nil) + def update_async(resource_group_name, lab_name, name, notification_channel, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -491,7 +493,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -556,8 +557,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def notify(resource_group_name, lab_name, name, notify_parameters, custom_headers = nil) - response = notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers).value! + def notify(resource_group_name, lab_name, name, notify_parameters, custom_headers:nil) + response = notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers:custom_headers).value! nil end @@ -574,8 +575,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def notify_with_http_info(resource_group_name, lab_name, name, notify_parameters, custom_headers = nil) - notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers).value! + def notify_with_http_info(resource_group_name, lab_name, name, notify_parameters, custom_headers:nil) + notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers:custom_headers).value! end # @@ -591,7 +592,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers = nil) + def notify_async(resource_group_name, lab_name, name, notify_parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -601,7 +602,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -654,8 +654,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationNotificationChannel] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -669,8 +669,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -683,11 +683,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -749,12 +750,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationNotificationChannel] which provide lazy # access to pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb index 02eb10be2..3997c9803 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb @@ -39,8 +39,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, policy_set_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, policy_set_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, policy_set_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, policy_set_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, policy_set_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, policy_set_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, policy_set_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -93,6 +93,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Policy] operation results. # - def get(resource_group_name, lab_name, policy_set_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, policy_set_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, policy_set_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, policy_set_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -170,8 +171,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, policy_set_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, policy_set_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, policy_set_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, policy_set_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -188,7 +189,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, policy_set_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, policy_set_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -198,6 +199,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -255,8 +257,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Policy] operation results. # - def create_or_update(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! + def create_or_update(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -273,8 +275,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) - create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) + create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:custom_headers).value! end # @@ -290,7 +292,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -301,7 +303,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -375,8 +376,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, policy_set_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, policy_set_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers:custom_headers).value! nil end @@ -392,8 +393,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, policy_set_name, name, custom_headers = nil) - delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, policy_set_name, name, custom_headers:nil) + delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers:custom_headers).value! end # @@ -408,7 +409,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, policy_set_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -418,6 +419,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -465,8 +467,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Policy] operation results. # - def update(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) - response = update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! + def update(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) + response = update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -483,8 +485,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) - update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) + update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:custom_headers).value! end # @@ -500,7 +502,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers = nil) + def update_async(resource_group_name, lab_name, policy_set_name, name, policy, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -511,7 +513,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -574,8 +575,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationPolicy] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -589,8 +590,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -603,11 +604,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -670,12 +672,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationPolicy] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, policy_set_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, policy_set_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, policy_set_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, policy_set_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb index 1166a3cc3..7f16f47c1 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb @@ -34,8 +34,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [EvaluatePoliciesResponse] operation results. # - def evaluate_policies(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers = nil) - response = evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers).value! + def evaluate_policies(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers:nil) + response = evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def evaluate_policies_with_http_info(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers = nil) - evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers).value! + def evaluate_policies_with_http_info(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers:nil) + evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers = nil) + def evaluate_policies_async(resource_group_name, lab_name, name, evaluate_policies_request, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -79,7 +79,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb index 0bc798181..c4e44365b 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb @@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Schedule] operation results. # - def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,8 +165,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -190,6 +191,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -246,8 +248,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Schedule] operation results. # - def create_or_update(resource_group_name, lab_name, name, schedule, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, schedule, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -263,8 +265,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, schedule, custom_headers = nil) - create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, schedule, custom_headers:nil) + create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers:custom_headers).value! end # @@ -279,7 +281,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, name, schedule, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -289,7 +291,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -362,8 +363,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -378,8 +379,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -393,7 +394,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -402,6 +403,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -448,8 +450,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Schedule] operation results. # - def update(resource_group_name, lab_name, name, schedule, custom_headers = nil) - response = update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! + def update(resource_group_name, lab_name, name, schedule, custom_headers:nil) + response = update_async(resource_group_name, lab_name, name, schedule, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -465,8 +467,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, schedule, custom_headers = nil) - update_async(resource_group_name, lab_name, name, schedule, custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, schedule, custom_headers:nil) + update_async(resource_group_name, lab_name, name, schedule, custom_headers:custom_headers).value! end # @@ -481,7 +483,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, schedule, custom_headers = nil) + def update_async(resource_group_name, lab_name, name, schedule, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -491,7 +493,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -553,8 +554,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def execute(resource_group_name, lab_name, name, custom_headers = nil) - response = execute_async(resource_group_name, lab_name, name, custom_headers).value! + def execute(resource_group_name, lab_name, name, custom_headers:nil) + response = execute_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -568,9 +569,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def execute_async(resource_group_name, lab_name, name, custom_headers = nil) + def execute_async(resource_group_name, lab_name, name, custom_headers:nil) # Send request - promise = begin_execute_async(resource_group_name, lab_name, name, custom_headers) + promise = begin_execute_async(resource_group_name, lab_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -595,8 +596,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list_applicable(resource_group_name, lab_name, name, custom_headers = nil) - first_page = list_applicable_as_lazy(resource_group_name, lab_name, name, custom_headers) + def list_applicable(resource_group_name, lab_name, name, custom_headers:nil) + first_page = list_applicable_as_lazy(resource_group_name, lab_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -611,8 +612,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_applicable_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - list_applicable_async(resource_group_name, lab_name, name, custom_headers).value! + def list_applicable_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + list_applicable_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -626,7 +627,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_applicable_async(resource_group_name, lab_name, name, custom_headers = nil) + def list_applicable_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -635,6 +636,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -689,8 +691,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_execute(resource_group_name, lab_name, name, custom_headers = nil) - response = begin_execute_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_execute(resource_group_name, lab_name, name, custom_headers:nil) + response = begin_execute_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -705,8 +707,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_execute_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - begin_execute_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_execute_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + begin_execute_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -720,7 +722,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_execute_async(resource_group_name, lab_name, name, custom_headers = nil) + def begin_execute_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -729,6 +731,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -773,8 +776,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationSchedule] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -788,8 +791,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -802,11 +805,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -860,8 +864,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationSchedule] operation results. # - def list_applicable_next(next_page_link, custom_headers = nil) - response = list_applicable_next_async(next_page_link, custom_headers).value! + def list_applicable_next(next_page_link, custom_headers:nil) + response = list_applicable_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -875,8 +879,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_applicable_next_with_http_info(next_page_link, custom_headers = nil) - list_applicable_next_async(next_page_link, custom_headers).value! + def list_applicable_next_with_http_info(next_page_link, custom_headers:nil) + list_applicable_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -889,11 +893,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_applicable_next_async(next_page_link, custom_headers = nil) + def list_applicable_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -955,12 +960,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationSchedule] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -978,12 +983,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationSchedule] which provide lazy access to pages # of the response. # - def list_applicable_as_lazy(resource_group_name, lab_name, name, custom_headers = nil) - response = list_applicable_async(resource_group_name, lab_name, name, custom_headers).value! + def list_applicable_as_lazy(resource_group_name, lab_name, name, custom_headers:nil) + response = list_applicable_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_applicable_next_async(next_page_link, custom_headers) + list_applicable_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb index dee7b4a23..9c1a93f4f 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb @@ -39,8 +39,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -93,6 +93,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Secret] operation results. # - def get(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -170,8 +171,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -188,7 +189,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, user_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -198,6 +199,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -255,8 +257,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Secret] operation results. # - def create_or_update(resource_group_name, lab_name, user_name, name, secret, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers).value! + def create_or_update(resource_group_name, lab_name, user_name, name, secret, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -273,8 +275,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, secret, custom_headers = nil) - create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, secret, custom_headers:nil) + create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers:custom_headers).value! end # @@ -290,7 +292,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, user_name, name, secret, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -301,7 +303,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -375,8 +376,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, user_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, user_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! nil end @@ -392,8 +393,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers = nil) - delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers:nil) + delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value! end # @@ -408,7 +409,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, user_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -418,6 +419,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -462,8 +464,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationSecret] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -477,8 +479,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -491,11 +493,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -558,12 +561,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationSecret] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, user_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb index 0b68f3e1c..a25dce606 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb @@ -36,8 +36,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -83,6 +83,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -138,8 +139,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ServiceRunner] operation results. # - def get(resource_group_name, lab_name, name, custom_headers = nil) - response = get_async(resource_group_name, lab_name, name, custom_headers).value! + def get(resource_group_name, lab_name, name, custom_headers:nil) + response = get_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -154,8 +155,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - get_async(resource_group_name, lab_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + get_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -169,7 +170,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, custom_headers = nil) + def get_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -178,6 +179,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -235,8 +237,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ServiceRunner] operation results. # - def create_or_update(resource_group_name, lab_name, name, service_runner, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, service_runner, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -253,8 +255,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, service_runner, custom_headers = nil) - create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, service_runner, custom_headers:nil) + create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers:custom_headers).value! end # @@ -270,7 +272,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, name, service_runner, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -280,7 +282,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -353,8 +354,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -369,8 +370,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -384,7 +385,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -393,6 +394,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -437,8 +439,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationServiceRunner] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -452,8 +454,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -466,11 +468,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -530,12 +533,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationServiceRunner] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb index b60664135..ca7fb6dee 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb @@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [User] operation results. # - def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,8 +165,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -190,6 +191,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -246,8 +248,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [User] operation results. # - def create_or_update(resource_group_name, lab_name, name, user, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, name, user, custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, user, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, name, user, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -263,8 +265,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, name, user, custom_headers = nil) - create_or_update_async(resource_group_name, lab_name, name, user, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, name, user, custom_headers:nil) + create_or_update_async(resource_group_name, lab_name, name, user, custom_headers:custom_headers).value! end # @@ -279,7 +281,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, name, user, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, name, user, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -289,7 +291,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -361,8 +362,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -376,9 +377,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -404,8 +405,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [User] operation results. # - def update(resource_group_name, lab_name, name, user, custom_headers = nil) - response = update_async(resource_group_name, lab_name, name, user, custom_headers).value! + def update(resource_group_name, lab_name, name, user, custom_headers:nil) + response = update_async(resource_group_name, lab_name, name, user, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -421,8 +422,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, user, custom_headers = nil) - update_async(resource_group_name, lab_name, name, user, custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, user, custom_headers:nil) + update_async(resource_group_name, lab_name, name, user, custom_headers:custom_headers).value! end # @@ -437,7 +438,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, user, custom_headers = nil) + def update_async(resource_group_name, lab_name, name, user, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -447,7 +448,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -510,8 +510,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) - response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -526,8 +526,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -541,7 +541,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -550,6 +550,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -594,8 +595,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationUser] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -609,8 +610,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -623,11 +624,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -689,12 +691,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationUser] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb index c59273523..01cf07e72 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb @@ -39,8 +39,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, virtual_machine_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -93,6 +93,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Schedule] operation results. # - def get(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, virtual_machine_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, virtual_machine_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, virtual_machine_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -170,8 +171,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, virtual_machine_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, virtual_machine_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -188,7 +189,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, virtual_machine_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -198,6 +199,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -255,8 +257,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Schedule] operation results. # - def create_or_update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! + def create_or_update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -273,8 +275,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) - create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) + create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value! end # @@ -290,7 +292,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -301,7 +303,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -375,8 +376,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def delete(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value! nil end @@ -392,8 +393,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) - delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) + delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value! end # @@ -408,7 +409,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -418,6 +419,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -465,8 +467,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Schedule] operation results. # - def update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) - response = update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! + def update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) + response = update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -483,8 +485,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) - update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) + update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value! end # @@ -500,7 +502,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil) + def update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -511,7 +513,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -574,8 +575,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) - response = execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! + def execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) + response = execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value! nil end @@ -590,9 +591,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + def execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) # Send request - promise = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers) + promise = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -617,8 +618,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) - response = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! + def begin_execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) + response = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value! nil end @@ -634,8 +635,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_execute_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) - begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value! + def begin_execute_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) + begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value! end # @@ -650,7 +651,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil) + def begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -660,6 +661,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -704,8 +706,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationSchedule] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -719,8 +721,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -733,11 +735,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -800,12 +803,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationSchedule] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, virtual_machine_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb index 07a1d0e4d..1da9b9dd5 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb @@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [LabVirtualMachine] operation results. # - def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,8 +165,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -190,6 +191,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -247,8 +249,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [LabVirtualMachine] operation results. # - def create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -263,9 +265,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -290,8 +292,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -305,9 +307,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -333,8 +335,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [LabVirtualMachine] operation results. # - def update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) - response = update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! + def update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) + response = update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -350,8 +352,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) - update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) + update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value! end # @@ -366,7 +368,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) + def update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -376,7 +378,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -441,8 +442,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) - response = add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value! + def add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil) + response = add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers).value! nil end @@ -458,9 +459,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) + def add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil) # Send request - promise = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers) + promise = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -486,8 +487,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) - response = apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value! + def apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil) + response = apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers).value! nil end @@ -503,9 +504,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) + def apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil) # Send request - promise = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers) + promise = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -529,8 +530,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def claim(resource_group_name, lab_name, name, custom_headers = nil) - response = claim_async(resource_group_name, lab_name, name, custom_headers).value! + def claim(resource_group_name, lab_name, name, custom_headers:nil) + response = claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -544,9 +545,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def claim_async(resource_group_name, lab_name, name, custom_headers = nil) + def claim_async(resource_group_name, lab_name, name, custom_headers:nil) # Send request - promise = begin_claim_async(resource_group_name, lab_name, name, custom_headers) + promise = begin_claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -572,8 +573,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) - response = detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value! + def detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil) + response = detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers).value! nil end @@ -589,9 +590,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) + def detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil) # Send request - promise = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers) + promise = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -616,8 +617,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ApplicableSchedule] operation results. # - def list_applicable_schedules(resource_group_name, lab_name, name, custom_headers = nil) - response = list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers).value! + def list_applicable_schedules(resource_group_name, lab_name, name, custom_headers:nil) + response = list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -632,8 +633,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_applicable_schedules_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers).value! + def list_applicable_schedules_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -647,7 +648,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers = nil) + def list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -656,6 +657,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -709,8 +711,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def start(resource_group_name, lab_name, name, custom_headers = nil) - response = start_async(resource_group_name, lab_name, name, custom_headers).value! + def start(resource_group_name, lab_name, name, custom_headers:nil) + response = start_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -724,9 +726,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, lab_name, name, custom_headers = nil) + def start_async(resource_group_name, lab_name, name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, lab_name, name, custom_headers) + promise = begin_start_async(resource_group_name, lab_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -749,8 +751,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, lab_name, name, custom_headers = nil) - response = stop_async(resource_group_name, lab_name, name, custom_headers).value! + def stop(resource_group_name, lab_name, name, custom_headers:nil) + response = stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -764,9 +766,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, lab_name, name, custom_headers = nil) + def stop_async(resource_group_name, lab_name, name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, lab_name, name, custom_headers) + promise = begin_stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -793,8 +795,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [LabVirtualMachine] operation results. # - def begin_create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -811,8 +813,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) - begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) + begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value! end # @@ -828,7 +830,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -838,7 +840,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -911,8 +912,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) - response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -927,8 +928,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -942,7 +943,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -951,6 +952,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -998,8 +1000,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) - response = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value! + def begin_add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil) + response = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers).value! nil end @@ -1017,8 +1019,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_add_data_disk_with_http_info(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) - begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value! + def begin_add_data_disk_with_http_info(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil) + begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers).value! end # @@ -1035,7 +1037,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil) + def begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -1045,7 +1047,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1101,8 +1102,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) - response = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value! + def begin_apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil) + response = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers).value! nil end @@ -1120,8 +1121,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_apply_artifacts_with_http_info(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) - begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value! + def begin_apply_artifacts_with_http_info(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil) + begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers).value! end # @@ -1138,7 +1139,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil) + def begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -1148,7 +1149,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1202,8 +1202,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_claim(resource_group_name, lab_name, name, custom_headers = nil) - response = begin_claim_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_claim(resource_group_name, lab_name, name, custom_headers:nil) + response = begin_claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -1219,8 +1219,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_claim_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - begin_claim_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_claim_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + begin_claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -1235,7 +1235,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_claim_async(resource_group_name, lab_name, name, custom_headers = nil) + def begin_claim_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -1244,6 +1244,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1291,8 +1292,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) - response = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value! + def begin_detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil) + response = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers).value! nil end @@ -1310,8 +1311,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_detach_data_disk_with_http_info(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) - begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value! + def begin_detach_data_disk_with_http_info(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil) + begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers).value! end # @@ -1328,7 +1329,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil) + def begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -1338,7 +1339,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1391,8 +1391,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_start(resource_group_name, lab_name, name, custom_headers = nil) - response = begin_start_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_start(resource_group_name, lab_name, name, custom_headers:nil) + response = begin_start_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -1407,8 +1407,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - begin_start_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + begin_start_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -1422,7 +1422,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, lab_name, name, custom_headers = nil) + def begin_start_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -1431,6 +1431,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1475,8 +1476,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, lab_name, name, custom_headers = nil) - response = begin_stop_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_stop(resource_group_name, lab_name, name, custom_headers:nil) + response = begin_stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -1491,8 +1492,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - begin_stop_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + begin_stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -1506,7 +1507,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, lab_name, name, custom_headers = nil) + def begin_stop_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -1515,6 +1516,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1559,8 +1561,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationLabVirtualMachine] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1574,8 +1576,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1588,11 +1590,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1654,12 +1657,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationLabVirtualMachine] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb index 48f0463ff..5b2408d33 100644 --- a/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb +++ b/management/azure_mgmt_devtestlabs/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb @@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Array] operation results. # - def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers) + def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -146,8 +147,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [VirtualNetwork] operation results. # - def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,8 +165,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) - get_async(resource_group_name, lab_name, name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) + get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value! end # @@ -181,7 +182,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -190,6 +191,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -247,8 +249,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [VirtualNetwork] operation results. # - def create_or_update(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) - response = create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! + def create_or_update(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) + response = create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -263,9 +265,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) + def create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers) + promise = begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -290,8 +292,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, lab_name, name, custom_headers = nil) - response = delete_async(resource_group_name, lab_name, name, custom_headers).value! + def delete(resource_group_name, lab_name, name, custom_headers:nil) + response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -305,9 +307,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def delete_async(resource_group_name, lab_name, name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers) + promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -333,8 +335,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [VirtualNetwork] operation results. # - def update(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) - response = update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! + def update(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) + response = update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -350,8 +352,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) - update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! + def update_with_http_info(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) + update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers).value! end # @@ -366,7 +368,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) + def update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -376,7 +378,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -442,8 +443,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [VirtualNetwork] operation results. # - def begin_create_or_update(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! + def begin_create_or_update(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -460,8 +461,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) - begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) + begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:custom_headers).value! end # @@ -477,7 +478,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, lab_name, name, virtual_network, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -487,7 +488,6 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -560,8 +560,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, lab_name, name, custom_headers = nil) - response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_delete(resource_group_name, lab_name, name, custom_headers:nil) + response = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! nil end @@ -576,8 +576,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil) - begin_delete_async(resource_group_name, lab_name, name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil) + begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value! end # @@ -591,7 +591,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, lab_name, name, custom_headers = nil) + def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'lab_name is nil' if lab_name.nil? @@ -600,6 +600,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -644,8 +645,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [ResponseWithContinuationVirtualNetwork] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -659,8 +660,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -673,11 +674,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -739,12 +741,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15 # @return [ResponseWithContinuationVirtualNetwork] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_devtestlabs/lib/profiles/latest/modules/devtestlabs_profile_module.rb b/management/azure_mgmt_devtestlabs/lib/profiles/latest/modules/devtestlabs_profile_module.rb index 5770494fe..c1ef4aef9 100644 --- a/management/azure_mgmt_devtestlabs/lib/profiles/latest/modules/devtestlabs_profile_module.rb +++ b/management/azure_mgmt_devtestlabs/lib/profiles/latest/modules/devtestlabs_profile_module.rb @@ -200,32 +200,32 @@ module Azure::DevTestLabs::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::DevTestLabs::Mgmt::V2016_05_15::DevTestLabsClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::DevTestLabs::Mgmt::V2016_05_15::DevTestLabsClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @labs = client_0.labs - @global_schedules = client_0.global_schedules - @artifact_sources = client_0.artifact_sources - @arm_templates = client_0.arm_templates - @artifacts = client_0.artifacts - @costs = client_0.costs - @custom_images = client_0.custom_images - @formulas = client_0.formulas - @gallery_images = client_0.gallery_images - @notification_channels = client_0.notification_channels - @policy_sets = client_0.policy_sets - @policies = client_0.policies - @schedules = client_0.schedules - @service_runners = client_0.service_runners - @users = client_0.users - @disks = client_0.disks - @environments = client_0.environments - @secrets = client_0.secrets - @virtual_machines = client_0.virtual_machines - @virtual_machine_schedules = client_0.virtual_machine_schedules - @virtual_networks = client_0.virtual_networks + add_telemetry(@client_0) + @labs = @client_0.labs + @global_schedules = @client_0.global_schedules + @artifact_sources = @client_0.artifact_sources + @arm_templates = @client_0.arm_templates + @artifacts = @client_0.artifacts + @costs = @client_0.costs + @custom_images = @client_0.custom_images + @formulas = @client_0.formulas + @gallery_images = @client_0.gallery_images + @notification_channels = @client_0.notification_channels + @policy_sets = @client_0.policy_sets + @policies = @client_0.policies + @schedules = @client_0.schedules + @service_runners = @client_0.service_runners + @users = @client_0.users + @disks = @client_0.disks + @environments = @client_0.environments + @secrets = @client_0.secrets + @virtual_machines = @client_0.virtual_machines + @virtual_machine_schedules = @client_0.virtual_machine_schedules + @virtual_networks = @client_0.virtual_networks @model_classes = ModelClasses.new end @@ -235,6 +235,14 @@ module Azure::DevTestLabs::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_dns/lib/2016-04-01/generated/azure_mgmt_dns/record_sets.rb b/management/azure_mgmt_dns/lib/2016-04-01/generated/azure_mgmt_dns/record_sets.rb index bae2dac3c..129c46b48 100644 --- a/management/azure_mgmt_dns/lib/2016-04-01/generated/azure_mgmt_dns/record_sets.rb +++ b/management/azure_mgmt_dns/lib/2016-04-01/generated/azure_mgmt_dns/record_sets.rb @@ -41,8 +41,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [RecordSet] operation results. # - def update(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, custom_headers = nil) - response = update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match, custom_headers).value! + def update(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, custom_headers:nil) + response = update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -66,8 +66,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, custom_headers = nil) - update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match, custom_headers).value! + def update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, custom_headers:nil) + update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:if_match, custom_headers:custom_headers).value! end # @@ -90,7 +90,7 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, custom_headers = nil) + def update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'zone_name is nil' if zone_name.nil? fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil? @@ -101,7 +101,6 @@ module Azure::Dns::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -181,8 +180,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [RecordSet] operation results. # - def create_or_update(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, if_none_match = nil, custom_headers = nil) - response = create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match, if_none_match, custom_headers).value! + def create_or_update(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, if_none_match:nil, custom_headers:nil) + response = create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -211,8 +210,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, if_none_match = nil, custom_headers = nil) - create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match, if_none_match, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, if_none_match:nil, custom_headers:nil) + create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! end # @@ -240,7 +239,7 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match = nil, if_none_match = nil, custom_headers = nil) + def create_or_update_async(resource_group_name, zone_name, relative_record_set_name, record_type, parameters, if_match:nil, if_none_match:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'zone_name is nil' if zone_name.nil? fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil? @@ -251,7 +250,6 @@ module Azure::Dns::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -336,8 +334,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil, custom_headers = nil) - response = delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match, custom_headers).value! + def delete(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:nil, custom_headers:nil) + response = delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:if_match, custom_headers:custom_headers).value! nil end @@ -361,8 +359,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil, custom_headers = nil) - delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match, custom_headers).value! + def delete_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:nil, custom_headers:nil) + delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:if_match, custom_headers:custom_headers).value! end # @@ -385,7 +383,7 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match = nil, custom_headers = nil) + def delete_async(resource_group_name, zone_name, relative_record_set_name, record_type, if_match:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'zone_name is nil' if zone_name.nil? fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil? @@ -395,6 +393,7 @@ module Azure::Dns::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -447,8 +446,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [RecordSet] operation results. # - def get(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers = nil) - response = get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers).value! + def get(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers:nil) + response = get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -468,8 +467,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers = nil) - get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers).value! + def get_with_http_info(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers:nil) + get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers:custom_headers).value! end # @@ -488,7 +487,7 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers = nil) + def get_async(resource_group_name, zone_name, relative_record_set_name, record_type, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'zone_name is nil' if zone_name.nil? fail ArgumentError, 'relative_record_set_name is nil' if relative_record_set_name.nil? @@ -498,6 +497,7 @@ module Azure::Dns::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -563,8 +563,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list_by_type(resource_group_name, zone_name, record_type, top = nil, recordsetnamesuffix = nil, custom_headers = nil) - first_page = list_by_type_as_lazy(resource_group_name, zone_name, record_type, top, recordsetnamesuffix, custom_headers) + def list_by_type(resource_group_name, zone_name, record_type, top:nil, recordsetnamesuffix:nil, custom_headers:nil) + first_page = list_by_type_as_lazy(resource_group_name, zone_name, record_type, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers) first_page.get_all_items end @@ -588,8 +588,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_type_with_http_info(resource_group_name, zone_name, record_type, top = nil, recordsetnamesuffix = nil, custom_headers = nil) - list_by_type_async(resource_group_name, zone_name, record_type, top, recordsetnamesuffix, custom_headers).value! + def list_by_type_with_http_info(resource_group_name, zone_name, record_type, top:nil, recordsetnamesuffix:nil, custom_headers:nil) + list_by_type_async(resource_group_name, zone_name, record_type, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value! end # @@ -612,7 +612,7 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_type_async(resource_group_name, zone_name, record_type, top = nil, recordsetnamesuffix = nil, custom_headers = nil) + def list_by_type_async(resource_group_name, zone_name, record_type, top:nil, recordsetnamesuffix:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'zone_name is nil' if zone_name.nil? fail ArgumentError, 'record_type is nil' if record_type.nil? @@ -621,6 +621,7 @@ module Azure::Dns::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -682,8 +683,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list_by_dns_zone(resource_group_name, zone_name, top = nil, recordsetnamesuffix = nil, custom_headers = nil) - first_page = list_by_dns_zone_as_lazy(resource_group_name, zone_name, top, recordsetnamesuffix, custom_headers) + def list_by_dns_zone(resource_group_name, zone_name, top:nil, recordsetnamesuffix:nil, custom_headers:nil) + first_page = list_by_dns_zone_as_lazy(resource_group_name, zone_name, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers) first_page.get_all_items end @@ -704,8 +705,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_dns_zone_with_http_info(resource_group_name, zone_name, top = nil, recordsetnamesuffix = nil, custom_headers = nil) - list_by_dns_zone_async(resource_group_name, zone_name, top, recordsetnamesuffix, custom_headers).value! + def list_by_dns_zone_with_http_info(resource_group_name, zone_name, top:nil, recordsetnamesuffix:nil, custom_headers:nil) + list_by_dns_zone_async(resource_group_name, zone_name, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value! end # @@ -725,7 +726,7 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_dns_zone_async(resource_group_name, zone_name, top = nil, recordsetnamesuffix = nil, custom_headers = nil) + def list_by_dns_zone_async(resource_group_name, zone_name, top:nil, recordsetnamesuffix:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'zone_name is nil' if zone_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -733,6 +734,7 @@ module Azure::Dns::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -787,8 +789,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [RecordSetListResult] operation results. # - def list_by_type_next(next_page_link, custom_headers = nil) - response = list_by_type_next_async(next_page_link, custom_headers).value! + def list_by_type_next(next_page_link, custom_headers:nil) + response = list_by_type_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -802,8 +804,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_type_next_with_http_info(next_page_link, custom_headers = nil) - list_by_type_next_async(next_page_link, custom_headers).value! + def list_by_type_next_with_http_info(next_page_link, custom_headers:nil) + list_by_type_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -816,11 +818,12 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_type_next_async(next_page_link, custom_headers = nil) + def list_by_type_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -874,8 +877,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [RecordSetListResult] operation results. # - def list_by_dns_zone_next(next_page_link, custom_headers = nil) - response = list_by_dns_zone_next_async(next_page_link, custom_headers).value! + def list_by_dns_zone_next(next_page_link, custom_headers:nil) + response = list_by_dns_zone_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -889,8 +892,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_dns_zone_next_with_http_info(next_page_link, custom_headers = nil) - list_by_dns_zone_next_async(next_page_link, custom_headers).value! + def list_by_dns_zone_next_with_http_info(next_page_link, custom_headers:nil) + list_by_dns_zone_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -903,11 +906,12 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_dns_zone_next_async(next_page_link, custom_headers = nil) + def list_by_dns_zone_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -972,12 +976,12 @@ module Azure::Dns::Mgmt::V2016_04_01 # @return [RecordSetListResult] which provide lazy access to pages of the # response. # - def list_by_type_as_lazy(resource_group_name, zone_name, record_type, top = nil, recordsetnamesuffix = nil, custom_headers = nil) - response = list_by_type_async(resource_group_name, zone_name, record_type, top, recordsetnamesuffix, custom_headers).value! + def list_by_type_as_lazy(resource_group_name, zone_name, record_type, top:nil, recordsetnamesuffix:nil, custom_headers:nil) + response = list_by_type_async(resource_group_name, zone_name, record_type, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_type_next_async(next_page_link, custom_headers) + list_by_type_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1001,12 +1005,12 @@ module Azure::Dns::Mgmt::V2016_04_01 # @return [RecordSetListResult] which provide lazy access to pages of the # response. # - def list_by_dns_zone_as_lazy(resource_group_name, zone_name, top = nil, recordsetnamesuffix = nil, custom_headers = nil) - response = list_by_dns_zone_async(resource_group_name, zone_name, top, recordsetnamesuffix, custom_headers).value! + def list_by_dns_zone_as_lazy(resource_group_name, zone_name, top:nil, recordsetnamesuffix:nil, custom_headers:nil) + response = list_by_dns_zone_async(resource_group_name, zone_name, top:top, recordsetnamesuffix:recordsetnamesuffix, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_dns_zone_next_async(next_page_link, custom_headers) + list_by_dns_zone_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_dns/lib/2016-04-01/generated/azure_mgmt_dns/zones.rb b/management/azure_mgmt_dns/lib/2016-04-01/generated/azure_mgmt_dns/zones.rb index 7a3d0e068..64bec646c 100644 --- a/management/azure_mgmt_dns/lib/2016-04-01/generated/azure_mgmt_dns/zones.rb +++ b/management/azure_mgmt_dns/lib/2016-04-01/generated/azure_mgmt_dns/zones.rb @@ -39,8 +39,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Zone] operation results. # - def create_or_update(resource_group_name, zone_name, parameters, if_match = nil, if_none_match = nil, custom_headers = nil) - response = create_or_update_async(resource_group_name, zone_name, parameters, if_match, if_none_match, custom_headers).value! + def create_or_update(resource_group_name, zone_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil) + response = create_or_update_async(resource_group_name, zone_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -62,8 +62,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, zone_name, parameters, if_match = nil, if_none_match = nil, custom_headers = nil) - create_or_update_async(resource_group_name, zone_name, parameters, if_match, if_none_match, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, zone_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil) + create_or_update_async(resource_group_name, zone_name, parameters, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, zone_name, parameters, if_match = nil, if_none_match = nil, custom_headers = nil) + def create_or_update_async(resource_group_name, zone_name, parameters, if_match:nil, if_none_match:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'zone_name is nil' if zone_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -93,7 +93,6 @@ module Azure::Dns::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -173,8 +172,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [ZoneDeleteResult] operation results. # - def delete(resource_group_name, zone_name, if_match = nil, custom_headers = nil) - response = delete_async(resource_group_name, zone_name, if_match, custom_headers).value! + def delete(resource_group_name, zone_name, if_match:nil, custom_headers:nil) + response = delete_async(resource_group_name, zone_name, if_match:if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +190,9 @@ module Azure::Dns::Mgmt::V2016_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, zone_name, if_match = nil, custom_headers = nil) + def delete_async(resource_group_name, zone_name, if_match:nil, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, zone_name, if_match, custom_headers) + promise = begin_delete_async(resource_group_name, zone_name, if_match:if_match, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -221,8 +220,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Zone] operation results. # - def get(resource_group_name, zone_name, custom_headers = nil) - response = get_async(resource_group_name, zone_name, custom_headers).value! + def get(resource_group_name, zone_name, custom_headers:nil) + response = get_async(resource_group_name, zone_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -238,8 +237,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, zone_name, custom_headers = nil) - get_async(resource_group_name, zone_name, custom_headers).value! + def get_with_http_info(resource_group_name, zone_name, custom_headers:nil) + get_async(resource_group_name, zone_name, custom_headers:custom_headers).value! end # @@ -254,7 +253,7 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, zone_name, custom_headers = nil) + def get_async(resource_group_name, zone_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'zone_name is nil' if zone_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -262,6 +261,7 @@ module Azure::Dns::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -317,8 +317,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, top = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, top, custom_headers) + def list_by_resource_group(resource_group_name, top:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -333,8 +333,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, top = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, top, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, top:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value! end # @@ -348,13 +348,14 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, top = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -409,8 +410,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list(top = nil, custom_headers = nil) - first_page = list_as_lazy(top, custom_headers) + def list(top:nil, custom_headers:nil) + first_page = list_as_lazy(top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -424,8 +425,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(top = nil, custom_headers = nil) - list_async(top, custom_headers).value! + def list_with_http_info(top:nil, custom_headers:nil) + list_async(top:top, custom_headers:custom_headers).value! end # @@ -438,12 +439,13 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(top = nil, custom_headers = nil) + def list_async(top:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -503,8 +505,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [ZoneDeleteResult] operation results. # - def begin_delete(resource_group_name, zone_name, if_match = nil, custom_headers = nil) - response = begin_delete_async(resource_group_name, zone_name, if_match, custom_headers).value! + def begin_delete(resource_group_name, zone_name, if_match:nil, custom_headers:nil) + response = begin_delete_async(resource_group_name, zone_name, if_match:if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -523,8 +525,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, zone_name, if_match = nil, custom_headers = nil) - begin_delete_async(resource_group_name, zone_name, if_match, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, zone_name, if_match:nil, custom_headers:nil) + begin_delete_async(resource_group_name, zone_name, if_match:if_match, custom_headers:custom_headers).value! end # @@ -542,7 +544,7 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, zone_name, if_match = nil, custom_headers = nil) + def begin_delete_async(resource_group_name, zone_name, if_match:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'zone_name is nil' if zone_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -550,6 +552,7 @@ module Azure::Dns::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -605,8 +608,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [ZoneListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -620,8 +623,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -634,11 +637,12 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -692,8 +696,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [ZoneListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -707,8 +711,8 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -721,11 +725,12 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -780,12 +785,12 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [ZoneListResult] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, top = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, top, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, top:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -801,12 +806,12 @@ module Azure::Dns::Mgmt::V2016_04_01 # # @return [ZoneListResult] which provide lazy access to pages of the response. # - def list_as_lazy(top = nil, custom_headers = nil) - response = list_async(top, custom_headers).value! + def list_as_lazy(top:nil, custom_headers:nil) + response = list_async(top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_dns/lib/profiles/latest/modules/dns_profile_module.rb b/management/azure_mgmt_dns/lib/profiles/latest/modules/dns_profile_module.rb index c3c6e8430..316c8b079 100644 --- a/management/azure_mgmt_dns/lib/profiles/latest/modules/dns_profile_module.rb +++ b/management/azure_mgmt_dns/lib/profiles/latest/modules/dns_profile_module.rb @@ -50,13 +50,13 @@ module Azure::Dns::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Dns::Mgmt::V2016_04_01::DnsManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Dns::Mgmt::V2016_04_01::DnsManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @record_sets = client_0.record_sets - @zones = client_0.zones + add_telemetry(@client_0) + @record_sets = @client_0.record_sets + @zones = @client_0.zones @model_classes = ModelClasses.new end @@ -66,6 +66,14 @@ module Azure::Dns::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb b/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb index 961e393bf..deca9fb57 100644 --- a/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +++ b/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb @@ -42,8 +42,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscription] operation results. # - def get(scope, event_subscription_name, custom_headers = nil) - response = get_async(scope, event_subscription_name, custom_headers).value! + def get(scope, event_subscription_name, custom_headers:nil) + response = get_async(scope, event_subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -68,8 +68,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(scope, event_subscription_name, custom_headers = nil) - get_async(scope, event_subscription_name, custom_headers).value! + def get_with_http_info(scope, event_subscription_name, custom_headers:nil) + get_async(scope, event_subscription_name, custom_headers:custom_headers).value! end # @@ -93,13 +93,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(scope, event_subscription_name, custom_headers = nil) + def get_async(scope, event_subscription_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscription] operation results. # - def create(scope, event_subscription_name, event_subscription_info, custom_headers = nil) - response = create_async(scope, event_subscription_name, event_subscription_info, custom_headers).value! + def create(scope, event_subscription_name, event_subscription_info, custom_headers:nil) + response = create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -201,9 +202,9 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(scope, event_subscription_name, event_subscription_info, custom_headers = nil) + def create_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil) # Send request - promise = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers) + promise = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -238,8 +239,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(scope, event_subscription_name, custom_headers = nil) - response = delete_async(scope, event_subscription_name, custom_headers).value! + def delete(scope, event_subscription_name, custom_headers:nil) + response = delete_async(scope, event_subscription_name, custom_headers:custom_headers).value! nil end @@ -261,9 +262,9 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(scope, event_subscription_name, custom_headers = nil) + def delete_async(scope, event_subscription_name, custom_headers:nil) # Send request - promise = begin_delete_async(scope, event_subscription_name, custom_headers) + promise = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -301,8 +302,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscription] operation results. # - def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) - response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value! + def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) + response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -327,9 +328,9 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) + def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers) + promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -366,8 +367,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscriptionFullUrl] operation results. # - def get_full_url(scope, event_subscription_name, custom_headers = nil) - response = get_full_url_async(scope, event_subscription_name, custom_headers).value! + def get_full_url(scope, event_subscription_name, custom_headers:nil) + response = get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -392,8 +393,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_full_url_with_http_info(scope, event_subscription_name, custom_headers = nil) - get_full_url_async(scope, event_subscription_name, custom_headers).value! + def get_full_url_with_http_info(scope, event_subscription_name, custom_headers:nil) + get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value! end # @@ -417,13 +418,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_full_url_async(scope, event_subscription_name, custom_headers = nil) + def get_full_url_async(scope, event_subscription_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -481,8 +483,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_subscription(custom_headers = nil) - response = list_global_by_subscription_async(custom_headers).value! + def list_global_by_subscription(custom_headers:nil) + response = list_global_by_subscription_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -498,8 +500,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_subscription_with_http_info(custom_headers = nil) - list_global_by_subscription_async(custom_headers).value! + def list_global_by_subscription_with_http_info(custom_headers:nil) + list_global_by_subscription_async(custom_headers:custom_headers).value! end # @@ -514,12 +516,13 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_subscription_async(custom_headers = nil) + def list_global_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -576,8 +579,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers = nil) - response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers).value! + def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers:nil) + response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -593,8 +596,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers = nil) - list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers).value! + def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers:nil) + list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value! end # @@ -609,13 +612,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers = nil) + def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -674,8 +678,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_resource_group(resource_group_name, custom_headers = nil) - response = list_global_by_resource_group_async(resource_group_name, custom_headers).value! + def list_global_by_resource_group(resource_group_name, custom_headers:nil) + response = list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -693,8 +697,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_global_by_resource_group_async(resource_group_name, custom_headers).value! + def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -711,13 +715,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_global_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -776,8 +781,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers = nil) - response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers).value! + def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers:nil) + response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -795,8 +800,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers = nil) - list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers).value! + def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers:nil) + list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value! end # @@ -813,7 +818,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers = nil) + def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? @@ -821,6 +826,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -877,8 +883,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_subscription(location, custom_headers = nil) - response = list_regional_by_subscription_async(location, custom_headers).value! + def list_regional_by_subscription(location, custom_headers:nil) + response = list_regional_by_subscription_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -894,8 +900,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_subscription_with_http_info(location, custom_headers = nil) - list_regional_by_subscription_async(location, custom_headers).value! + def list_regional_by_subscription_with_http_info(location, custom_headers:nil) + list_regional_by_subscription_async(location, custom_headers:custom_headers).value! end # @@ -910,13 +916,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_subscription_async(location, custom_headers = nil) + def list_regional_by_subscription_async(location, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -976,8 +983,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_resource_group(resource_group_name, location, custom_headers = nil) - response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers).value! + def list_regional_by_resource_group(resource_group_name, location, custom_headers:nil) + response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -996,8 +1003,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers = nil) - list_regional_by_resource_group_async(resource_group_name, location, custom_headers).value! + def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers:nil) + list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value! end # @@ -1015,7 +1022,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_resource_group_async(resource_group_name, location, custom_headers = nil) + def list_regional_by_resource_group_async(resource_group_name, location, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'location is nil' if location.nil? @@ -1023,6 +1030,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1081,8 +1089,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers = nil) - response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers).value! + def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers:nil) + response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1100,8 +1108,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers = nil) - list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers).value! + def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers:nil) + list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value! end # @@ -1118,7 +1126,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers = nil) + def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? @@ -1126,6 +1134,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1186,8 +1195,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers = nil) - response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers).value! + def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers:nil) + response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1207,8 +1216,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers = nil) - list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers).value! + def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers:nil) + list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value! end # @@ -1227,7 +1236,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers = nil) + def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'location is nil' if location.nil? @@ -1236,6 +1245,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1295,8 +1305,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1315,8 +1325,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! end # @@ -1334,7 +1344,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) + def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil? @@ -1344,6 +1354,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1416,8 +1427,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscription] operation results. # - def begin_create(scope, event_subscription_name, event_subscription_info, custom_headers = nil) - response = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers).value! + def begin_create(scope, event_subscription_name, event_subscription_info, custom_headers:nil) + response = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1449,8 +1460,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers = nil) - begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers).value! + def begin_create_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers:nil) + begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value! end # @@ -1481,7 +1492,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers = nil) + def begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, 'event_subscription_info is nil' if event_subscription_info.nil? @@ -1489,7 +1500,6 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1563,8 +1573,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # will be added to the HTTP request. # # - def begin_delete(scope, event_subscription_name, custom_headers = nil) - response = begin_delete_async(scope, event_subscription_name, custom_headers).value! + def begin_delete(scope, event_subscription_name, custom_headers:nil) + response = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value! nil end @@ -1589,8 +1599,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(scope, event_subscription_name, custom_headers = nil) - begin_delete_async(scope, event_subscription_name, custom_headers).value! + def begin_delete_with_http_info(scope, event_subscription_name, custom_headers:nil) + begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value! end # @@ -1614,13 +1624,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(scope, event_subscription_name, custom_headers = nil) + def begin_delete_async(scope, event_subscription_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1680,8 +1691,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventSubscription] operation results. # - def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) - response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value! + def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) + response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1709,8 +1720,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) - begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value! + def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) + begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value! end # @@ -1737,7 +1748,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) + def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, 'event_subscription_update_parameters is nil' if event_subscription_update_parameters.nil? @@ -1745,7 +1756,6 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/operations.rb b/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/operations.rb index eac2e8f4f..94db317c8 100644 --- a/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/operations.rb +++ b/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/operations.rb @@ -32,8 +32,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [OperationsListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -63,11 +63,12 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topic_types.rb b/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topic_types.rb index 0eca77db4..d29cea231 100644 --- a/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +++ b/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topic_types.rb @@ -31,8 +31,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [TopicTypesListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,11 +60,12 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -119,8 +120,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [TopicTypeInfo] operation results. # - def get(topic_type_name, custom_headers = nil) - response = get_async(topic_type_name, custom_headers).value! + def get(topic_type_name, custom_headers:nil) + response = get_async(topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -135,8 +136,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(topic_type_name, custom_headers = nil) - get_async(topic_type_name, custom_headers).value! + def get_with_http_info(topic_type_name, custom_headers:nil) + get_async(topic_type_name, custom_headers:custom_headers).value! end # @@ -150,12 +151,13 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(topic_type_name, custom_headers = nil) + def get_async(topic_type_name, custom_headers:nil) fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -211,8 +213,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventTypesListResult] operation results. # - def list_event_types(topic_type_name, custom_headers = nil) - response = list_event_types_async(topic_type_name, custom_headers).value! + def list_event_types(topic_type_name, custom_headers:nil) + response = list_event_types_async(topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -227,8 +229,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_types_with_http_info(topic_type_name, custom_headers = nil) - list_event_types_async(topic_type_name, custom_headers).value! + def list_event_types_with_http_info(topic_type_name, custom_headers:nil) + list_event_types_async(topic_type_name, custom_headers:custom_headers).value! end # @@ -242,12 +244,13 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_types_async(topic_type_name, custom_headers = nil) + def list_event_types_async(topic_type_name, custom_headers:nil) fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topics.rb b/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topics.rb index 1f6f433e5..b623ffa17 100644 --- a/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topics.rb +++ b/management/azure_mgmt_event_grid/lib/2017-06-15-preview/generated/azure_mgmt_event_grid/topics.rb @@ -34,8 +34,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Topic] operation results. # - def get(resource_group_name, topic_name, custom_headers = nil) - response = get_async(resource_group_name, topic_name, custom_headers).value! + def get(resource_group_name, topic_name, custom_headers:nil) + response = get_async(resource_group_name, topic_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, topic_name, custom_headers = nil) - get_async(resource_group_name, topic_name, custom_headers).value! + def get_with_http_info(resource_group_name, topic_name, custom_headers:nil) + get_async(resource_group_name, topic_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, topic_name, custom_headers = nil) + def get_async(resource_group_name, topic_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -77,6 +77,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Topic] operation results. # - def create_or_update(resource_group_name, topic_name, topic_info, custom_headers = nil) - response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value! + def create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil) + response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,9 +152,9 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers = nil) + def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers) + promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -180,8 +181,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, topic_name, custom_headers = nil) - response = delete_async(resource_group_name, topic_name, custom_headers).value! + def delete(resource_group_name, topic_name, custom_headers:nil) + response = delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value! nil end @@ -195,9 +196,9 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, topic_name, custom_headers = nil) + def delete_async(resource_group_name, topic_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, topic_name, custom_headers) + promise = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -221,8 +222,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [TopicsListResult] operation results. # - def list_by_subscription(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -236,8 +237,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -250,12 +251,13 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -312,8 +314,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [TopicsListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -329,8 +331,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -345,13 +347,14 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -409,8 +412,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [TopicSharedAccessKeys] operation results. # - def list_shared_access_keys(resource_group_name, topic_name, custom_headers = nil) - response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers).value! + def list_shared_access_keys(resource_group_name, topic_name, custom_headers:nil) + response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -427,8 +430,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers = nil) - list_shared_access_keys_async(resource_group_name, topic_name, custom_headers).value! + def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers:nil) + list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value! end # @@ -444,7 +447,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers = nil) + def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -452,6 +455,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -511,8 +515,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [TopicSharedAccessKeys] operation results. # - def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil) - response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers).value! + def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil) + response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -531,8 +535,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil) - regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil) + regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value! end # @@ -550,7 +554,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil) + def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -559,7 +563,6 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -627,8 +630,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [EventTypesListResult] operation results. # - def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -647,8 +650,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! end # @@ -666,7 +669,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) + def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil? @@ -676,6 +679,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -734,8 +738,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Topic] operation results. # - def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value! + def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -753,8 +757,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers = nil) - begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers:nil) + begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value! end # @@ -771,7 +775,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -780,7 +784,6 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -845,8 +848,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, topic_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, topic_name, custom_headers).value! + def begin_delete(resource_group_name, topic_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value! nil end @@ -863,8 +866,8 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers = nil) - begin_delete_async(resource_group_name, topic_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers:nil) + begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value! end # @@ -880,7 +883,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, topic_name, custom_headers = nil) + def begin_delete_async(resource_group_name, topic_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -888,6 +891,7 @@ module Azure::EventGrid::Mgmt::V2017_06_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb b/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb index af9e3074e..070cfa08f 100644 --- a/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb +++ b/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/event_subscriptions.rb @@ -42,8 +42,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscription] operation results. # - def get(scope, event_subscription_name, custom_headers = nil) - response = get_async(scope, event_subscription_name, custom_headers).value! + def get(scope, event_subscription_name, custom_headers:nil) + response = get_async(scope, event_subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -68,8 +68,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(scope, event_subscription_name, custom_headers = nil) - get_async(scope, event_subscription_name, custom_headers).value! + def get_with_http_info(scope, event_subscription_name, custom_headers:nil) + get_async(scope, event_subscription_name, custom_headers:custom_headers).value! end # @@ -93,13 +93,14 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(scope, event_subscription_name, custom_headers = nil) + def get_async(scope, event_subscription_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscription] operation results. # - def create(scope, event_subscription_name, event_subscription_info, custom_headers = nil) - response = create_async(scope, event_subscription_name, event_subscription_info, custom_headers).value! + def create(scope, event_subscription_name, event_subscription_info, custom_headers:nil) + response = create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -201,9 +202,9 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(scope, event_subscription_name, event_subscription_info, custom_headers = nil) + def create_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil) # Send request - promise = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers) + promise = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -238,8 +239,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(scope, event_subscription_name, custom_headers = nil) - response = delete_async(scope, event_subscription_name, custom_headers).value! + def delete(scope, event_subscription_name, custom_headers:nil) + response = delete_async(scope, event_subscription_name, custom_headers:custom_headers).value! nil end @@ -261,9 +262,9 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(scope, event_subscription_name, custom_headers = nil) + def delete_async(scope, event_subscription_name, custom_headers:nil) # Send request - promise = begin_delete_async(scope, event_subscription_name, custom_headers) + promise = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -301,8 +302,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscription] operation results. # - def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) - response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value! + def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) + response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -327,9 +328,9 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) + def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers) + promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -366,8 +367,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscriptionFullUrl] operation results. # - def get_full_url(scope, event_subscription_name, custom_headers = nil) - response = get_full_url_async(scope, event_subscription_name, custom_headers).value! + def get_full_url(scope, event_subscription_name, custom_headers:nil) + response = get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -392,8 +393,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_full_url_with_http_info(scope, event_subscription_name, custom_headers = nil) - get_full_url_async(scope, event_subscription_name, custom_headers).value! + def get_full_url_with_http_info(scope, event_subscription_name, custom_headers:nil) + get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value! end # @@ -417,13 +418,14 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_full_url_async(scope, event_subscription_name, custom_headers = nil) + def get_full_url_async(scope, event_subscription_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -481,8 +483,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_subscription(custom_headers = nil) - response = list_global_by_subscription_async(custom_headers).value! + def list_global_by_subscription(custom_headers:nil) + response = list_global_by_subscription_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -498,8 +500,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_subscription_with_http_info(custom_headers = nil) - list_global_by_subscription_async(custom_headers).value! + def list_global_by_subscription_with_http_info(custom_headers:nil) + list_global_by_subscription_async(custom_headers:custom_headers).value! end # @@ -514,12 +516,13 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_subscription_async(custom_headers = nil) + def list_global_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -576,8 +579,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers = nil) - response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers).value! + def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers:nil) + response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -593,8 +596,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers = nil) - list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers).value! + def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers:nil) + list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value! end # @@ -609,13 +612,14 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers = nil) + def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -674,8 +678,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_resource_group(resource_group_name, custom_headers = nil) - response = list_global_by_resource_group_async(resource_group_name, custom_headers).value! + def list_global_by_resource_group(resource_group_name, custom_headers:nil) + response = list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -693,8 +697,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_global_by_resource_group_async(resource_group_name, custom_headers).value! + def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -711,13 +715,14 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_global_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -776,8 +781,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers = nil) - response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers).value! + def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers:nil) + response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -795,8 +800,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers = nil) - list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers).value! + def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers:nil) + list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value! end # @@ -813,7 +818,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers = nil) + def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? @@ -821,6 +826,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -877,8 +883,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_subscription(location, custom_headers = nil) - response = list_regional_by_subscription_async(location, custom_headers).value! + def list_regional_by_subscription(location, custom_headers:nil) + response = list_regional_by_subscription_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -894,8 +900,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_subscription_with_http_info(location, custom_headers = nil) - list_regional_by_subscription_async(location, custom_headers).value! + def list_regional_by_subscription_with_http_info(location, custom_headers:nil) + list_regional_by_subscription_async(location, custom_headers:custom_headers).value! end # @@ -910,13 +916,14 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_subscription_async(location, custom_headers = nil) + def list_regional_by_subscription_async(location, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -976,8 +983,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_resource_group(resource_group_name, location, custom_headers = nil) - response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers).value! + def list_regional_by_resource_group(resource_group_name, location, custom_headers:nil) + response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -996,8 +1003,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers = nil) - list_regional_by_resource_group_async(resource_group_name, location, custom_headers).value! + def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers:nil) + list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value! end # @@ -1015,7 +1022,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_resource_group_async(resource_group_name, location, custom_headers = nil) + def list_regional_by_resource_group_async(resource_group_name, location, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'location is nil' if location.nil? @@ -1023,6 +1030,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1081,8 +1089,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers = nil) - response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers).value! + def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers:nil) + response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1100,8 +1108,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers = nil) - list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers).value! + def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers:nil) + list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value! end # @@ -1118,7 +1126,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers = nil) + def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? @@ -1126,6 +1134,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1186,8 +1195,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers = nil) - response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers).value! + def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers:nil) + response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1207,8 +1216,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers = nil) - list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers).value! + def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers:nil) + list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value! end # @@ -1227,7 +1236,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers = nil) + def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'location is nil' if location.nil? @@ -1236,6 +1245,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1295,8 +1305,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscriptionsListResult] operation results. # - def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1315,8 +1325,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! end # @@ -1334,7 +1344,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) + def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil? @@ -1344,6 +1354,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1416,8 +1427,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscription] operation results. # - def begin_create(scope, event_subscription_name, event_subscription_info, custom_headers = nil) - response = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers).value! + def begin_create(scope, event_subscription_name, event_subscription_info, custom_headers:nil) + response = begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1449,8 +1460,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers = nil) - begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers).value! + def begin_create_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers:nil) + begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value! end # @@ -1481,7 +1492,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers = nil) + def begin_create_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, 'event_subscription_info is nil' if event_subscription_info.nil? @@ -1489,7 +1500,6 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1563,8 +1573,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # will be added to the HTTP request. # # - def begin_delete(scope, event_subscription_name, custom_headers = nil) - response = begin_delete_async(scope, event_subscription_name, custom_headers).value! + def begin_delete(scope, event_subscription_name, custom_headers:nil) + response = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value! nil end @@ -1589,8 +1599,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(scope, event_subscription_name, custom_headers = nil) - begin_delete_async(scope, event_subscription_name, custom_headers).value! + def begin_delete_with_http_info(scope, event_subscription_name, custom_headers:nil) + begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value! end # @@ -1614,13 +1624,14 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(scope, event_subscription_name, custom_headers = nil) + def begin_delete_async(scope, event_subscription_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1680,8 +1691,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventSubscription] operation results. # - def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) - response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value! + def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) + response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1709,8 +1720,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) - begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value! + def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) + begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value! end # @@ -1737,7 +1748,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) + def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, 'event_subscription_update_parameters is nil' if event_subscription_update_parameters.nil? @@ -1745,7 +1756,6 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb b/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb index 162f6e827..83155585c 100644 --- a/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb +++ b/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/operations.rb @@ -32,8 +32,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [OperationsListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -63,11 +63,12 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb b/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb index 02f2f72e3..79fca6bfd 100644 --- a/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb +++ b/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topic_types.rb @@ -31,8 +31,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [TopicTypesListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,11 +60,12 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -119,8 +120,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [TopicTypeInfo] operation results. # - def get(topic_type_name, custom_headers = nil) - response = get_async(topic_type_name, custom_headers).value! + def get(topic_type_name, custom_headers:nil) + response = get_async(topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -135,8 +136,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(topic_type_name, custom_headers = nil) - get_async(topic_type_name, custom_headers).value! + def get_with_http_info(topic_type_name, custom_headers:nil) + get_async(topic_type_name, custom_headers:custom_headers).value! end # @@ -150,12 +151,13 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(topic_type_name, custom_headers = nil) + def get_async(topic_type_name, custom_headers:nil) fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -211,8 +213,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventTypesListResult] operation results. # - def list_event_types(topic_type_name, custom_headers = nil) - response = list_event_types_async(topic_type_name, custom_headers).value! + def list_event_types(topic_type_name, custom_headers:nil) + response = list_event_types_async(topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -227,8 +229,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_types_with_http_info(topic_type_name, custom_headers = nil) - list_event_types_async(topic_type_name, custom_headers).value! + def list_event_types_with_http_info(topic_type_name, custom_headers:nil) + list_event_types_async(topic_type_name, custom_headers:custom_headers).value! end # @@ -242,12 +244,13 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_types_async(topic_type_name, custom_headers = nil) + def list_event_types_async(topic_type_name, custom_headers:nil) fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb b/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb index 6937c05ca..e1118cc93 100644 --- a/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb +++ b/management/azure_mgmt_event_grid/lib/2017-09-15-preview/generated/azure_mgmt_event_grid/topics.rb @@ -34,8 +34,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Topic] operation results. # - def get(resource_group_name, topic_name, custom_headers = nil) - response = get_async(resource_group_name, topic_name, custom_headers).value! + def get(resource_group_name, topic_name, custom_headers:nil) + response = get_async(resource_group_name, topic_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, topic_name, custom_headers = nil) - get_async(resource_group_name, topic_name, custom_headers).value! + def get_with_http_info(resource_group_name, topic_name, custom_headers:nil) + get_async(resource_group_name, topic_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, topic_name, custom_headers = nil) + def get_async(resource_group_name, topic_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -77,6 +77,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Topic] operation results. # - def create_or_update(resource_group_name, topic_name, topic_info, custom_headers = nil) - response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value! + def create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil) + response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,9 +152,9 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers = nil) + def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers) + promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -180,8 +181,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, topic_name, custom_headers = nil) - response = delete_async(resource_group_name, topic_name, custom_headers).value! + def delete(resource_group_name, topic_name, custom_headers:nil) + response = delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value! nil end @@ -195,9 +196,9 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, topic_name, custom_headers = nil) + def delete_async(resource_group_name, topic_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, topic_name, custom_headers) + promise = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -226,8 +227,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Topic] operation results. # - def update(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers).value! + def update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -243,9 +244,9 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil) + def update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -271,8 +272,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [TopicsListResult] operation results. # - def list_by_subscription(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -286,8 +287,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -300,12 +301,13 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -362,8 +364,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [TopicsListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -379,8 +381,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -395,13 +397,14 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -459,8 +462,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [TopicSharedAccessKeys] operation results. # - def list_shared_access_keys(resource_group_name, topic_name, custom_headers = nil) - response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers).value! + def list_shared_access_keys(resource_group_name, topic_name, custom_headers:nil) + response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -477,8 +480,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers = nil) - list_shared_access_keys_async(resource_group_name, topic_name, custom_headers).value! + def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers:nil) + list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value! end # @@ -494,7 +497,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers = nil) + def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -502,6 +505,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -561,8 +565,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [TopicSharedAccessKeys] operation results. # - def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil) - response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers).value! + def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil) + response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -581,8 +585,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil) - regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil) + regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value! end # @@ -600,7 +604,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil) + def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -609,7 +613,6 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -677,8 +680,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [EventTypesListResult] operation results. # - def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -697,8 +700,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! end # @@ -716,7 +719,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) + def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil? @@ -726,6 +729,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -784,8 +788,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Topic] operation results. # - def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value! + def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -803,8 +807,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers = nil) - begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers:nil) + begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value! end # @@ -821,7 +825,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -830,7 +834,6 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -895,8 +898,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, topic_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, topic_name, custom_headers).value! + def begin_delete(resource_group_name, topic_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value! nil end @@ -913,8 +916,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers = nil) - begin_delete_async(resource_group_name, topic_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers:nil) + begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value! end # @@ -930,7 +933,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, topic_name, custom_headers = nil) + def begin_delete_async(resource_group_name, topic_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -938,6 +941,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -987,8 +991,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Topic] operation results. # - def begin_update(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers).value! + def begin_update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1007,8 +1011,8 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value! end # @@ -1026,7 +1030,7 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -1035,7 +1039,6 @@ module Azure::EventGrid::Mgmt::V2017_09_15_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb b/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb index 6db8e145a..fe7a4deb9 100644 --- a/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb +++ b/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb @@ -42,8 +42,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscription] operation results. # - def get(scope, event_subscription_name, custom_headers = nil) - response = get_async(scope, event_subscription_name, custom_headers).value! + def get(scope, event_subscription_name, custom_headers:nil) + response = get_async(scope, event_subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -68,8 +68,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(scope, event_subscription_name, custom_headers = nil) - get_async(scope, event_subscription_name, custom_headers).value! + def get_with_http_info(scope, event_subscription_name, custom_headers:nil) + get_async(scope, event_subscription_name, custom_headers:custom_headers).value! end # @@ -93,13 +93,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(scope, event_subscription_name, custom_headers = nil) + def get_async(scope, event_subscription_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscription] operation results. # - def create_or_update(scope, event_subscription_name, event_subscription_info, custom_headers = nil) - response = create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers).value! + def create_or_update(scope, event_subscription_name, event_subscription_info, custom_headers:nil) + response = create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -200,9 +201,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers = nil) + def create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil) # Send request - promise = begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers) + promise = begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -237,8 +238,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(scope, event_subscription_name, custom_headers = nil) - response = delete_async(scope, event_subscription_name, custom_headers).value! + def delete(scope, event_subscription_name, custom_headers:nil) + response = delete_async(scope, event_subscription_name, custom_headers:custom_headers).value! nil end @@ -260,9 +261,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(scope, event_subscription_name, custom_headers = nil) + def delete_async(scope, event_subscription_name, custom_headers:nil) # Send request - promise = begin_delete_async(scope, event_subscription_name, custom_headers) + promise = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -300,8 +301,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscription] operation results. # - def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) - response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value! + def update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) + response = update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -326,9 +327,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) + def update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers) + promise = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -365,8 +366,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscriptionFullUrl] operation results. # - def get_full_url(scope, event_subscription_name, custom_headers = nil) - response = get_full_url_async(scope, event_subscription_name, custom_headers).value! + def get_full_url(scope, event_subscription_name, custom_headers:nil) + response = get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -391,8 +392,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_full_url_with_http_info(scope, event_subscription_name, custom_headers = nil) - get_full_url_async(scope, event_subscription_name, custom_headers).value! + def get_full_url_with_http_info(scope, event_subscription_name, custom_headers:nil) + get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value! end # @@ -416,13 +417,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_full_url_async(scope, event_subscription_name, custom_headers = nil) + def get_full_url_async(scope, event_subscription_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -480,8 +482,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_subscription(custom_headers = nil) - response = list_global_by_subscription_async(custom_headers).value! + def list_global_by_subscription(custom_headers:nil) + response = list_global_by_subscription_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -497,8 +499,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_subscription_with_http_info(custom_headers = nil) - list_global_by_subscription_async(custom_headers).value! + def list_global_by_subscription_with_http_info(custom_headers:nil) + list_global_by_subscription_async(custom_headers:custom_headers).value! end # @@ -513,12 +515,13 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_subscription_async(custom_headers = nil) + def list_global_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -575,8 +578,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers = nil) - response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers).value! + def list_global_by_subscription_for_topic_type(topic_type_name, custom_headers:nil) + response = list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -592,8 +595,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers = nil) - list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers).value! + def list_global_by_subscription_for_topic_type_with_http_info(topic_type_name, custom_headers:nil) + list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:custom_headers).value! end # @@ -608,13 +611,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers = nil) + def list_global_by_subscription_for_topic_type_async(topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -673,8 +677,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_resource_group(resource_group_name, custom_headers = nil) - response = list_global_by_resource_group_async(resource_group_name, custom_headers).value! + def list_global_by_resource_group(resource_group_name, custom_headers:nil) + response = list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -692,8 +696,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_global_by_resource_group_async(resource_group_name, custom_headers).value! + def list_global_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_global_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -710,13 +714,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_global_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -775,8 +780,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscriptionsListResult] operation results. # - def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers = nil) - response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers).value! + def list_global_by_resource_group_for_topic_type(resource_group_name, topic_type_name, custom_headers:nil) + response = list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -794,8 +799,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers = nil) - list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers).value! + def list_global_by_resource_group_for_topic_type_with_http_info(resource_group_name, topic_type_name, custom_headers:nil) + list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:custom_headers).value! end # @@ -812,7 +817,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers = nil) + def list_global_by_resource_group_for_topic_type_async(resource_group_name, topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? @@ -820,6 +825,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -876,8 +882,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_subscription(location, custom_headers = nil) - response = list_regional_by_subscription_async(location, custom_headers).value! + def list_regional_by_subscription(location, custom_headers:nil) + response = list_regional_by_subscription_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -893,8 +899,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_subscription_with_http_info(location, custom_headers = nil) - list_regional_by_subscription_async(location, custom_headers).value! + def list_regional_by_subscription_with_http_info(location, custom_headers:nil) + list_regional_by_subscription_async(location, custom_headers:custom_headers).value! end # @@ -909,13 +915,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_subscription_async(location, custom_headers = nil) + def list_regional_by_subscription_async(location, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -975,8 +982,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_resource_group(resource_group_name, location, custom_headers = nil) - response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers).value! + def list_regional_by_resource_group(resource_group_name, location, custom_headers:nil) + response = list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -995,8 +1002,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers = nil) - list_regional_by_resource_group_async(resource_group_name, location, custom_headers).value! + def list_regional_by_resource_group_with_http_info(resource_group_name, location, custom_headers:nil) + list_regional_by_resource_group_async(resource_group_name, location, custom_headers:custom_headers).value! end # @@ -1014,7 +1021,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_resource_group_async(resource_group_name, location, custom_headers = nil) + def list_regional_by_resource_group_async(resource_group_name, location, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'location is nil' if location.nil? @@ -1022,6 +1029,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1080,8 +1088,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers = nil) - response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers).value! + def list_regional_by_subscription_for_topic_type(location, topic_type_name, custom_headers:nil) + response = list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1099,8 +1107,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers = nil) - list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers).value! + def list_regional_by_subscription_for_topic_type_with_http_info(location, topic_type_name, custom_headers:nil) + list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:custom_headers).value! end # @@ -1117,7 +1125,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers = nil) + def list_regional_by_subscription_for_topic_type_async(location, topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? @@ -1125,6 +1133,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1185,8 +1194,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscriptionsListResult] operation results. # - def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers = nil) - response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers).value! + def list_regional_by_resource_group_for_topic_type(resource_group_name, location, topic_type_name, custom_headers:nil) + response = list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1206,8 +1215,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers = nil) - list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers).value! + def list_regional_by_resource_group_for_topic_type_with_http_info(resource_group_name, location, topic_type_name, custom_headers:nil) + list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:custom_headers).value! end # @@ -1226,7 +1235,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers = nil) + def list_regional_by_resource_group_for_topic_type_async(resource_group_name, location, topic_type_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'location is nil' if location.nil? @@ -1235,6 +1244,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1294,8 +1304,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscriptionsListResult] operation results. # - def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_by_resource(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + response = list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1314,8 +1324,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! end # @@ -1333,7 +1343,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) + def list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil? @@ -1343,6 +1353,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1414,8 +1425,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscription] operation results. # - def begin_create_or_update(scope, event_subscription_name, event_subscription_info, custom_headers = nil) - response = begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers).value! + def begin_create_or_update(scope, event_subscription_name, event_subscription_info, custom_headers:nil) + response = begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1446,8 +1457,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers = nil) - begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers).value! + def begin_create_or_update_with_http_info(scope, event_subscription_name, event_subscription_info, custom_headers:nil) + begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:custom_headers).value! end # @@ -1477,7 +1488,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers = nil) + def begin_create_or_update_async(scope, event_subscription_name, event_subscription_info, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, 'event_subscription_info is nil' if event_subscription_info.nil? @@ -1485,7 +1496,6 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1559,8 +1569,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # will be added to the HTTP request. # # - def begin_delete(scope, event_subscription_name, custom_headers = nil) - response = begin_delete_async(scope, event_subscription_name, custom_headers).value! + def begin_delete(scope, event_subscription_name, custom_headers:nil) + response = begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value! nil end @@ -1585,8 +1595,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(scope, event_subscription_name, custom_headers = nil) - begin_delete_async(scope, event_subscription_name, custom_headers).value! + def begin_delete_with_http_info(scope, event_subscription_name, custom_headers:nil) + begin_delete_async(scope, event_subscription_name, custom_headers:custom_headers).value! end # @@ -1610,13 +1620,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(scope, event_subscription_name, custom_headers = nil) + def begin_delete_async(scope, event_subscription_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1676,8 +1687,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventSubscription] operation results. # - def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) - response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value! + def begin_update(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) + response = begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1705,8 +1716,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) - begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers).value! + def begin_update_with_http_info(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) + begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:custom_headers).value! end # @@ -1733,7 +1744,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers = nil) + def begin_update_async(scope, event_subscription_name, event_subscription_update_parameters, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'event_subscription_name is nil' if event_subscription_name.nil? fail ArgumentError, 'event_subscription_update_parameters is nil' if event_subscription_update_parameters.nil? @@ -1741,7 +1752,6 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/operations.rb b/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/operations.rb index f8a795f00..514bb8182 100644 --- a/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/operations.rb +++ b/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/operations.rb @@ -32,8 +32,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [OperationsListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -63,11 +63,12 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/topic_types.rb b/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/topic_types.rb index 75e2635e8..7cd9300e5 100644 --- a/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/topic_types.rb +++ b/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/topic_types.rb @@ -31,8 +31,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [TopicTypesListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,11 +60,12 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -119,8 +120,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [TopicTypeInfo] operation results. # - def get(topic_type_name, custom_headers = nil) - response = get_async(topic_type_name, custom_headers).value! + def get(topic_type_name, custom_headers:nil) + response = get_async(topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -135,8 +136,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(topic_type_name, custom_headers = nil) - get_async(topic_type_name, custom_headers).value! + def get_with_http_info(topic_type_name, custom_headers:nil) + get_async(topic_type_name, custom_headers:custom_headers).value! end # @@ -150,12 +151,13 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(topic_type_name, custom_headers = nil) + def get_async(topic_type_name, custom_headers:nil) fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -211,8 +213,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventTypesListResult] operation results. # - def list_event_types(topic_type_name, custom_headers = nil) - response = list_event_types_async(topic_type_name, custom_headers).value! + def list_event_types(topic_type_name, custom_headers:nil) + response = list_event_types_async(topic_type_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -227,8 +229,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_types_with_http_info(topic_type_name, custom_headers = nil) - list_event_types_async(topic_type_name, custom_headers).value! + def list_event_types_with_http_info(topic_type_name, custom_headers:nil) + list_event_types_async(topic_type_name, custom_headers:custom_headers).value! end # @@ -242,12 +244,13 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_types_async(topic_type_name, custom_headers = nil) + def list_event_types_async(topic_type_name, custom_headers:nil) fail ArgumentError, 'topic_type_name is nil' if topic_type_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/topics.rb b/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/topics.rb index e85a8e5db..581835b49 100644 --- a/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/topics.rb +++ b/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/topics.rb @@ -34,8 +34,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Topic] operation results. # - def get(resource_group_name, topic_name, custom_headers = nil) - response = get_async(resource_group_name, topic_name, custom_headers).value! + def get(resource_group_name, topic_name, custom_headers:nil) + response = get_async(resource_group_name, topic_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, topic_name, custom_headers = nil) - get_async(resource_group_name, topic_name, custom_headers).value! + def get_with_http_info(resource_group_name, topic_name, custom_headers:nil) + get_async(resource_group_name, topic_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, topic_name, custom_headers = nil) + def get_async(resource_group_name, topic_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -77,6 +77,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Topic] operation results. # - def create_or_update(resource_group_name, topic_name, topic_info, custom_headers = nil) - response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value! + def create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil) + response = create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,9 +152,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers = nil) + def create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers) + promise = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -180,8 +181,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, topic_name, custom_headers = nil) - response = delete_async(resource_group_name, topic_name, custom_headers).value! + def delete(resource_group_name, topic_name, custom_headers:nil) + response = delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value! nil end @@ -195,9 +196,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, topic_name, custom_headers = nil) + def delete_async(resource_group_name, topic_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, topic_name, custom_headers) + promise = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -226,8 +227,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Topic] operation results. # - def update(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil) - response = update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers).value! + def update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil) + response = update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -243,9 +244,9 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil) + def update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers) + promise = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -271,8 +272,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [TopicsListResult] operation results. # - def list_by_subscription(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -286,8 +287,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -300,12 +301,13 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -362,8 +364,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [TopicsListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -379,8 +381,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -395,13 +397,14 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -459,8 +462,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [TopicSharedAccessKeys] operation results. # - def list_shared_access_keys(resource_group_name, topic_name, custom_headers = nil) - response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers).value! + def list_shared_access_keys(resource_group_name, topic_name, custom_headers:nil) + response = list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -477,8 +480,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers = nil) - list_shared_access_keys_async(resource_group_name, topic_name, custom_headers).value! + def list_shared_access_keys_with_http_info(resource_group_name, topic_name, custom_headers:nil) + list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:custom_headers).value! end # @@ -494,7 +497,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers = nil) + def list_shared_access_keys_async(resource_group_name, topic_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -502,6 +505,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -561,8 +565,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [TopicSharedAccessKeys] operation results. # - def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil) - response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers).value! + def regenerate_key(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil) + response = regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -581,8 +585,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil) - regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil) + regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value! end # @@ -600,7 +604,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers = nil) + def regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -609,7 +613,6 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -677,8 +680,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [EventTypesListResult] operation results. # - def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_event_types(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + response = list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -697,8 +700,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) - list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers).value! + def list_event_types_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) + list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! end # @@ -716,7 +719,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers = nil) + def list_event_types_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'provider_namespace is nil' if provider_namespace.nil? @@ -726,6 +729,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -784,8 +788,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Topic] operation results. # - def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value! + def begin_create_or_update(resource_group_name, topic_name, topic_info, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -803,8 +807,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers = nil) - begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, topic_name, topic_info, custom_headers:nil) + begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:custom_headers).value! end # @@ -821,7 +825,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, topic_name, topic_info, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -830,7 +834,6 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -895,8 +898,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, topic_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, topic_name, custom_headers).value! + def begin_delete(resource_group_name, topic_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value! nil end @@ -913,8 +916,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers = nil) - begin_delete_async(resource_group_name, topic_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, topic_name, custom_headers:nil) + begin_delete_async(resource_group_name, topic_name, custom_headers:custom_headers).value! end # @@ -930,7 +933,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, topic_name, custom_headers = nil) + def begin_delete_async(resource_group_name, topic_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -938,6 +941,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -987,8 +991,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Topic] operation results. # - def begin_update(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers).value! + def begin_update(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1007,8 +1011,8 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil) - begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil) + begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:custom_headers).value! end # @@ -1026,7 +1030,7 @@ module Azure::EventGrid::Mgmt::V2018_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, topic_name, topic_update_parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'topic_name is nil' if topic_name.nil? @@ -1035,7 +1039,6 @@ module Azure::EventGrid::Mgmt::V2018_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_event_grid/lib/profiles/latest/modules/eventgrid_profile_module.rb b/management/azure_mgmt_event_grid/lib/profiles/latest/modules/eventgrid_profile_module.rb index b92ef9728..cdd8bbbe2 100644 --- a/management/azure_mgmt_event_grid/lib/profiles/latest/modules/eventgrid_profile_module.rb +++ b/management/azure_mgmt_event_grid/lib/profiles/latest/modules/eventgrid_profile_module.rb @@ -59,15 +59,15 @@ module Azure::EventGrid::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::EventGrid::Mgmt::V2018_01_01::EventGridManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::EventGrid::Mgmt::V2018_01_01::EventGridManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @event_subscriptions = client_0.event_subscriptions - @operations = client_0.operations - @topics = client_0.topics - @topic_types = client_0.topic_types + add_telemetry(@client_0) + @event_subscriptions = @client_0.event_subscriptions + @operations = @client_0.operations + @topics = @client_0.topics + @topic_types = @client_0.topic_types @model_classes = ModelClasses.new end @@ -77,6 +77,14 @@ module Azure::EventGrid::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb b/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb index b7e5661c2..2ccb29c7b 100644 --- a/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb +++ b/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb @@ -37,8 +37,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [ConsumerGroupResource] operation results. # - def create_or_update(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -58,8 +58,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -97,7 +97,6 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -162,8 +161,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value! + def delete(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value! nil end @@ -180,8 +179,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value! end # @@ -197,7 +196,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -215,6 +214,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -262,8 +262,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [ConsumerGroupResource] operation results. # - def get(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value! + def get(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -280,8 +280,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value! end # @@ -297,7 +297,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -315,6 +315,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -372,8 +373,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_all(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - first_page = list_all_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers) + def list_all(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + first_page = list_all_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -390,8 +391,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def list_all_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! end # @@ -407,7 +408,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) + def list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -422,6 +423,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -477,8 +479,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [ConsumerGroupListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -493,8 +495,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -508,11 +510,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -570,12 +573,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # @return [ConsumerGroupListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - response = list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def list_all_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + response = list_all_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb b/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb index 10f4ccdd1..ccc8f074e 100644 --- a/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +++ b/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb @@ -32,8 +32,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_all(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_all_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_all(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_all_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_all_async(resource_group_name, namespace_name, custom_headers).value! + def list_all_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_all_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(resource_group_name, namespace_name, custom_headers = nil) + def list_all_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -75,6 +75,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [EventHubResource] operation results. # - def create_or_update(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -152,8 +153,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -186,7 +187,6 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -250,8 +250,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def delete(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! nil end @@ -267,8 +267,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! end # @@ -283,7 +283,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -298,6 +298,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -344,8 +345,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [EventHubResource] operation results. # - def get(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def get(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -361,8 +362,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! end # @@ -377,7 +378,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -392,6 +393,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -448,8 +450,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -465,8 +467,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! end # @@ -481,7 +483,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -496,6 +498,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -555,8 +558,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -575,8 +578,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -594,7 +597,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -613,7 +616,6 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -679,8 +681,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -697,8 +699,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -714,7 +716,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -732,6 +734,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -788,8 +791,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -806,8 +809,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -823,7 +826,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -841,6 +844,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -888,8 +892,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [ResourceListKeys] operation results. # - def list_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -906,8 +910,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -923,7 +927,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -941,6 +945,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1000,8 +1005,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [ResourceListKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1020,8 +1025,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1039,7 +1044,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1058,7 +1063,6 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1121,8 +1125,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [EventHubListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1136,8 +1140,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1150,11 +1154,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1208,8 +1213,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1223,8 +1228,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1237,11 +1242,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1297,12 +1303,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # @return [EventHubListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_all_async(resource_group_name, namespace_name, custom_headers).value! + def list_all_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_all_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1321,12 +1327,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access # to pages of the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb b/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb index 520de8f51..8bf662e98 100644 --- a/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb +++ b/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb @@ -31,8 +31,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(parameters, custom_headers = nil) - response = check_name_availability_async(parameters, custom_headers).value! + def check_name_availability(parameters, custom_headers:nil) + response = check_name_availability_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(parameters, custom_headers = nil) - check_name_availability_async(parameters, custom_headers).value! + def check_name_availability_with_http_info(parameters, custom_headers:nil) + check_name_availability_async(parameters, custom_headers:custom_headers).value! end # @@ -60,14 +60,13 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(parameters, custom_headers = nil) + def check_name_availability_async(parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -129,8 +128,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_by_subscription(custom_headers = nil) - first_page = list_by_subscription_as_lazy(custom_headers) + def list_by_subscription(custom_headers:nil) + first_page = list_by_subscription_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -143,8 +142,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -156,12 +155,13 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -216,8 +216,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -231,8 +231,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -245,7 +245,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -254,6 +254,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -312,8 +313,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [NamespaceResource] operation results. # - def create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -329,9 +330,9 @@ module Azure::EventHub::Mgmt::V2015_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -357,8 +358,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, namespace_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, custom_headers).value! + def delete(resource_group_name, namespace_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -372,9 +373,9 @@ module Azure::EventHub::Mgmt::V2015_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, namespace_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, namespace_name, custom_headers) + promise = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -399,8 +400,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [NamespaceResource] operation results. # - def get(resource_group_name, namespace_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, custom_headers).value! + def get(resource_group_name, namespace_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -415,8 +416,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -430,7 +431,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -442,6 +443,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -510,8 +512,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [NamespaceResource] operation results. # - def update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -529,8 +531,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -547,7 +549,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -560,7 +562,6 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -634,8 +635,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -650,8 +651,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -665,7 +666,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -677,6 +678,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -735,8 +737,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -754,8 +756,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -772,7 +774,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -788,7 +790,6 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -852,8 +853,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -869,8 +870,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -885,7 +886,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -900,6 +901,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -946,8 +948,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -963,8 +965,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -979,7 +981,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -994,6 +996,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1050,8 +1053,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [ResourceListKeys] operation results. # - def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1067,8 +1070,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -1083,7 +1086,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1098,6 +1101,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1157,8 +1161,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [ResourceListKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1177,8 +1181,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1196,7 +1200,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1212,7 +1216,6 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1279,8 +1282,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [NamespaceResource] operation results. # - def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1298,8 +1301,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -1316,7 +1319,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1329,7 +1332,6 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1403,8 +1405,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, namespace_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete(resource_group_name, namespace_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -1420,8 +1422,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -1436,7 +1438,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil) + def begin_delete_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1448,6 +1450,7 @@ module Azure::EventHub::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1493,8 +1496,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [NamespaceListResult] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1509,8 +1512,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1524,11 +1527,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1582,8 +1586,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [NamespaceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1597,8 +1601,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1611,11 +1615,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1669,8 +1674,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1684,8 +1689,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1698,11 +1703,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1756,12 +1762,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # @return [NamespaceListResult] which provide lazy access to pages of the # response. # - def list_by_subscription_as_lazy(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription_as_lazy(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1778,12 +1784,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # @return [NamespaceListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1801,12 +1807,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access # to pages of the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/operations.rb b/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/operations.rb index 1992619df..4e22e6fda 100644 --- a/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/operations.rb +++ b/management/azure_mgmt_event_hub/lib/2015-08-01/generated/azure_mgmt_event_hub/operations.rb @@ -29,8 +29,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::EventHub::Mgmt::V2015_08_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb b/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb index ba2d16cf0..a393ad69f 100644 --- a/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb +++ b/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb @@ -37,8 +37,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [ConsumerGroup] operation results. # - def create_or_update(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -58,8 +58,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -96,7 +96,6 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -161,8 +160,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value! + def delete(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value! nil end @@ -179,8 +178,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value! end # @@ -196,7 +195,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -213,6 +212,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -260,8 +260,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [ConsumerGroup] operation results. # - def get(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value! + def get(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -278,8 +278,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:custom_headers).value! end # @@ -295,7 +295,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -312,6 +312,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -369,8 +370,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_event_hub(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - first_page = list_by_event_hub_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers) + def list_by_event_hub(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + first_page = list_by_event_hub_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -387,8 +388,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_event_hub_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def list_by_event_hub_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! end # @@ -404,7 +405,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) + def list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -418,6 +419,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -473,8 +475,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [ConsumerGroupListResult] operation results. # - def list_by_event_hub_next(next_page_link, custom_headers = nil) - response = list_by_event_hub_next_async(next_page_link, custom_headers).value! + def list_by_event_hub_next(next_page_link, custom_headers:nil) + response = list_by_event_hub_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -489,8 +491,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_event_hub_next_with_http_info(next_page_link, custom_headers = nil) - list_by_event_hub_next_async(next_page_link, custom_headers).value! + def list_by_event_hub_next_with_http_info(next_page_link, custom_headers:nil) + list_by_event_hub_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -504,11 +506,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_event_hub_next_async(next_page_link, custom_headers = nil) + def list_by_event_hub_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -566,12 +569,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # @return [ConsumerGroupListResult] which provide lazy access to pages of the # response. # - def list_by_event_hub_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - response = list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def list_by_event_hub_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + response = list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_event_hub_next_async(next_page_link, custom_headers) + list_by_event_hub_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb b/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb index 1ec21f497..cd7f87610 100644 --- a/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb +++ b/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb @@ -32,8 +32,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, namespace_name, custom_headers) + def list(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_async(resource_group_name, namespace_name, custom_headers).value! + def list_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, namespace_name, custom_headers = nil) + def list_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -75,6 +75,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [ArmDisasterRecovery] operation results. # - def create_or_update(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -152,8 +153,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -186,7 +187,6 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -250,8 +250,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def delete(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! nil end @@ -267,8 +267,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! end # @@ -283,7 +283,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -298,6 +298,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -345,8 +346,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [ArmDisasterRecovery] operation results. # - def get(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def get(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -363,8 +364,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - get_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + get_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! end # @@ -380,7 +381,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) + def get_async(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -395,6 +396,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -451,8 +453,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def break_pairing(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - response = break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def break_pairing(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + response = break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! nil end @@ -469,8 +471,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def break_pairing_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def break_pairing_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! end # @@ -486,7 +488,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) + def break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -501,6 +503,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -547,8 +550,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def fail_over(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - response = fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def fail_over(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + response = fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! nil end @@ -565,8 +568,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def fail_over_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def fail_over_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! end # @@ -582,7 +585,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) + def fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -597,6 +600,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -641,8 +645,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [ArmDisasterRecoveryListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -656,8 +660,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -670,11 +674,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -730,12 +735,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # @return [ArmDisasterRecoveryListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_async(resource_group_name, namespace_name, custom_headers).value! + def list_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb b/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb index 09b2c93e9..f02d32d63 100644 --- a/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb +++ b/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb @@ -32,8 +32,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil) + def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -75,6 +75,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Eventhub] operation results. # - def create_or_update(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -152,8 +153,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, event_hub_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -185,7 +186,6 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -249,8 +249,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def delete(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! nil end @@ -266,8 +266,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! end # @@ -282,7 +282,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -296,6 +296,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -342,8 +343,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Eventhub] operation results. # - def get(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def get(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -359,8 +360,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! end # @@ -375,7 +376,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -389,6 +390,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -445,8 +447,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -462,8 +464,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! end # @@ -478,7 +480,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -492,6 +494,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -550,8 +553,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [AuthorizationRule] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -569,8 +572,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -587,7 +590,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -604,7 +607,6 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -670,8 +672,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [AuthorizationRule] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -688,8 +690,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -705,7 +707,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -721,6 +723,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -777,8 +780,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -795,8 +798,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -812,7 +815,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -828,6 +831,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -875,8 +879,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def list_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -893,8 +897,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -910,7 +914,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -926,6 +930,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -985,8 +990,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1005,8 +1010,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1024,7 +1029,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, event_hub_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1041,7 +1046,6 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1104,8 +1108,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [EventHubListResult] operation results. # - def list_by_namespace_next(next_page_link, custom_headers = nil) - response = list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next(next_page_link, custom_headers:nil) + response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1119,8 +1123,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil) - list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1133,11 +1137,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_next_async(next_page_link, custom_headers = nil) + def list_by_namespace_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1191,8 +1196,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [AuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1206,8 +1211,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1220,11 +1225,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1280,12 +1286,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # @return [EventHubListResult] which provide lazy access to pages of the # response. # - def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_namespace_next_async(next_page_link, custom_headers) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1304,12 +1310,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # @return [AuthorizationRuleListResult] which provide lazy access to pages of # the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, event_hub_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, event_hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb b/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb index 0bfc752f9..d3b71fe44 100644 --- a/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb +++ b/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb @@ -31,8 +31,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(parameters, custom_headers = nil) - response = check_name_availability_async(parameters, custom_headers).value! + def check_name_availability(parameters, custom_headers:nil) + response = check_name_availability_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(parameters, custom_headers = nil) - check_name_availability_async(parameters, custom_headers).value! + def check_name_availability_with_http_info(parameters, custom_headers:nil) + check_name_availability_async(parameters, custom_headers:custom_headers).value! end # @@ -60,14 +60,13 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(parameters, custom_headers = nil) + def check_name_availability_async(parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -129,8 +128,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -143,8 +142,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -156,12 +155,13 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -216,8 +216,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -231,8 +231,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -245,7 +245,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -254,6 +254,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,8 +312,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [EHNamespace] operation results. # - def create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -327,9 +328,9 @@ module Azure::EventHub::Mgmt::V2017_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -355,8 +356,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, namespace_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, custom_headers).value! + def delete(resource_group_name, namespace_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -370,9 +371,9 @@ module Azure::EventHub::Mgmt::V2017_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, namespace_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, namespace_name, custom_headers) + promise = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -397,8 +398,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [EHNamespace] operation results. # - def get(resource_group_name, namespace_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, custom_headers).value! + def get(resource_group_name, namespace_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -413,8 +414,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -428,7 +429,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -440,6 +441,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -507,8 +509,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [EHNamespace] operation results. # - def update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -525,8 +527,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -542,7 +544,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -555,7 +557,6 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -629,8 +630,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -645,8 +646,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -660,7 +661,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -672,6 +673,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -729,8 +731,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [AuthorizationRule] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -747,8 +749,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -764,7 +766,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -779,7 +781,6 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -843,8 +844,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -860,8 +861,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -876,7 +877,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -890,6 +891,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -936,8 +938,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [AuthorizationRule] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -953,8 +955,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -969,7 +971,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -983,6 +985,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1039,8 +1042,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1056,8 +1059,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -1072,7 +1075,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1086,6 +1089,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1145,8 +1149,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1165,8 +1169,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1184,7 +1188,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1199,7 +1203,6 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1265,8 +1268,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [EHNamespace] operation results. # - def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1283,8 +1286,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -1300,7 +1303,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1313,7 +1316,6 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1387,8 +1389,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, namespace_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete(resource_group_name, namespace_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -1404,8 +1406,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -1420,7 +1422,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil) + def begin_delete_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1432,6 +1434,7 @@ module Azure::EventHub::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1477,8 +1480,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [EHNamespaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1493,8 +1496,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1508,11 +1511,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1566,8 +1570,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [EHNamespaceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1581,8 +1585,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1595,11 +1599,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1653,8 +1658,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [AuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1668,8 +1673,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1682,11 +1687,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1740,12 +1746,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # @return [EHNamespaceListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1762,12 +1768,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # @return [EHNamespaceListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1785,12 +1791,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # @return [AuthorizationRuleListResult] which provide lazy access to pages of # the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/operations.rb b/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/operations.rb index 9389196ee..2e36b9878 100644 --- a/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/operations.rb +++ b/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/operations.rb @@ -29,8 +29,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::EventHub::Mgmt::V2017_04_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_event_hub/lib/profiles/latest/modules/eventhub_profile_module.rb b/management/azure_mgmt_event_hub/lib/profiles/latest/modules/eventhub_profile_module.rb index cd7b79817..80b5cd35a 100644 --- a/management/azure_mgmt_event_hub/lib/profiles/latest/modules/eventhub_profile_module.rb +++ b/management/azure_mgmt_event_hub/lib/profiles/latest/modules/eventhub_profile_module.rb @@ -66,16 +66,16 @@ module Azure::EventHub::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::EventHub::Mgmt::V2017_04_01::EventHubManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::EventHub::Mgmt::V2017_04_01::EventHubManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @namespaces = client_0.namespaces - @disaster_recovery_configs = client_0.disaster_recovery_configs - @event_hubs = client_0.event_hubs - @consumer_groups = client_0.consumer_groups + add_telemetry(@client_0) + @operations = @client_0.operations + @namespaces = @client_0.namespaces + @disaster_recovery_configs = @client_0.disaster_recovery_configs + @event_hubs = @client_0.event_hubs + @consumer_groups = @client_0.consumer_groups @model_classes = ModelClasses.new end @@ -85,6 +85,14 @@ module Azure::EventHub::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_features/lib/2015-12-01/generated/azure_mgmt_features/features.rb b/management/azure_mgmt_features/lib/2015-12-01/generated/azure_mgmt_features/features.rb index 2d99314b7..1edc2054b 100644 --- a/management/azure_mgmt_features/lib/2015-12-01/generated/azure_mgmt_features/features.rb +++ b/management/azure_mgmt_features/lib/2015-12-01/generated/azure_mgmt_features/features.rb @@ -34,8 +34,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -61,12 +61,13 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -122,8 +123,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [Array] operation results. # - def list(resource_provider_namespace, custom_headers = nil) - first_page = list_as_lazy(resource_provider_namespace, custom_headers) + def list(resource_provider_namespace, custom_headers:nil) + first_page = list_as_lazy(resource_provider_namespace, custom_headers:custom_headers) first_page.get_all_items end @@ -138,8 +139,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_provider_namespace, custom_headers = nil) - list_async(resource_provider_namespace, custom_headers).value! + def list_with_http_info(resource_provider_namespace, custom_headers:nil) + list_async(resource_provider_namespace, custom_headers:custom_headers).value! end # @@ -153,13 +154,14 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_provider_namespace, custom_headers = nil) + def list_async(resource_provider_namespace, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -215,8 +217,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [FeatureResult] operation results. # - def get(resource_provider_namespace, feature_name, custom_headers = nil) - response = get_async(resource_provider_namespace, feature_name, custom_headers).value! + def get(resource_provider_namespace, feature_name, custom_headers:nil) + response = get_async(resource_provider_namespace, feature_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -231,8 +233,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_provider_namespace, feature_name, custom_headers = nil) - get_async(resource_provider_namespace, feature_name, custom_headers).value! + def get_with_http_info(resource_provider_namespace, feature_name, custom_headers:nil) + get_async(resource_provider_namespace, feature_name, custom_headers:custom_headers).value! end # @@ -246,7 +248,7 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_provider_namespace, feature_name, custom_headers = nil) + def get_async(resource_provider_namespace, feature_name, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, 'feature_name is nil' if feature_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -254,6 +256,7 @@ module Azure::Features::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -309,8 +312,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [FeatureResult] operation results. # - def register(resource_provider_namespace, feature_name, custom_headers = nil) - response = register_async(resource_provider_namespace, feature_name, custom_headers).value! + def register(resource_provider_namespace, feature_name, custom_headers:nil) + response = register_async(resource_provider_namespace, feature_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -325,8 +328,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def register_with_http_info(resource_provider_namespace, feature_name, custom_headers = nil) - register_async(resource_provider_namespace, feature_name, custom_headers).value! + def register_with_http_info(resource_provider_namespace, feature_name, custom_headers:nil) + register_async(resource_provider_namespace, feature_name, custom_headers:custom_headers).value! end # @@ -340,7 +343,7 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def register_async(resource_provider_namespace, feature_name, custom_headers = nil) + def register_async(resource_provider_namespace, feature_name, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, 'feature_name is nil' if feature_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -348,6 +351,7 @@ module Azure::Features::Mgmt::V2015_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -403,8 +407,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [FeatureOperationsListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -419,8 +423,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -434,11 +438,12 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -493,8 +498,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [FeatureOperationsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -509,8 +514,8 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -524,11 +529,12 @@ module Azure::Features::Mgmt::V2015_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -582,12 +588,12 @@ module Azure::Features::Mgmt::V2015_12_01 # @return [FeatureOperationsListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -605,12 +611,12 @@ module Azure::Features::Mgmt::V2015_12_01 # @return [FeatureOperationsListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_provider_namespace, custom_headers = nil) - response = list_async(resource_provider_namespace, custom_headers).value! + def list_as_lazy(resource_provider_namespace, custom_headers:nil) + response = list_async(resource_provider_namespace, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_features/lib/profiles/latest/modules/features_profile_module.rb b/management/azure_mgmt_features/lib/profiles/latest/modules/features_profile_module.rb index 8aec54b89..d24d1a173 100644 --- a/management/azure_mgmt_features/lib/profiles/latest/modules/features_profile_module.rb +++ b/management/azure_mgmt_features/lib/profiles/latest/modules/features_profile_module.rb @@ -33,12 +33,12 @@ module Azure::Features::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @features = client_0.features + add_telemetry(@client_0) + @features = @client_0.features @model_classes = ModelClasses.new end @@ -48,6 +48,14 @@ module Azure::Features::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_features/lib/profiles/v2017_03_09/modules/features_profile_module.rb b/management/azure_mgmt_features/lib/profiles/v2017_03_09/modules/features_profile_module.rb index 93a58c94e..9f415a223 100644 --- a/management/azure_mgmt_features/lib/profiles/v2017_03_09/modules/features_profile_module.rb +++ b/management/azure_mgmt_features/lib/profiles/v2017_03_09/modules/features_profile_module.rb @@ -33,12 +33,12 @@ module Azure::Features::Profiles::V2017_03_09 @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Features::Mgmt::V2015_12_01::FeatureClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @features = client_0.features + add_telemetry(@client_0) + @features = @client_0.features @model_classes = ModelClasses.new end @@ -48,6 +48,14 @@ module Azure::Features::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_iot_hub/lib/2016-02-03/generated/azure_mgmt_iot_hub/iot_hub_resource.rb b/management/azure_mgmt_iot_hub/lib/2016-02-03/generated/azure_mgmt_iot_hub/iot_hub_resource.rb index 670f7542b..5f0763349 100644 --- a/management/azure_mgmt_iot_hub/lib/2016-02-03/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +++ b/management/azure_mgmt_iot_hub/lib/2016-02-03/generated/azure_mgmt_iot_hub/iot_hub_resource.rb @@ -34,8 +34,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [IotHubDescription] operation results. # - def get(resource_group_name, resource_name, custom_headers = nil) - response = get_async(resource_group_name, resource_name, custom_headers).value! + def get(resource_group_name, resource_name, custom_headers:nil) + response = get_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_async(resource_group_name, resource_name, custom_headers).value! + def get_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, resource_name, custom_headers = nil) + def get_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -77,6 +77,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -138,8 +139,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [IotHubDescription] operation results. # - def create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers = nil) - response = create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value! + def create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers:nil) + response = create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -155,9 +156,9 @@ module Azure::IotHub::Mgmt::V2016_02_03 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers = nil) + def create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers) + promise = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -186,8 +187,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Object] operation results. # - def delete(resource_group_name, resource_name, custom_headers = nil) - response = delete_async(resource_group_name, resource_name, custom_headers).value! + def delete(resource_group_name, resource_name, custom_headers:nil) + response = delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -201,9 +202,9 @@ module Azure::IotHub::Mgmt::V2016_02_03 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, resource_name, custom_headers = nil) + def delete_async(resource_group_name, resource_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, resource_name, custom_headers) + promise = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -236,8 +237,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Array] operation results. # - def list_by_subscription(custom_headers = nil) - first_page = list_by_subscription_as_lazy(custom_headers) + def list_by_subscription(custom_headers:nil) + first_page = list_by_subscription_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -251,8 +252,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -265,12 +266,13 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -327,8 +329,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -344,8 +346,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -360,13 +362,14 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -424,8 +427,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [RegistryStatistics] operation results. # - def get_stats(resource_group_name, resource_name, custom_headers = nil) - response = get_stats_async(resource_group_name, resource_name, custom_headers).value! + def get_stats(resource_group_name, resource_name, custom_headers:nil) + response = get_stats_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -442,8 +445,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_stats_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_stats_async(resource_group_name, resource_name, custom_headers).value! + def get_stats_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_stats_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -459,7 +462,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_stats_async(resource_group_name, resource_name, custom_headers = nil) + def get_stats_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -467,6 +470,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -524,8 +528,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Array] operation results. # - def get_valid_skus(resource_group_name, resource_name, custom_headers = nil) - first_page = get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers) + def get_valid_skus(resource_group_name, resource_name, custom_headers:nil) + first_page = get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -542,8 +546,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_valid_skus_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_valid_skus_async(resource_group_name, resource_name, custom_headers).value! + def get_valid_skus_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_valid_skus_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -559,7 +563,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_valid_skus_async(resource_group_name, resource_name, custom_headers = nil) + def get_valid_skus_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -567,6 +571,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -628,8 +633,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Array] operation results. # - def list_event_hub_consumer_groups(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) - first_page = list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers) + def list_event_hub_consumer_groups(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) + first_page = list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers) first_page.get_all_items end @@ -650,8 +655,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_hub_consumer_groups_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) - list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers).value! + def list_event_hub_consumer_groups_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) + list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers).value! end # @@ -671,7 +676,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) + def list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -680,6 +685,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -742,8 +748,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [EventHubConsumerGroupInfo] operation results. # - def get_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - response = get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def get_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + response = get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -765,8 +771,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def get_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! end # @@ -787,7 +793,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) + def get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -797,6 +803,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -857,8 +864,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [EventHubConsumerGroupInfo] operation results. # - def create_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - response = create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def create_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + response = create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -878,8 +885,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def create_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! end # @@ -898,7 +905,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) + def create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -908,6 +915,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -967,8 +975,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # will be added to the HTTP request. # # - def delete_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - response = delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def delete_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + response = delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! nil end @@ -988,8 +996,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def delete_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! end # @@ -1008,7 +1016,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) + def delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1018,6 +1026,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1067,8 +1076,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Array] operation results. # - def list_jobs(resource_group_name, resource_name, custom_headers = nil) - first_page = list_jobs_as_lazy(resource_group_name, resource_name, custom_headers) + def list_jobs(resource_group_name, resource_name, custom_headers:nil) + first_page = list_jobs_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -1087,8 +1096,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_jobs_with_http_info(resource_group_name, resource_name, custom_headers = nil) - list_jobs_async(resource_group_name, resource_name, custom_headers).value! + def list_jobs_with_http_info(resource_group_name, resource_name, custom_headers:nil) + list_jobs_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -1106,7 +1115,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_jobs_async(resource_group_name, resource_name, custom_headers = nil) + def list_jobs_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1114,6 +1123,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1174,8 +1184,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [JobResponse] operation results. # - def get_job(resource_group_name, resource_name, job_id, custom_headers = nil) - response = get_job_async(resource_group_name, resource_name, job_id, custom_headers).value! + def get_job(resource_group_name, resource_name, job_id, custom_headers:nil) + response = get_job_async(resource_group_name, resource_name, job_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1195,8 +1205,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_job_with_http_info(resource_group_name, resource_name, job_id, custom_headers = nil) - get_job_async(resource_group_name, resource_name, job_id, custom_headers).value! + def get_job_with_http_info(resource_group_name, resource_name, job_id, custom_headers:nil) + get_job_async(resource_group_name, resource_name, job_id, custom_headers:custom_headers).value! end # @@ -1215,7 +1225,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_job_async(resource_group_name, resource_name, job_id, custom_headers = nil) + def get_job_async(resource_group_name, resource_name, job_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1224,6 +1234,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1281,8 +1292,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Array] operation results. # - def get_quota_metrics(resource_group_name, resource_name, custom_headers = nil) - first_page = get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers) + def get_quota_metrics(resource_group_name, resource_name, custom_headers:nil) + first_page = get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -1299,8 +1310,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_quota_metrics_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_quota_metrics_async(resource_group_name, resource_name, custom_headers).value! + def get_quota_metrics_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_quota_metrics_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -1316,7 +1327,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_quota_metrics_async(resource_group_name, resource_name, custom_headers = nil) + def get_quota_metrics_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1324,6 +1335,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1380,8 +1392,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [IotHubNameAvailabilityInfo] operation results. # - def check_name_availability(operation_inputs, custom_headers = nil) - response = check_name_availability_async(operation_inputs, custom_headers).value! + def check_name_availability(operation_inputs, custom_headers:nil) + response = check_name_availability_async(operation_inputs, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1397,8 +1409,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(operation_inputs, custom_headers = nil) - check_name_availability_async(operation_inputs, custom_headers).value! + def check_name_availability_with_http_info(operation_inputs, custom_headers:nil) + check_name_availability_async(operation_inputs, custom_headers:custom_headers).value! end # @@ -1413,14 +1425,13 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(operation_inputs, custom_headers = nil) + def check_name_availability_async(operation_inputs, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'operation_inputs is nil' if operation_inputs.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1488,8 +1499,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Array] operation results. # - def list_keys(resource_group_name, resource_name, custom_headers = nil) - first_page = list_keys_as_lazy(resource_group_name, resource_name, custom_headers) + def list_keys(resource_group_name, resource_name, custom_headers:nil) + first_page = list_keys_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -1508,8 +1519,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, resource_name, custom_headers = nil) - list_keys_async(resource_group_name, resource_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, resource_name, custom_headers:nil) + list_keys_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -1527,7 +1538,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, resource_name, custom_headers = nil) + def list_keys_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1535,6 +1546,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1595,8 +1607,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [SharedAccessSignatureAuthorizationRule] operation results. # - def get_keys_for_key_name(resource_group_name, resource_name, key_name, custom_headers = nil) - response = get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers).value! + def get_keys_for_key_name(resource_group_name, resource_name, key_name, custom_headers:nil) + response = get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1616,8 +1628,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key_name, custom_headers = nil) - get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers).value! + def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key_name, custom_headers:nil) + get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:custom_headers).value! end # @@ -1636,7 +1648,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers = nil) + def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1645,6 +1657,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1708,8 +1721,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [JobResponse] operation results. # - def export_devices(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil) - response = export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers).value! + def export_devices(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil) + response = export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1732,8 +1745,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_devices_with_http_info(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil) - export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers).value! + def export_devices_with_http_info(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil) + export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:custom_headers).value! end # @@ -1755,7 +1768,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil) + def export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1764,7 +1777,6 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1836,8 +1848,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [JobResponse] operation results. # - def import_devices(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil) - response = import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers).value! + def import_devices(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil) + response = import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1860,8 +1872,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def import_devices_with_http_info(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil) - import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers).value! + def import_devices_with_http_info(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil) + import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:custom_headers).value! end # @@ -1883,7 +1895,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil) + def import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1892,7 +1904,6 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1962,8 +1973,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [IotHubDescription] operation results. # - def begin_create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value! + def begin_create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1984,8 +1995,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, resource_name, iot_hub_description, custom_headers = nil) - begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, resource_name, iot_hub_description, custom_headers:nil) + begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:custom_headers).value! end # @@ -2005,7 +2016,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -2014,7 +2025,6 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2090,8 +2100,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Object] operation results. # - def begin_delete(resource_group_name, resource_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, resource_name, custom_headers).value! + def begin_delete(resource_group_name, resource_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2108,8 +2118,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, resource_name, custom_headers = nil) - begin_delete_async(resource_group_name, resource_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, resource_name, custom_headers:nil) + begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -2125,7 +2135,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, resource_name, custom_headers = nil) + def begin_delete_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -2133,6 +2143,7 @@ module Azure::IotHub::Mgmt::V2016_02_03 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2209,8 +2220,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [IotHubDescriptionListResult] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2226,8 +2237,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2242,11 +2253,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2302,8 +2314,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [IotHubDescriptionListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2319,8 +2331,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2335,11 +2347,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2395,8 +2408,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [IotHubSkuDescriptionListResult] operation results. # - def get_valid_skus_next(next_page_link, custom_headers = nil) - response = get_valid_skus_next_async(next_page_link, custom_headers).value! + def get_valid_skus_next(next_page_link, custom_headers:nil) + response = get_valid_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2412,8 +2425,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_valid_skus_next_with_http_info(next_page_link, custom_headers = nil) - get_valid_skus_next_async(next_page_link, custom_headers).value! + def get_valid_skus_next_with_http_info(next_page_link, custom_headers:nil) + get_valid_skus_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2428,11 +2441,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_valid_skus_next_async(next_page_link, custom_headers = nil) + def get_valid_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2490,8 +2504,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [EventHubConsumerGroupsListResult] operation results. # - def list_event_hub_consumer_groups_next(next_page_link, custom_headers = nil) - response = list_event_hub_consumer_groups_next_async(next_page_link, custom_headers).value! + def list_event_hub_consumer_groups_next(next_page_link, custom_headers:nil) + response = list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2509,8 +2523,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_hub_consumer_groups_next_with_http_info(next_page_link, custom_headers = nil) - list_event_hub_consumer_groups_next_async(next_page_link, custom_headers).value! + def list_event_hub_consumer_groups_next_with_http_info(next_page_link, custom_headers:nil) + list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2527,11 +2541,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_hub_consumer_groups_next_async(next_page_link, custom_headers = nil) + def list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2589,8 +2604,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [JobResponseListResult] operation results. # - def list_jobs_next(next_page_link, custom_headers = nil) - response = list_jobs_next_async(next_page_link, custom_headers).value! + def list_jobs_next(next_page_link, custom_headers:nil) + response = list_jobs_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2608,8 +2623,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_jobs_next_with_http_info(next_page_link, custom_headers = nil) - list_jobs_next_async(next_page_link, custom_headers).value! + def list_jobs_next_with_http_info(next_page_link, custom_headers:nil) + list_jobs_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2626,11 +2641,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_jobs_next_async(next_page_link, custom_headers = nil) + def list_jobs_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2686,8 +2702,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [IotHubQuotaMetricInfoListResult] operation results. # - def get_quota_metrics_next(next_page_link, custom_headers = nil) - response = get_quota_metrics_next_async(next_page_link, custom_headers).value! + def get_quota_metrics_next(next_page_link, custom_headers:nil) + response = get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2703,8 +2719,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_quota_metrics_next_with_http_info(next_page_link, custom_headers = nil) - get_quota_metrics_next_async(next_page_link, custom_headers).value! + def get_quota_metrics_next_with_http_info(next_page_link, custom_headers:nil) + get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2719,11 +2735,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_quota_metrics_next_async(next_page_link, custom_headers = nil) + def get_quota_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2781,8 +2798,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [SharedAccessSignatureAuthorizationRuleListResult] operation results. # - def list_keys_next(next_page_link, custom_headers = nil) - response = list_keys_next_async(next_page_link, custom_headers).value! + def list_keys_next(next_page_link, custom_headers:nil) + response = list_keys_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2800,8 +2817,8 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_next_with_http_info(next_page_link, custom_headers = nil) - list_keys_next_async(next_page_link, custom_headers).value! + def list_keys_next_with_http_info(next_page_link, custom_headers:nil) + list_keys_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2818,11 +2835,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_next_async(next_page_link, custom_headers = nil) + def list_keys_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2877,12 +2895,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # @return [IotHubDescriptionListResult] which provide lazy access to pages of # the response. # - def list_by_subscription_as_lazy(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription_as_lazy(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2901,12 +2919,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # @return [IotHubDescriptionListResult] which provide lazy access to pages of # the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2926,12 +2944,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # @return [IotHubSkuDescriptionListResult] which provide lazy access to pages # of the response. # - def get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = get_valid_skus_async(resource_group_name, resource_name, custom_headers).value! + def get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = get_valid_skus_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - get_valid_skus_next_async(next_page_link, custom_headers) + get_valid_skus_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2955,12 +2973,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # @return [EventHubConsumerGroupsListResult] which provide lazy access to pages # of the response. # - def list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) - response = list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers).value! + def list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) + response = list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_event_hub_consumer_groups_next_async(next_page_link, custom_headers) + list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2982,12 +3000,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # @return [JobResponseListResult] which provide lazy access to pages of the # response. # - def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = list_jobs_async(resource_group_name, resource_name, custom_headers).value! + def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = list_jobs_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_jobs_next_async(next_page_link, custom_headers) + list_jobs_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3007,12 +3025,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # @return [IotHubQuotaMetricInfoListResult] which provide lazy access to pages # of the response. # - def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = get_quota_metrics_async(resource_group_name, resource_name, custom_headers).value! + def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = get_quota_metrics_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - get_quota_metrics_next_async(next_page_link, custom_headers) + get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3034,12 +3052,12 @@ module Azure::IotHub::Mgmt::V2016_02_03 # @return [SharedAccessSignatureAuthorizationRuleListResult] which provide lazy # access to pages of the response. # - def list_keys_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = list_keys_async(resource_group_name, resource_name, custom_headers).value! + def list_keys_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = list_keys_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_keys_next_async(next_page_link, custom_headers) + list_keys_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_iot_hub/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_resource.rb b/management/azure_mgmt_iot_hub/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_resource.rb index 2feabb8ef..f6c1b3030 100644 --- a/management/azure_mgmt_iot_hub/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +++ b/management/azure_mgmt_iot_hub/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_resource.rb @@ -34,8 +34,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [IotHubDescription] operation results. # - def get(resource_group_name, resource_name, custom_headers = nil) - response = get_async(resource_group_name, resource_name, custom_headers).value! + def get(resource_group_name, resource_name, custom_headers:nil) + response = get_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_async(resource_group_name, resource_name, custom_headers).value! + def get_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, resource_name, custom_headers = nil) + def get_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -77,6 +77,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -138,8 +139,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [IotHubDescription] operation results. # - def create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers = nil) - response = create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value! + def create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers:nil) + response = create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -155,9 +156,9 @@ module Azure::IotHub::Mgmt::V2017_01_19 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers = nil) + def create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers) + promise = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -186,8 +187,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Object] operation results. # - def delete(resource_group_name, resource_name, custom_headers = nil) - response = delete_async(resource_group_name, resource_name, custom_headers).value! + def delete(resource_group_name, resource_name, custom_headers:nil) + response = delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -201,9 +202,9 @@ module Azure::IotHub::Mgmt::V2017_01_19 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, resource_name, custom_headers = nil) + def delete_async(resource_group_name, resource_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, resource_name, custom_headers) + promise = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -236,8 +237,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Array] operation results. # - def list_by_subscription(custom_headers = nil) - first_page = list_by_subscription_as_lazy(custom_headers) + def list_by_subscription(custom_headers:nil) + first_page = list_by_subscription_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -251,8 +252,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -265,12 +266,13 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -327,8 +329,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -344,8 +346,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -360,13 +362,14 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -424,8 +427,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [RegistryStatistics] operation results. # - def get_stats(resource_group_name, resource_name, custom_headers = nil) - response = get_stats_async(resource_group_name, resource_name, custom_headers).value! + def get_stats(resource_group_name, resource_name, custom_headers:nil) + response = get_stats_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -442,8 +445,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_stats_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_stats_async(resource_group_name, resource_name, custom_headers).value! + def get_stats_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_stats_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -459,7 +462,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_stats_async(resource_group_name, resource_name, custom_headers = nil) + def get_stats_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -467,6 +470,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -524,8 +528,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Array] operation results. # - def get_valid_skus(resource_group_name, resource_name, custom_headers = nil) - first_page = get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers) + def get_valid_skus(resource_group_name, resource_name, custom_headers:nil) + first_page = get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -542,8 +546,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_valid_skus_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_valid_skus_async(resource_group_name, resource_name, custom_headers).value! + def get_valid_skus_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_valid_skus_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -559,7 +563,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_valid_skus_async(resource_group_name, resource_name, custom_headers = nil) + def get_valid_skus_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -567,6 +571,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -628,8 +633,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Array] operation results. # - def list_event_hub_consumer_groups(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) - first_page = list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers) + def list_event_hub_consumer_groups(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) + first_page = list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers) first_page.get_all_items end @@ -650,8 +655,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_hub_consumer_groups_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) - list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers).value! + def list_event_hub_consumer_groups_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) + list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers).value! end # @@ -671,7 +676,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) + def list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -680,6 +685,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -742,8 +748,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [EventHubConsumerGroupInfo] operation results. # - def get_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - response = get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def get_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + response = get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -765,8 +771,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def get_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! end # @@ -787,7 +793,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) + def get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -797,6 +803,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -857,8 +864,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [EventHubConsumerGroupInfo] operation results. # - def create_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - response = create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def create_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + response = create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -878,8 +885,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def create_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! end # @@ -898,7 +905,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) + def create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -908,6 +915,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -967,8 +975,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # will be added to the HTTP request. # # - def delete_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - response = delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def delete_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + response = delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! nil end @@ -988,8 +996,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def delete_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! end # @@ -1008,7 +1016,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) + def delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1018,6 +1026,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1067,8 +1076,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Array] operation results. # - def list_jobs(resource_group_name, resource_name, custom_headers = nil) - first_page = list_jobs_as_lazy(resource_group_name, resource_name, custom_headers) + def list_jobs(resource_group_name, resource_name, custom_headers:nil) + first_page = list_jobs_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -1087,8 +1096,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_jobs_with_http_info(resource_group_name, resource_name, custom_headers = nil) - list_jobs_async(resource_group_name, resource_name, custom_headers).value! + def list_jobs_with_http_info(resource_group_name, resource_name, custom_headers:nil) + list_jobs_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -1106,7 +1115,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_jobs_async(resource_group_name, resource_name, custom_headers = nil) + def list_jobs_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1114,6 +1123,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1174,8 +1184,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [JobResponse] operation results. # - def get_job(resource_group_name, resource_name, job_id, custom_headers = nil) - response = get_job_async(resource_group_name, resource_name, job_id, custom_headers).value! + def get_job(resource_group_name, resource_name, job_id, custom_headers:nil) + response = get_job_async(resource_group_name, resource_name, job_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1195,8 +1205,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_job_with_http_info(resource_group_name, resource_name, job_id, custom_headers = nil) - get_job_async(resource_group_name, resource_name, job_id, custom_headers).value! + def get_job_with_http_info(resource_group_name, resource_name, job_id, custom_headers:nil) + get_job_async(resource_group_name, resource_name, job_id, custom_headers:custom_headers).value! end # @@ -1215,7 +1225,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_job_async(resource_group_name, resource_name, job_id, custom_headers = nil) + def get_job_async(resource_group_name, resource_name, job_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1224,6 +1234,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1281,8 +1292,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Array] operation results. # - def get_quota_metrics(resource_group_name, resource_name, custom_headers = nil) - first_page = get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers) + def get_quota_metrics(resource_group_name, resource_name, custom_headers:nil) + first_page = get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -1299,8 +1310,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_quota_metrics_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_quota_metrics_async(resource_group_name, resource_name, custom_headers).value! + def get_quota_metrics_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_quota_metrics_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -1316,7 +1327,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_quota_metrics_async(resource_group_name, resource_name, custom_headers = nil) + def get_quota_metrics_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1324,6 +1335,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1380,8 +1392,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [IotHubNameAvailabilityInfo] operation results. # - def check_name_availability(operation_inputs, custom_headers = nil) - response = check_name_availability_async(operation_inputs, custom_headers).value! + def check_name_availability(operation_inputs, custom_headers:nil) + response = check_name_availability_async(operation_inputs, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1397,8 +1409,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(operation_inputs, custom_headers = nil) - check_name_availability_async(operation_inputs, custom_headers).value! + def check_name_availability_with_http_info(operation_inputs, custom_headers:nil) + check_name_availability_async(operation_inputs, custom_headers:custom_headers).value! end # @@ -1413,14 +1425,13 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(operation_inputs, custom_headers = nil) + def check_name_availability_async(operation_inputs, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'operation_inputs is nil' if operation_inputs.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1488,8 +1499,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Array] operation results. # - def list_keys(resource_group_name, resource_name, custom_headers = nil) - first_page = list_keys_as_lazy(resource_group_name, resource_name, custom_headers) + def list_keys(resource_group_name, resource_name, custom_headers:nil) + first_page = list_keys_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -1508,8 +1519,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, resource_name, custom_headers = nil) - list_keys_async(resource_group_name, resource_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, resource_name, custom_headers:nil) + list_keys_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -1527,7 +1538,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, resource_name, custom_headers = nil) + def list_keys_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1535,6 +1546,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1595,8 +1607,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [SharedAccessSignatureAuthorizationRule] operation results. # - def get_keys_for_key_name(resource_group_name, resource_name, key_name, custom_headers = nil) - response = get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers).value! + def get_keys_for_key_name(resource_group_name, resource_name, key_name, custom_headers:nil) + response = get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1616,8 +1628,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key_name, custom_headers = nil) - get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers).value! + def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key_name, custom_headers:nil) + get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:custom_headers).value! end # @@ -1636,7 +1648,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers = nil) + def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1645,6 +1657,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1708,8 +1721,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [JobResponse] operation results. # - def export_devices(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil) - response = export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers).value! + def export_devices(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil) + response = export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1732,8 +1745,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_devices_with_http_info(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil) - export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers).value! + def export_devices_with_http_info(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil) + export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:custom_headers).value! end # @@ -1755,7 +1768,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil) + def export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1764,7 +1777,6 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1836,8 +1848,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [JobResponse] operation results. # - def import_devices(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil) - response = import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers).value! + def import_devices(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil) + response = import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1860,8 +1872,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def import_devices_with_http_info(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil) - import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers).value! + def import_devices_with_http_info(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil) + import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:custom_headers).value! end # @@ -1883,7 +1895,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil) + def import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1892,7 +1904,6 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1962,8 +1973,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [IotHubDescription] operation results. # - def begin_create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value! + def begin_create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1984,8 +1995,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, resource_name, iot_hub_description, custom_headers = nil) - begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, resource_name, iot_hub_description, custom_headers:nil) + begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:custom_headers).value! end # @@ -2005,7 +2016,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -2014,7 +2025,6 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2090,8 +2100,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Object] operation results. # - def begin_delete(resource_group_name, resource_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, resource_name, custom_headers).value! + def begin_delete(resource_group_name, resource_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2108,8 +2118,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, resource_name, custom_headers = nil) - begin_delete_async(resource_group_name, resource_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, resource_name, custom_headers:nil) + begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -2125,7 +2135,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, resource_name, custom_headers = nil) + def begin_delete_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -2133,6 +2143,7 @@ module Azure::IotHub::Mgmt::V2017_01_19 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2209,8 +2220,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [IotHubDescriptionListResult] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2226,8 +2237,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2242,11 +2253,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2302,8 +2314,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [IotHubDescriptionListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2319,8 +2331,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2335,11 +2347,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2395,8 +2408,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [IotHubSkuDescriptionListResult] operation results. # - def get_valid_skus_next(next_page_link, custom_headers = nil) - response = get_valid_skus_next_async(next_page_link, custom_headers).value! + def get_valid_skus_next(next_page_link, custom_headers:nil) + response = get_valid_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2412,8 +2425,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_valid_skus_next_with_http_info(next_page_link, custom_headers = nil) - get_valid_skus_next_async(next_page_link, custom_headers).value! + def get_valid_skus_next_with_http_info(next_page_link, custom_headers:nil) + get_valid_skus_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2428,11 +2441,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_valid_skus_next_async(next_page_link, custom_headers = nil) + def get_valid_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2490,8 +2504,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [EventHubConsumerGroupsListResult] operation results. # - def list_event_hub_consumer_groups_next(next_page_link, custom_headers = nil) - response = list_event_hub_consumer_groups_next_async(next_page_link, custom_headers).value! + def list_event_hub_consumer_groups_next(next_page_link, custom_headers:nil) + response = list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2509,8 +2523,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_hub_consumer_groups_next_with_http_info(next_page_link, custom_headers = nil) - list_event_hub_consumer_groups_next_async(next_page_link, custom_headers).value! + def list_event_hub_consumer_groups_next_with_http_info(next_page_link, custom_headers:nil) + list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2527,11 +2541,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_hub_consumer_groups_next_async(next_page_link, custom_headers = nil) + def list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2589,8 +2604,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [JobResponseListResult] operation results. # - def list_jobs_next(next_page_link, custom_headers = nil) - response = list_jobs_next_async(next_page_link, custom_headers).value! + def list_jobs_next(next_page_link, custom_headers:nil) + response = list_jobs_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2608,8 +2623,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_jobs_next_with_http_info(next_page_link, custom_headers = nil) - list_jobs_next_async(next_page_link, custom_headers).value! + def list_jobs_next_with_http_info(next_page_link, custom_headers:nil) + list_jobs_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2626,11 +2641,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_jobs_next_async(next_page_link, custom_headers = nil) + def list_jobs_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2686,8 +2702,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [IotHubQuotaMetricInfoListResult] operation results. # - def get_quota_metrics_next(next_page_link, custom_headers = nil) - response = get_quota_metrics_next_async(next_page_link, custom_headers).value! + def get_quota_metrics_next(next_page_link, custom_headers:nil) + response = get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2703,8 +2719,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_quota_metrics_next_with_http_info(next_page_link, custom_headers = nil) - get_quota_metrics_next_async(next_page_link, custom_headers).value! + def get_quota_metrics_next_with_http_info(next_page_link, custom_headers:nil) + get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2719,11 +2735,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_quota_metrics_next_async(next_page_link, custom_headers = nil) + def get_quota_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2781,8 +2798,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [SharedAccessSignatureAuthorizationRuleListResult] operation results. # - def list_keys_next(next_page_link, custom_headers = nil) - response = list_keys_next_async(next_page_link, custom_headers).value! + def list_keys_next(next_page_link, custom_headers:nil) + response = list_keys_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2800,8 +2817,8 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_next_with_http_info(next_page_link, custom_headers = nil) - list_keys_next_async(next_page_link, custom_headers).value! + def list_keys_next_with_http_info(next_page_link, custom_headers:nil) + list_keys_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2818,11 +2835,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_next_async(next_page_link, custom_headers = nil) + def list_keys_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2877,12 +2895,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # @return [IotHubDescriptionListResult] which provide lazy access to pages of # the response. # - def list_by_subscription_as_lazy(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription_as_lazy(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2901,12 +2919,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # @return [IotHubDescriptionListResult] which provide lazy access to pages of # the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2926,12 +2944,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # @return [IotHubSkuDescriptionListResult] which provide lazy access to pages # of the response. # - def get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = get_valid_skus_async(resource_group_name, resource_name, custom_headers).value! + def get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = get_valid_skus_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - get_valid_skus_next_async(next_page_link, custom_headers) + get_valid_skus_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2955,12 +2973,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # @return [EventHubConsumerGroupsListResult] which provide lazy access to pages # of the response. # - def list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) - response = list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers).value! + def list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) + response = list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_event_hub_consumer_groups_next_async(next_page_link, custom_headers) + list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2982,12 +3000,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # @return [JobResponseListResult] which provide lazy access to pages of the # response. # - def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = list_jobs_async(resource_group_name, resource_name, custom_headers).value! + def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = list_jobs_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_jobs_next_async(next_page_link, custom_headers) + list_jobs_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3007,12 +3025,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # @return [IotHubQuotaMetricInfoListResult] which provide lazy access to pages # of the response. # - def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = get_quota_metrics_async(resource_group_name, resource_name, custom_headers).value! + def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = get_quota_metrics_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - get_quota_metrics_next_async(next_page_link, custom_headers) + get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3034,12 +3052,12 @@ module Azure::IotHub::Mgmt::V2017_01_19 # @return [SharedAccessSignatureAuthorizationRuleListResult] which provide lazy # access to pages of the response. # - def list_keys_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = list_keys_async(resource_group_name, resource_name, custom_headers).value! + def list_keys_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = list_keys_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_keys_next_async(next_page_link, custom_headers) + list_keys_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/certificates.rb b/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/certificates.rb index 870edc208..e8b2ff3df 100644 --- a/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/certificates.rb +++ b/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/certificates.rb @@ -34,8 +34,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [CertificateListDescription] operation results. # - def list_by_iot_hub(resource_group_name, resource_name, custom_headers = nil) - response = list_by_iot_hub_async(resource_group_name, resource_name, custom_headers).value! + def list_by_iot_hub(resource_group_name, resource_name, custom_headers:nil) + response = list_by_iot_hub_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_iot_hub_with_http_info(resource_group_name, resource_name, custom_headers = nil) - list_by_iot_hub_async(resource_group_name, resource_name, custom_headers).value! + def list_by_iot_hub_with_http_info(resource_group_name, resource_name, custom_headers:nil) + list_by_iot_hub_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_iot_hub_async(resource_group_name, resource_name, custom_headers = nil) + def list_by_iot_hub_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -77,6 +77,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [CertificateDescription] operation results. # - def get(resource_group_name, resource_name, certificate_name, custom_headers = nil) - response = get_async(resource_group_name, resource_name, certificate_name, custom_headers).value! + def get(resource_group_name, resource_name, certificate_name, custom_headers:nil) + response = get_async(resource_group_name, resource_name, certificate_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -154,8 +155,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, resource_name, certificate_name, custom_headers = nil) - get_async(resource_group_name, resource_name, certificate_name, custom_headers).value! + def get_with_http_info(resource_group_name, resource_name, certificate_name, custom_headers:nil) + get_async(resource_group_name, resource_name, certificate_name, custom_headers:custom_headers).value! end # @@ -172,7 +173,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, resource_name, certificate_name, custom_headers = nil) + def get_async(resource_group_name, resource_name, certificate_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -182,6 +183,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -244,8 +246,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [CertificateDescription] operation results. # - def create_or_update(resource_group_name, resource_name, certificate_name, certificate_description, if_match = nil, custom_headers = nil) - response = create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match, custom_headers).value! + def create_or_update(resource_group_name, resource_name, certificate_name, certificate_description, if_match:nil, custom_headers:nil) + response = create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match:if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -267,8 +269,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, resource_name, certificate_name, certificate_description, if_match = nil, custom_headers = nil) - create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, resource_name, certificate_name, certificate_description, if_match:nil, custom_headers:nil) + create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match:if_match, custom_headers:custom_headers).value! end # @@ -289,7 +291,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match = nil, custom_headers = nil) + def create_or_update_async(resource_group_name, resource_name, certificate_name, certificate_description, if_match:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -300,7 +302,6 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -378,8 +379,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # will be added to the HTTP request. # # - def delete(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil) - response = delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers).value! + def delete(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil) + response = delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:custom_headers).value! nil end @@ -398,8 +399,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil) - delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers).value! + def delete_with_http_info(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil) + delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:custom_headers).value! end # @@ -417,7 +418,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil) + def delete_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -428,6 +429,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -479,8 +481,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [CertificateWithNonceDescription] operation results. # - def generate_verification_code(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil) - response = generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers).value! + def generate_verification_code(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil) + response = generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -500,8 +502,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_verification_code_with_http_info(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil) - generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers).value! + def generate_verification_code_with_http_info(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil) + generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:custom_headers).value! end # @@ -520,7 +522,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers = nil) + def generate_verification_code_async(resource_group_name, resource_name, certificate_name, if_match, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -531,6 +533,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -594,8 +597,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [CertificateDescription] operation results. # - def verify(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers = nil) - response = verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers).value! + def verify(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers:nil) + response = verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -617,8 +620,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def verify_with_http_info(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers = nil) - verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers).value! + def verify_with_http_info(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers:nil) + verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers:custom_headers).value! end # @@ -639,7 +642,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers = nil) + def verify_async(resource_group_name, resource_name, certificate_name, certificate_verification_body, if_match, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -651,7 +654,6 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/iot_hub_resource.rb b/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/iot_hub_resource.rb index fe41cd698..fe1ae8c85 100644 --- a/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/iot_hub_resource.rb +++ b/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/iot_hub_resource.rb @@ -34,8 +34,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [IotHubDescription] operation results. # - def get(resource_group_name, resource_name, custom_headers = nil) - response = get_async(resource_group_name, resource_name, custom_headers).value! + def get(resource_group_name, resource_name, custom_headers:nil) + response = get_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_async(resource_group_name, resource_name, custom_headers).value! + def get_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, resource_name, custom_headers = nil) + def get_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -77,6 +77,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [IotHubDescription] operation results. # - def create_or_update(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil) - response = create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers).value! + def create_or_update(resource_group_name, resource_name, iot_hub_description, if_match:nil, custom_headers:nil) + response = create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -159,9 +160,9 @@ module Azure::IotHub::Mgmt::V2017_07_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil) + def create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:nil, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers) + promise = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:if_match, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -190,8 +191,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Object] operation results. # - def delete(resource_group_name, resource_name, custom_headers = nil) - response = delete_async(resource_group_name, resource_name, custom_headers).value! + def delete(resource_group_name, resource_name, custom_headers:nil) + response = delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -205,9 +206,9 @@ module Azure::IotHub::Mgmt::V2017_07_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, resource_name, custom_headers = nil) + def delete_async(resource_group_name, resource_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, resource_name, custom_headers) + promise = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -240,8 +241,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Array] operation results. # - def list_by_subscription(custom_headers = nil) - first_page = list_by_subscription_as_lazy(custom_headers) + def list_by_subscription(custom_headers:nil) + first_page = list_by_subscription_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -255,8 +256,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -269,12 +270,13 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -331,8 +333,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -348,8 +350,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -364,13 +366,14 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -428,8 +431,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [RegistryStatistics] operation results. # - def get_stats(resource_group_name, resource_name, custom_headers = nil) - response = get_stats_async(resource_group_name, resource_name, custom_headers).value! + def get_stats(resource_group_name, resource_name, custom_headers:nil) + response = get_stats_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -446,8 +449,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_stats_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_stats_async(resource_group_name, resource_name, custom_headers).value! + def get_stats_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_stats_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -463,7 +466,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_stats_async(resource_group_name, resource_name, custom_headers = nil) + def get_stats_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -471,6 +474,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -528,8 +532,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Array] operation results. # - def get_valid_skus(resource_group_name, resource_name, custom_headers = nil) - first_page = get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers) + def get_valid_skus(resource_group_name, resource_name, custom_headers:nil) + first_page = get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -546,8 +550,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_valid_skus_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_valid_skus_async(resource_group_name, resource_name, custom_headers).value! + def get_valid_skus_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_valid_skus_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -563,7 +567,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_valid_skus_async(resource_group_name, resource_name, custom_headers = nil) + def get_valid_skus_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -571,6 +575,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -632,8 +637,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Array] operation results. # - def list_event_hub_consumer_groups(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) - first_page = list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers) + def list_event_hub_consumer_groups(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) + first_page = list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers) first_page.get_all_items end @@ -654,8 +659,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_hub_consumer_groups_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) - list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers).value! + def list_event_hub_consumer_groups_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) + list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers).value! end # @@ -675,7 +680,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) + def list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -684,6 +689,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -746,8 +752,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [EventHubConsumerGroupInfo] operation results. # - def get_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - response = get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def get_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + response = get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -769,8 +775,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def get_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! end # @@ -791,7 +797,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) + def get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -801,6 +807,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -861,8 +868,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [EventHubConsumerGroupInfo] operation results. # - def create_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - response = create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def create_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + response = create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -882,8 +889,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def create_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! end # @@ -902,7 +909,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) + def create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -912,6 +919,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -971,8 +979,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # will be added to the HTTP request. # # - def delete_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - response = delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def delete_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + response = delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! nil end @@ -992,8 +1000,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) - delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value! + def delete_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) + delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:custom_headers).value! end # @@ -1012,7 +1020,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil) + def delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1022,6 +1030,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1071,8 +1080,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Array] operation results. # - def list_jobs(resource_group_name, resource_name, custom_headers = nil) - first_page = list_jobs_as_lazy(resource_group_name, resource_name, custom_headers) + def list_jobs(resource_group_name, resource_name, custom_headers:nil) + first_page = list_jobs_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -1091,8 +1100,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_jobs_with_http_info(resource_group_name, resource_name, custom_headers = nil) - list_jobs_async(resource_group_name, resource_name, custom_headers).value! + def list_jobs_with_http_info(resource_group_name, resource_name, custom_headers:nil) + list_jobs_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -1110,7 +1119,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_jobs_async(resource_group_name, resource_name, custom_headers = nil) + def list_jobs_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1118,6 +1127,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1178,8 +1188,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [JobResponse] operation results. # - def get_job(resource_group_name, resource_name, job_id, custom_headers = nil) - response = get_job_async(resource_group_name, resource_name, job_id, custom_headers).value! + def get_job(resource_group_name, resource_name, job_id, custom_headers:nil) + response = get_job_async(resource_group_name, resource_name, job_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1199,8 +1209,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_job_with_http_info(resource_group_name, resource_name, job_id, custom_headers = nil) - get_job_async(resource_group_name, resource_name, job_id, custom_headers).value! + def get_job_with_http_info(resource_group_name, resource_name, job_id, custom_headers:nil) + get_job_async(resource_group_name, resource_name, job_id, custom_headers:custom_headers).value! end # @@ -1219,7 +1229,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_job_async(resource_group_name, resource_name, job_id, custom_headers = nil) + def get_job_async(resource_group_name, resource_name, job_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1228,6 +1238,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1285,8 +1296,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Array] operation results. # - def get_quota_metrics(resource_group_name, resource_name, custom_headers = nil) - first_page = get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers) + def get_quota_metrics(resource_group_name, resource_name, custom_headers:nil) + first_page = get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -1303,8 +1314,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_quota_metrics_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_quota_metrics_async(resource_group_name, resource_name, custom_headers).value! + def get_quota_metrics_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_quota_metrics_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -1320,7 +1331,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_quota_metrics_async(resource_group_name, resource_name, custom_headers = nil) + def get_quota_metrics_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1328,6 +1339,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1384,8 +1396,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [IotHubNameAvailabilityInfo] operation results. # - def check_name_availability(operation_inputs, custom_headers = nil) - response = check_name_availability_async(operation_inputs, custom_headers).value! + def check_name_availability(operation_inputs, custom_headers:nil) + response = check_name_availability_async(operation_inputs, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1401,8 +1413,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(operation_inputs, custom_headers = nil) - check_name_availability_async(operation_inputs, custom_headers).value! + def check_name_availability_with_http_info(operation_inputs, custom_headers:nil) + check_name_availability_async(operation_inputs, custom_headers:custom_headers).value! end # @@ -1417,14 +1429,13 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(operation_inputs, custom_headers = nil) + def check_name_availability_async(operation_inputs, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'operation_inputs is nil' if operation_inputs.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1492,8 +1503,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Array] operation results. # - def list_keys(resource_group_name, resource_name, custom_headers = nil) - first_page = list_keys_as_lazy(resource_group_name, resource_name, custom_headers) + def list_keys(resource_group_name, resource_name, custom_headers:nil) + first_page = list_keys_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers) first_page.get_all_items end @@ -1512,8 +1523,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, resource_name, custom_headers = nil) - list_keys_async(resource_group_name, resource_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, resource_name, custom_headers:nil) + list_keys_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -1531,7 +1542,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, resource_name, custom_headers = nil) + def list_keys_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1539,6 +1550,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1599,8 +1611,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [SharedAccessSignatureAuthorizationRule] operation results. # - def get_keys_for_key_name(resource_group_name, resource_name, key_name, custom_headers = nil) - response = get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers).value! + def get_keys_for_key_name(resource_group_name, resource_name, key_name, custom_headers:nil) + response = get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1620,8 +1632,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key_name, custom_headers = nil) - get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers).value! + def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key_name, custom_headers:nil) + get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:custom_headers).value! end # @@ -1640,7 +1652,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers = nil) + def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1649,6 +1661,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1712,8 +1725,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [JobResponse] operation results. # - def export_devices(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil) - response = export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers).value! + def export_devices(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil) + response = export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1736,8 +1749,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_devices_with_http_info(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil) - export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers).value! + def export_devices_with_http_info(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil) + export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:custom_headers).value! end # @@ -1759,7 +1772,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil) + def export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1768,7 +1781,6 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1840,8 +1852,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [JobResponse] operation results. # - def import_devices(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil) - response = import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers).value! + def import_devices(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil) + response = import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1864,8 +1876,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def import_devices_with_http_info(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil) - import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers).value! + def import_devices_with_http_info(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil) + import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:custom_headers).value! end # @@ -1887,7 +1899,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil) + def import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1896,7 +1908,6 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1968,8 +1979,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [IotHubDescription] operation results. # - def begin_create_or_update(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers).value! + def begin_create_or_update(resource_group_name, resource_name, iot_hub_description, if_match:nil, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1992,8 +2003,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil) - begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, resource_name, iot_hub_description, if_match:nil, custom_headers:nil) + begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:if_match, custom_headers:custom_headers).value! end # @@ -2015,7 +2026,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match = nil, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, if_match:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -2024,7 +2035,6 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2101,8 +2111,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Object] operation results. # - def begin_delete(resource_group_name, resource_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, resource_name, custom_headers).value! + def begin_delete(resource_group_name, resource_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2119,8 +2129,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, resource_name, custom_headers = nil) - begin_delete_async(resource_group_name, resource_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, resource_name, custom_headers:nil) + begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -2136,7 +2146,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, resource_name, custom_headers = nil) + def begin_delete_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -2144,6 +2154,7 @@ module Azure::IotHub::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2220,8 +2231,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [IotHubDescriptionListResult] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2237,8 +2248,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2253,11 +2264,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2313,8 +2325,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [IotHubDescriptionListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2330,8 +2342,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2346,11 +2358,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2406,8 +2419,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [IotHubSkuDescriptionListResult] operation results. # - def get_valid_skus_next(next_page_link, custom_headers = nil) - response = get_valid_skus_next_async(next_page_link, custom_headers).value! + def get_valid_skus_next(next_page_link, custom_headers:nil) + response = get_valid_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2423,8 +2436,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_valid_skus_next_with_http_info(next_page_link, custom_headers = nil) - get_valid_skus_next_async(next_page_link, custom_headers).value! + def get_valid_skus_next_with_http_info(next_page_link, custom_headers:nil) + get_valid_skus_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2439,11 +2452,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_valid_skus_next_async(next_page_link, custom_headers = nil) + def get_valid_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2501,8 +2515,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [EventHubConsumerGroupsListResult] operation results. # - def list_event_hub_consumer_groups_next(next_page_link, custom_headers = nil) - response = list_event_hub_consumer_groups_next_async(next_page_link, custom_headers).value! + def list_event_hub_consumer_groups_next(next_page_link, custom_headers:nil) + response = list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2520,8 +2534,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_event_hub_consumer_groups_next_with_http_info(next_page_link, custom_headers = nil) - list_event_hub_consumer_groups_next_async(next_page_link, custom_headers).value! + def list_event_hub_consumer_groups_next_with_http_info(next_page_link, custom_headers:nil) + list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2538,11 +2552,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_event_hub_consumer_groups_next_async(next_page_link, custom_headers = nil) + def list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2600,8 +2615,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [JobResponseListResult] operation results. # - def list_jobs_next(next_page_link, custom_headers = nil) - response = list_jobs_next_async(next_page_link, custom_headers).value! + def list_jobs_next(next_page_link, custom_headers:nil) + response = list_jobs_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2619,8 +2634,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_jobs_next_with_http_info(next_page_link, custom_headers = nil) - list_jobs_next_async(next_page_link, custom_headers).value! + def list_jobs_next_with_http_info(next_page_link, custom_headers:nil) + list_jobs_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2637,11 +2652,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_jobs_next_async(next_page_link, custom_headers = nil) + def list_jobs_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2697,8 +2713,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [IotHubQuotaMetricInfoListResult] operation results. # - def get_quota_metrics_next(next_page_link, custom_headers = nil) - response = get_quota_metrics_next_async(next_page_link, custom_headers).value! + def get_quota_metrics_next(next_page_link, custom_headers:nil) + response = get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2714,8 +2730,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_quota_metrics_next_with_http_info(next_page_link, custom_headers = nil) - get_quota_metrics_next_async(next_page_link, custom_headers).value! + def get_quota_metrics_next_with_http_info(next_page_link, custom_headers:nil) + get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2730,11 +2746,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_quota_metrics_next_async(next_page_link, custom_headers = nil) + def get_quota_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2792,8 +2809,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [SharedAccessSignatureAuthorizationRuleListResult] operation results. # - def list_keys_next(next_page_link, custom_headers = nil) - response = list_keys_next_async(next_page_link, custom_headers).value! + def list_keys_next(next_page_link, custom_headers:nil) + response = list_keys_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2811,8 +2828,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_next_with_http_info(next_page_link, custom_headers = nil) - list_keys_next_async(next_page_link, custom_headers).value! + def list_keys_next_with_http_info(next_page_link, custom_headers:nil) + list_keys_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2829,11 +2846,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_next_async(next_page_link, custom_headers = nil) + def list_keys_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2888,12 +2906,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # @return [IotHubDescriptionListResult] which provide lazy access to pages of # the response. # - def list_by_subscription_as_lazy(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription_as_lazy(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2912,12 +2930,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # @return [IotHubDescriptionListResult] which provide lazy access to pages of # the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2937,12 +2955,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # @return [IotHubSkuDescriptionListResult] which provide lazy access to pages # of the response. # - def get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = get_valid_skus_async(resource_group_name, resource_name, custom_headers).value! + def get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = get_valid_skus_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - get_valid_skus_next_async(next_page_link, custom_headers) + get_valid_skus_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2966,12 +2984,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # @return [EventHubConsumerGroupsListResult] which provide lazy access to pages # of the response. # - def list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil) - response = list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers).value! + def list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:nil) + response = list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_event_hub_consumer_groups_next_async(next_page_link, custom_headers) + list_event_hub_consumer_groups_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2993,12 +3011,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # @return [JobResponseListResult] which provide lazy access to pages of the # response. # - def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = list_jobs_async(resource_group_name, resource_name, custom_headers).value! + def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = list_jobs_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_jobs_next_async(next_page_link, custom_headers) + list_jobs_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3018,12 +3036,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # @return [IotHubQuotaMetricInfoListResult] which provide lazy access to pages # of the response. # - def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = get_quota_metrics_async(resource_group_name, resource_name, custom_headers).value! + def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = get_quota_metrics_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - get_quota_metrics_next_async(next_page_link, custom_headers) + get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3045,12 +3063,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # @return [SharedAccessSignatureAuthorizationRuleListResult] which provide lazy # access to pages of the response. # - def list_keys_as_lazy(resource_group_name, resource_name, custom_headers = nil) - response = list_keys_async(resource_group_name, resource_name, custom_headers).value! + def list_keys_as_lazy(resource_group_name, resource_name, custom_headers:nil) + response = list_keys_async(resource_group_name, resource_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_keys_next_async(next_page_link, custom_headers) + list_keys_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/operations.rb b/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/operations.rb index c342c6f69..ebc59202d 100644 --- a/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/operations.rb +++ b/management/azure_mgmt_iot_hub/lib/2017-07-01/generated/azure_mgmt_iot_hub/operations.rb @@ -29,8 +29,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::IotHub::Mgmt::V2017_07_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_iot_hub/lib/profiles/latest/modules/iothub_profile_module.rb b/management/azure_mgmt_iot_hub/lib/profiles/latest/modules/iothub_profile_module.rb index 1b6113b76..33f513f29 100644 --- a/management/azure_mgmt_iot_hub/lib/profiles/latest/modules/iothub_profile_module.rb +++ b/management/azure_mgmt_iot_hub/lib/profiles/latest/modules/iothub_profile_module.rb @@ -90,14 +90,14 @@ module Azure::IotHub::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::IotHub::Mgmt::V2017_07_01::IotHubClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::IotHub::Mgmt::V2017_07_01::IotHubClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @iot_hub_resource = client_0.iot_hub_resource - @certificates = client_0.certificates + add_telemetry(@client_0) + @operations = @client_0.operations + @iot_hub_resource = @client_0.iot_hub_resource + @certificates = @client_0.certificates @model_classes = ModelClasses.new end @@ -107,6 +107,14 @@ module Azure::IotHub::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_key_vault/lib/2015-06-01/generated/azure_mgmt_key_vault/vaults.rb b/management/azure_mgmt_key_vault/lib/2015-06-01/generated/azure_mgmt_key_vault/vaults.rb index 15f35bc4d..5be7ea941 100644 --- a/management/azure_mgmt_key_vault/lib/2015-06-01/generated/azure_mgmt_key_vault/vaults.rb +++ b/management/azure_mgmt_key_vault/lib/2015-06-01/generated/azure_mgmt_key_vault/vaults.rb @@ -35,8 +35,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [Vault] operation results. # - def create_or_update(resource_group_name, vault_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vault_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, vault_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vault_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, vault_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, vault_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, vault_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, vault_name, parameters, custom_headers:custom_headers).value! end # @@ -70,7 +70,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, vault_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vault_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, "'vault_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9-]{3,24}$'" if !vault_name.nil? && vault_name.match(Regexp.new('^^[a-zA-Z0-9-]{3,24}$$')).nil? @@ -80,7 +80,6 @@ module Azure::KeyVault::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -153,8 +152,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, vault_name, custom_headers = nil) - response = delete_async(resource_group_name, vault_name, custom_headers).value! + def delete(resource_group_name, vault_name, custom_headers:nil) + response = delete_async(resource_group_name, vault_name, custom_headers:custom_headers).value! nil end @@ -169,8 +168,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, vault_name, custom_headers = nil) - delete_async(resource_group_name, vault_name, custom_headers).value! + def delete_with_http_info(resource_group_name, vault_name, custom_headers:nil) + delete_async(resource_group_name, vault_name, custom_headers:custom_headers).value! end # @@ -184,7 +183,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, vault_name, custom_headers = nil) + def delete_async(resource_group_name, vault_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -192,6 +191,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -237,8 +237,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [Vault] operation results. # - def get(resource_group_name, vault_name, custom_headers = nil) - response = get_async(resource_group_name, vault_name, custom_headers).value! + def get(resource_group_name, vault_name, custom_headers:nil) + response = get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -253,8 +253,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vault_name, custom_headers = nil) - get_async(resource_group_name, vault_name, custom_headers).value! + def get_with_http_info(resource_group_name, vault_name, custom_headers:nil) + get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! end # @@ -268,7 +268,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vault_name, custom_headers = nil) + def get_async(resource_group_name, vault_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -276,6 +276,7 @@ module Azure::KeyVault::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -332,8 +333,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, top = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, top, custom_headers) + def list_by_resource_group(resource_group_name, top:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -349,8 +350,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, top = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, top, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, top:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value! end # @@ -365,13 +366,14 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, top = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -426,8 +428,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [Array] operation results. # - def list(top = nil, custom_headers = nil) - first_page = list_as_lazy(top, custom_headers) + def list(top:nil, custom_headers:nil) + first_page = list_as_lazy(top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -441,8 +443,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(top = nil, custom_headers = nil) - list_async(top, custom_headers).value! + def list_with_http_info(top:nil, custom_headers:nil) + list_async(top:top, custom_headers:custom_headers).value! end # @@ -455,13 +457,14 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(top = nil, custom_headers = nil) + def list_async(top:nil, custom_headers:nil) filter = 'resourceType eq \'Microsoft.KeyVault/vaults\'' api_version = '2015-11-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -517,8 +520,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [VaultListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -533,8 +536,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -548,11 +551,12 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -607,8 +611,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [ResourceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -623,8 +627,8 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -638,11 +642,12 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -698,12 +703,12 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # # @return [VaultListResult] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, top = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, top, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, top:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -720,12 +725,12 @@ module Azure::KeyVault::Mgmt::V2015_06_01 # @return [ResourceListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(top = nil, custom_headers = nil) - response = list_async(top, custom_headers).value! + def list_as_lazy(top:nil, custom_headers:nil) + response = list_async(top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_key_vault/lib/2016-10-01/generated/azure_mgmt_key_vault/vaults.rb b/management/azure_mgmt_key_vault/lib/2016-10-01/generated/azure_mgmt_key_vault/vaults.rb index 095dd120d..ca8e69e3b 100644 --- a/management/azure_mgmt_key_vault/lib/2016-10-01/generated/azure_mgmt_key_vault/vaults.rb +++ b/management/azure_mgmt_key_vault/lib/2016-10-01/generated/azure_mgmt_key_vault/vaults.rb @@ -35,8 +35,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Vault] operation results. # - def create_or_update(resource_group_name, vault_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vault_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, vault_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, vault_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, vault_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, vault_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, vault_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, vault_name, parameters, custom_headers:custom_headers).value! end # @@ -70,7 +70,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, vault_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, vault_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, "'vault_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9-]{3,24}$'" if !vault_name.nil? && vault_name.match(Regexp.new('^^[a-zA-Z0-9-]{3,24}$$')).nil? @@ -80,7 +80,6 @@ module Azure::KeyVault::Mgmt::V2016_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -153,8 +152,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # will be added to the HTTP request. # # - def delete(resource_group_name, vault_name, custom_headers = nil) - response = delete_async(resource_group_name, vault_name, custom_headers).value! + def delete(resource_group_name, vault_name, custom_headers:nil) + response = delete_async(resource_group_name, vault_name, custom_headers:custom_headers).value! nil end @@ -169,8 +168,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, vault_name, custom_headers = nil) - delete_async(resource_group_name, vault_name, custom_headers).value! + def delete_with_http_info(resource_group_name, vault_name, custom_headers:nil) + delete_async(resource_group_name, vault_name, custom_headers:custom_headers).value! end # @@ -184,7 +183,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, vault_name, custom_headers = nil) + def delete_async(resource_group_name, vault_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -192,6 +191,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -237,8 +237,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Vault] operation results. # - def get(resource_group_name, vault_name, custom_headers = nil) - response = get_async(resource_group_name, vault_name, custom_headers).value! + def get(resource_group_name, vault_name, custom_headers:nil) + response = get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -253,8 +253,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vault_name, custom_headers = nil) - get_async(resource_group_name, vault_name, custom_headers).value! + def get_with_http_info(resource_group_name, vault_name, custom_headers:nil) + get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! end # @@ -268,7 +268,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vault_name, custom_headers = nil) + def get_async(resource_group_name, vault_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -276,6 +276,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -332,8 +333,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, top = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, top, custom_headers) + def list_by_resource_group(resource_group_name, top:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -349,8 +350,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, top = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, top, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, top:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value! end # @@ -365,13 +366,14 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, top = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -424,8 +426,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Array] operation results. # - def list_deleted(custom_headers = nil) - first_page = list_deleted_as_lazy(custom_headers) + def list_deleted(custom_headers:nil) + first_page = list_deleted_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -437,8 +439,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_deleted_with_http_info(custom_headers = nil) - list_deleted_async(custom_headers).value! + def list_deleted_with_http_info(custom_headers:nil) + list_deleted_async(custom_headers:custom_headers).value! end # @@ -449,12 +451,13 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_deleted_async(custom_headers = nil) + def list_deleted_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -509,8 +512,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [DeletedVault] operation results. # - def get_deleted(vault_name, location, custom_headers = nil) - response = get_deleted_async(vault_name, location, custom_headers).value! + def get_deleted(vault_name, location, custom_headers:nil) + response = get_deleted_async(vault_name, location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -524,8 +527,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_deleted_with_http_info(vault_name, location, custom_headers = nil) - get_deleted_async(vault_name, location, custom_headers).value! + def get_deleted_with_http_info(vault_name, location, custom_headers:nil) + get_deleted_async(vault_name, location, custom_headers:custom_headers).value! end # @@ -538,7 +541,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_deleted_async(vault_name, location, custom_headers = nil) + def get_deleted_async(vault_name, location, custom_headers:nil) fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -546,6 +549,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -599,8 +603,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge_deleted(vault_name, location, custom_headers = nil) - response = purge_deleted_async(vault_name, location, custom_headers).value! + def purge_deleted(vault_name, location, custom_headers:nil) + response = purge_deleted_async(vault_name, location, custom_headers:custom_headers).value! nil end @@ -613,9 +617,9 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_deleted_async(vault_name, location, custom_headers = nil) + def purge_deleted_async(vault_name, location, custom_headers:nil) # Send request - promise = begin_purge_deleted_async(vault_name, location, custom_headers) + promise = begin_purge_deleted_async(vault_name, location, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -639,8 +643,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Array] operation results. # - def list(top = nil, custom_headers = nil) - first_page = list_as_lazy(top, custom_headers) + def list(top:nil, custom_headers:nil) + first_page = list_as_lazy(top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -654,8 +658,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(top = nil, custom_headers = nil) - list_async(top, custom_headers).value! + def list_with_http_info(top:nil, custom_headers:nil) + list_async(top:top, custom_headers:custom_headers).value! end # @@ -668,13 +672,14 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(top = nil, custom_headers = nil) + def list_async(top:nil, custom_headers:nil) filter = 'resourceType eq \'Microsoft.KeyVault/vaults\'' api_version = '2015-11-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -729,8 +734,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # will be added to the HTTP request. # # - def begin_purge_deleted(vault_name, location, custom_headers = nil) - response = begin_purge_deleted_async(vault_name, location, custom_headers).value! + def begin_purge_deleted(vault_name, location, custom_headers:nil) + response = begin_purge_deleted_async(vault_name, location, custom_headers:custom_headers).value! nil end @@ -745,8 +750,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_deleted_with_http_info(vault_name, location, custom_headers = nil) - begin_purge_deleted_async(vault_name, location, custom_headers).value! + def begin_purge_deleted_with_http_info(vault_name, location, custom_headers:nil) + begin_purge_deleted_async(vault_name, location, custom_headers:custom_headers).value! end # @@ -760,7 +765,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_deleted_async(vault_name, location, custom_headers = nil) + def begin_purge_deleted_async(vault_name, location, custom_headers:nil) fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -768,6 +773,7 @@ module Azure::KeyVault::Mgmt::V2016_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -813,8 +819,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [VaultListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -829,8 +835,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -844,11 +850,12 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -902,8 +909,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [DeletedVaultListResult] operation results. # - def list_deleted_next(next_page_link, custom_headers = nil) - response = list_deleted_next_async(next_page_link, custom_headers).value! + def list_deleted_next(next_page_link, custom_headers:nil) + response = list_deleted_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -917,8 +924,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_deleted_next_with_http_info(next_page_link, custom_headers = nil) - list_deleted_next_async(next_page_link, custom_headers).value! + def list_deleted_next_with_http_info(next_page_link, custom_headers:nil) + list_deleted_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -931,11 +938,12 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_deleted_next_async(next_page_link, custom_headers = nil) + def list_deleted_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -990,8 +998,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [ResourceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1006,8 +1014,8 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1021,11 +1029,12 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1081,12 +1090,12 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # # @return [VaultListResult] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, top = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, top, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, top:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1101,12 +1110,12 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # @return [DeletedVaultListResult] which provide lazy access to pages of the # response. # - def list_deleted_as_lazy(custom_headers = nil) - response = list_deleted_async(custom_headers).value! + def list_deleted_as_lazy(custom_headers:nil) + response = list_deleted_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_deleted_next_async(next_page_link, custom_headers) + list_deleted_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1123,12 +1132,12 @@ module Azure::KeyVault::Mgmt::V2016_10_01 # @return [ResourceListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(top = nil, custom_headers = nil) - response = list_async(top, custom_headers).value! + def list_as_lazy(top:nil, custom_headers:nil) + response = list_async(top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_key_vault/lib/profiles/latest/modules/keyvault_profile_module.rb b/management/azure_mgmt_key_vault/lib/profiles/latest/modules/keyvault_profile_module.rb index fc5cbbf8c..a3c53697f 100644 --- a/management/azure_mgmt_key_vault/lib/profiles/latest/modules/keyvault_profile_module.rb +++ b/management/azure_mgmt_key_vault/lib/profiles/latest/modules/keyvault_profile_module.rb @@ -48,12 +48,12 @@ module Azure::KeyVault::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::KeyVault::Mgmt::V2016_10_01::KeyVaultManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::KeyVault::Mgmt::V2016_10_01::KeyVaultManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @vaults = client_0.vaults + add_telemetry(@client_0) + @vaults = @client_0.vaults @model_classes = ModelClasses.new end @@ -63,6 +63,14 @@ module Azure::KeyVault::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_links/lib/2016-09-01/generated/azure_mgmt_links/resource_links.rb b/management/azure_mgmt_links/lib/2016-09-01/generated/azure_mgmt_links/resource_links.rb index 661771938..da1029cca 100644 --- a/management/azure_mgmt_links/lib/2016-09-01/generated/azure_mgmt_links/resource_links.rb +++ b/management/azure_mgmt_links/lib/2016-09-01/generated/azure_mgmt_links/resource_links.rb @@ -38,8 +38,8 @@ module Azure::Links::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def delete(link_id, custom_headers = nil) - response = delete_async(link_id, custom_headers).value! + def delete(link_id, custom_headers:nil) + response = delete_async(link_id, custom_headers:custom_headers).value! nil end @@ -56,8 +56,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(link_id, custom_headers = nil) - delete_async(link_id, custom_headers).value! + def delete_with_http_info(link_id, custom_headers:nil) + delete_async(link_id, custom_headers:custom_headers).value! end # @@ -73,12 +73,13 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(link_id, custom_headers = nil) + def delete_async(link_id, custom_headers:nil) fail ArgumentError, 'link_id is nil' if link_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -128,8 +129,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [ResourceLink] operation results. # - def create_or_update(link_id, parameters, custom_headers = nil) - response = create_or_update_async(link_id, parameters, custom_headers).value! + def create_or_update(link_id, parameters, custom_headers:nil) + response = create_or_update_async(link_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +149,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(link_id, parameters, custom_headers = nil) - create_or_update_async(link_id, parameters, custom_headers).value! + def create_or_update_with_http_info(link_id, parameters, custom_headers:nil) + create_or_update_async(link_id, parameters, custom_headers:custom_headers).value! end # @@ -167,14 +168,13 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(link_id, parameters, custom_headers = nil) + def create_or_update_async(link_id, parameters, custom_headers:nil) fail ArgumentError, 'link_id is nil' if link_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -248,8 +248,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [ResourceLink] operation results. # - def get(link_id, custom_headers = nil) - response = get_async(link_id, custom_headers).value! + def get(link_id, custom_headers:nil) + response = get_async(link_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -264,8 +264,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(link_id, custom_headers = nil) - get_async(link_id, custom_headers).value! + def get_with_http_info(link_id, custom_headers:nil) + get_async(link_id, custom_headers:custom_headers).value! end # @@ -279,12 +279,13 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(link_id, custom_headers = nil) + def get_async(link_id, custom_headers:nil) fail ArgumentError, 'link_id is nil' if link_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -340,8 +341,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_at_subscription(filter = nil, custom_headers = nil) - first_page = list_at_subscription_as_lazy(filter, custom_headers) + def list_at_subscription(filter:nil, custom_headers:nil) + first_page = list_at_subscription_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -356,8 +357,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_subscription_with_http_info(filter = nil, custom_headers = nil) - list_at_subscription_async(filter, custom_headers).value! + def list_at_subscription_with_http_info(filter:nil, custom_headers:nil) + list_at_subscription_async(filter:filter, custom_headers:custom_headers).value! end # @@ -371,12 +372,13 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_subscription_async(filter = nil, custom_headers = nil) + def list_at_subscription_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -436,8 +438,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_at_source_scope(scope, filter = nil, custom_headers = nil) - first_page = list_at_source_scope_as_lazy(scope, filter, custom_headers) + def list_at_source_scope(scope, filter:nil, custom_headers:nil) + first_page = list_at_source_scope_as_lazy(scope, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -456,8 +458,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_source_scope_with_http_info(scope, filter = nil, custom_headers = nil) - list_at_source_scope_async(scope, filter, custom_headers).value! + def list_at_source_scope_with_http_info(scope, filter:nil, custom_headers:nil) + list_at_source_scope_async(scope, filter:filter, custom_headers:custom_headers).value! end # @@ -475,12 +477,13 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_source_scope_async(scope, filter = nil, custom_headers = nil) + def list_at_source_scope_async(scope, filter:nil, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -535,8 +538,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [ResourceLinkResult] operation results. # - def list_at_subscription_next(next_page_link, custom_headers = nil) - response = list_at_subscription_next_async(next_page_link, custom_headers).value! + def list_at_subscription_next(next_page_link, custom_headers:nil) + response = list_at_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -550,8 +553,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_at_subscription_next_async(next_page_link, custom_headers).value! + def list_at_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_at_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -564,11 +567,12 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_subscription_next_async(next_page_link, custom_headers = nil) + def list_at_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -622,8 +626,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [ResourceLinkResult] operation results. # - def list_at_source_scope_next(next_page_link, custom_headers = nil) - response = list_at_source_scope_next_async(next_page_link, custom_headers).value! + def list_at_source_scope_next(next_page_link, custom_headers:nil) + response = list_at_source_scope_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -637,8 +641,8 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_source_scope_next_with_http_info(next_page_link, custom_headers = nil) - list_at_source_scope_next_async(next_page_link, custom_headers).value! + def list_at_source_scope_next_with_http_info(next_page_link, custom_headers:nil) + list_at_source_scope_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -651,11 +655,12 @@ module Azure::Links::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_source_scope_next_async(next_page_link, custom_headers = nil) + def list_at_source_scope_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -711,12 +716,12 @@ module Azure::Links::Mgmt::V2016_09_01 # @return [ResourceLinkResult] which provide lazy access to pages of the # response. # - def list_at_subscription_as_lazy(filter = nil, custom_headers = nil) - response = list_at_subscription_async(filter, custom_headers).value! + def list_at_subscription_as_lazy(filter:nil, custom_headers:nil) + response = list_at_subscription_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_at_subscription_next_async(next_page_link, custom_headers) + list_at_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -738,12 +743,12 @@ module Azure::Links::Mgmt::V2016_09_01 # @return [ResourceLinkResult] which provide lazy access to pages of the # response. # - def list_at_source_scope_as_lazy(scope, filter = nil, custom_headers = nil) - response = list_at_source_scope_async(scope, filter, custom_headers).value! + def list_at_source_scope_as_lazy(scope, filter:nil, custom_headers:nil) + response = list_at_source_scope_async(scope, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_at_source_scope_next_async(next_page_link, custom_headers) + list_at_source_scope_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_links/lib/profiles/latest/modules/links_profile_module.rb b/management/azure_mgmt_links/lib/profiles/latest/modules/links_profile_module.rb index 5623217ac..cd7d330f2 100644 --- a/management/azure_mgmt_links/lib/profiles/latest/modules/links_profile_module.rb +++ b/management/azure_mgmt_links/lib/profiles/latest/modules/links_profile_module.rb @@ -35,12 +35,12 @@ module Azure::Links::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @resource_links = client_0.resource_links + add_telemetry(@client_0) + @resource_links = @client_0.resource_links @model_classes = ModelClasses.new end @@ -50,6 +50,14 @@ module Azure::Links::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_links/lib/profiles/v2017_03_09/modules/links_profile_module.rb b/management/azure_mgmt_links/lib/profiles/v2017_03_09/modules/links_profile_module.rb index 140dc60e4..b688d69e8 100644 --- a/management/azure_mgmt_links/lib/profiles/v2017_03_09/modules/links_profile_module.rb +++ b/management/azure_mgmt_links/lib/profiles/v2017_03_09/modules/links_profile_module.rb @@ -35,12 +35,12 @@ module Azure::Links::Profiles::V2017_03_09 @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @resource_links = client_0.resource_links + add_telemetry(@client_0) + @resource_links = @client_0.resource_links @model_classes = ModelClasses.new end @@ -50,6 +50,14 @@ module Azure::Links::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_locks/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb b/management/azure_mgmt_locks/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb index 968c31fa1..d9d66982e 100644 --- a/management/azure_mgmt_locks/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb +++ b/management/azure_mgmt_locks/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb @@ -32,8 +32,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [ManagementLockObject] operation results. # - def create_or_update_at_resource_group_level(resource_group_name, lock_name, parameters, custom_headers = nil) - response = create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers).value! + def create_or_update_at_resource_group_level(resource_group_name, lock_name, parameters, custom_headers:nil) + response = create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_at_resource_group_level_with_http_info(resource_group_name, lock_name, parameters, custom_headers = nil) - create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers).value! + def create_or_update_at_resource_group_level_with_http_info(resource_group_name, lock_name, parameters, custom_headers:nil) + create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers = nil) + def create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -75,7 +75,6 @@ module Azure::Locks::Mgmt::V2015_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -147,8 +146,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # will be added to the HTTP request. # # - def delete_at_resource_group_level(resource_group_name, lock_name, custom_headers = nil) - response = delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers).value! + def delete_at_resource_group_level(resource_group_name, lock_name, custom_headers:nil) + response = delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:custom_headers).value! nil end @@ -162,8 +161,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_at_resource_group_level_with_http_info(resource_group_name, lock_name, custom_headers = nil) - delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers).value! + def delete_at_resource_group_level_with_http_info(resource_group_name, lock_name, custom_headers:nil) + delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:custom_headers).value! end # @@ -176,7 +175,7 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers = nil) + def delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -187,6 +186,7 @@ module Azure::Locks::Mgmt::V2015_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -231,8 +231,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [ManagementLockObject] operation results. # - def get_at_resource_group_level(resource_group_name, lock_name, custom_headers = nil) - response = get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers).value! + def get_at_resource_group_level(resource_group_name, lock_name, custom_headers:nil) + response = get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -246,8 +246,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_at_resource_group_level_with_http_info(resource_group_name, lock_name, custom_headers = nil) - get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers).value! + def get_at_resource_group_level_with_http_info(resource_group_name, lock_name, custom_headers:nil) + get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:custom_headers).value! end # @@ -260,7 +260,7 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers = nil) + def get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -271,6 +271,7 @@ module Azure::Locks::Mgmt::V2015_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -332,8 +333,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [ManagementLockObject] operation results. # - def create_or_update_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers = nil) - response = create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers).value! + def create_or_update_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers:nil) + response = create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -354,8 +355,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers = nil) - create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers).value! + def create_or_update_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers:nil) + create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers:custom_headers).value! end # @@ -375,7 +376,7 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers = nil) + def create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -391,7 +392,6 @@ module Azure::Locks::Mgmt::V2015_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -468,8 +468,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # will be added to the HTTP request. # # - def delete_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil) - response = delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers).value! + def delete_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:nil) + response = delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:custom_headers).value! nil end @@ -487,8 +487,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil) - delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers).value! + def delete_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:nil) + delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:custom_headers).value! end # @@ -505,7 +505,7 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil) + def delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -520,6 +520,7 @@ module Azure::Locks::Mgmt::V2015_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -565,8 +566,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [ManagementLockObject] operation results. # - def create_or_update_at_subscription_level(lock_name, parameters, custom_headers = nil) - response = create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers).value! + def create_or_update_at_subscription_level(lock_name, parameters, custom_headers:nil) + response = create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -580,8 +581,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_at_subscription_level_with_http_info(lock_name, parameters, custom_headers = nil) - create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers).value! + def create_or_update_at_subscription_level_with_http_info(lock_name, parameters, custom_headers:nil) + create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers:custom_headers).value! end # @@ -594,7 +595,7 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers = nil) + def create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers:nil) fail ArgumentError, 'lock_name is nil' if lock_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -602,7 +603,6 @@ module Azure::Locks::Mgmt::V2015_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -673,8 +673,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # will be added to the HTTP request. # # - def delete_at_subscription_level(lock_name, custom_headers = nil) - response = delete_at_subscription_level_async(lock_name, custom_headers).value! + def delete_at_subscription_level(lock_name, custom_headers:nil) + response = delete_at_subscription_level_async(lock_name, custom_headers:custom_headers).value! nil end @@ -687,8 +687,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_at_subscription_level_with_http_info(lock_name, custom_headers = nil) - delete_at_subscription_level_async(lock_name, custom_headers).value! + def delete_at_subscription_level_with_http_info(lock_name, custom_headers:nil) + delete_at_subscription_level_async(lock_name, custom_headers:custom_headers).value! end # @@ -700,13 +700,14 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_at_subscription_level_async(lock_name, custom_headers = nil) + def delete_at_subscription_level_async(lock_name, custom_headers:nil) fail ArgumentError, 'lock_name is nil' if lock_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -750,8 +751,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [ManagementLockObject] operation results. # - def get(lock_name, custom_headers = nil) - response = get_async(lock_name, custom_headers).value! + def get(lock_name, custom_headers:nil) + response = get_async(lock_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -764,8 +765,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(lock_name, custom_headers = nil) - get_async(lock_name, custom_headers).value! + def get_with_http_info(lock_name, custom_headers:nil) + get_async(lock_name, custom_headers:custom_headers).value! end # @@ -777,13 +778,14 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(lock_name, custom_headers = nil) + def get_async(lock_name, custom_headers:nil) fail ArgumentError, 'lock_name is nil' if lock_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -838,8 +840,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Array] operation results. # - def list_at_resource_group_level(resource_group_name, filter = nil, custom_headers = nil) - first_page = list_at_resource_group_level_as_lazy(resource_group_name, filter, custom_headers) + def list_at_resource_group_level(resource_group_name, filter:nil, custom_headers:nil) + first_page = list_at_resource_group_level_as_lazy(resource_group_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -853,8 +855,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_resource_group_level_with_http_info(resource_group_name, filter = nil, custom_headers = nil) - list_at_resource_group_level_async(resource_group_name, filter, custom_headers).value! + def list_at_resource_group_level_with_http_info(resource_group_name, filter:nil, custom_headers:nil) + list_at_resource_group_level_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -867,7 +869,7 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_resource_group_level_async(resource_group_name, filter = nil, custom_headers = nil) + def list_at_resource_group_level_async(resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -877,6 +879,7 @@ module Azure::Locks::Mgmt::V2015_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -936,8 +939,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Array] operation results. # - def list_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - first_page = list_at_resource_level_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers) + def list_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + first_page = list_at_resource_level_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -956,8 +959,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! end # @@ -975,7 +978,7 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) + def list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -989,6 +992,7 @@ module Azure::Locks::Mgmt::V2015_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1043,8 +1047,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Array] operation results. # - def list_at_subscription_level(filter = nil, custom_headers = nil) - first_page = list_at_subscription_level_as_lazy(filter, custom_headers) + def list_at_subscription_level(filter:nil, custom_headers:nil) + first_page = list_at_subscription_level_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -1057,8 +1061,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_subscription_level_with_http_info(filter = nil, custom_headers = nil) - list_at_subscription_level_async(filter, custom_headers).value! + def list_at_subscription_level_with_http_info(filter:nil, custom_headers:nil) + list_at_subscription_level_async(filter:filter, custom_headers:custom_headers).value! end # @@ -1070,12 +1074,13 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_subscription_level_async(filter = nil, custom_headers = nil) + def list_at_subscription_level_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1130,8 +1135,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [ManagementLockListResult] operation results. # - def list_at_resource_group_level_next(next_page_link, custom_headers = nil) - response = list_at_resource_group_level_next_async(next_page_link, custom_headers).value! + def list_at_resource_group_level_next(next_page_link, custom_headers:nil) + response = list_at_resource_group_level_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1145,8 +1150,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_resource_group_level_next_with_http_info(next_page_link, custom_headers = nil) - list_at_resource_group_level_next_async(next_page_link, custom_headers).value! + def list_at_resource_group_level_next_with_http_info(next_page_link, custom_headers:nil) + list_at_resource_group_level_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1159,11 +1164,12 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_resource_group_level_next_async(next_page_link, custom_headers = nil) + def list_at_resource_group_level_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1217,8 +1223,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [ManagementLockListResult] operation results. # - def list_at_resource_level_next(next_page_link, custom_headers = nil) - response = list_at_resource_level_next_async(next_page_link, custom_headers).value! + def list_at_resource_level_next(next_page_link, custom_headers:nil) + response = list_at_resource_level_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1232,8 +1238,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_resource_level_next_with_http_info(next_page_link, custom_headers = nil) - list_at_resource_level_next_async(next_page_link, custom_headers).value! + def list_at_resource_level_next_with_http_info(next_page_link, custom_headers:nil) + list_at_resource_level_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1246,11 +1252,12 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_resource_level_next_async(next_page_link, custom_headers = nil) + def list_at_resource_level_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1304,8 +1311,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [ManagementLockListResult] operation results. # - def list_at_subscription_level_next(next_page_link, custom_headers = nil) - response = list_at_subscription_level_next_async(next_page_link, custom_headers).value! + def list_at_subscription_level_next(next_page_link, custom_headers:nil) + response = list_at_subscription_level_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1319,8 +1326,8 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_subscription_level_next_with_http_info(next_page_link, custom_headers = nil) - list_at_subscription_level_next_async(next_page_link, custom_headers).value! + def list_at_subscription_level_next_with_http_info(next_page_link, custom_headers:nil) + list_at_subscription_level_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1333,11 +1340,12 @@ module Azure::Locks::Mgmt::V2015_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_subscription_level_next_async(next_page_link, custom_headers = nil) + def list_at_subscription_level_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1392,12 +1400,12 @@ module Azure::Locks::Mgmt::V2015_01_01 # @return [ManagementLockListResult] which provide lazy access to pages of the # response. # - def list_at_resource_group_level_as_lazy(resource_group_name, filter = nil, custom_headers = nil) - response = list_at_resource_group_level_async(resource_group_name, filter, custom_headers).value! + def list_at_resource_group_level_as_lazy(resource_group_name, filter:nil, custom_headers:nil) + response = list_at_resource_group_level_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_at_resource_group_level_next_async(next_page_link, custom_headers) + list_at_resource_group_level_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1419,12 +1427,12 @@ module Azure::Locks::Mgmt::V2015_01_01 # @return [ManagementLockListResult] which provide lazy access to pages of the # response. # - def list_at_resource_level_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - response = list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_at_resource_level_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + response = list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_at_resource_level_next_async(next_page_link, custom_headers) + list_at_resource_level_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1440,12 +1448,12 @@ module Azure::Locks::Mgmt::V2015_01_01 # @return [ManagementLockListResult] which provide lazy access to pages of the # response. # - def list_at_subscription_level_as_lazy(filter = nil, custom_headers = nil) - response = list_at_subscription_level_async(filter, custom_headers).value! + def list_at_subscription_level_as_lazy(filter:nil, custom_headers:nil) + response = list_at_subscription_level_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_at_subscription_level_next_async(next_page_link, custom_headers) + list_at_subscription_level_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_locks/lib/2016-09-01/generated/azure_mgmt_locks/management_locks.rb b/management/azure_mgmt_locks/lib/2016-09-01/generated/azure_mgmt_locks/management_locks.rb index 59e58e399..316086141 100644 --- a/management/azure_mgmt_locks/lib/2016-09-01/generated/azure_mgmt_locks/management_locks.rb +++ b/management/azure_mgmt_locks/lib/2016-09-01/generated/azure_mgmt_locks/management_locks.rb @@ -41,8 +41,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [ManagementLockObject] operation results. # - def create_or_update_at_resource_group_level(resource_group_name, lock_name, parameters, custom_headers = nil) - response = create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers).value! + def create_or_update_at_resource_group_level(resource_group_name, lock_name, parameters, custom_headers:nil) + response = create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -65,8 +65,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_at_resource_group_level_with_http_info(resource_group_name, lock_name, parameters, custom_headers = nil) - create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers).value! + def create_or_update_at_resource_group_level_with_http_info(resource_group_name, lock_name, parameters, custom_headers:nil) + create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers:custom_headers).value! end # @@ -88,7 +88,7 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers = nil) + def create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -100,7 +100,6 @@ module Azure::Locks::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -177,8 +176,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def delete_at_resource_group_level(resource_group_name, lock_name, custom_headers = nil) - response = delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers).value! + def delete_at_resource_group_level(resource_group_name, lock_name, custom_headers:nil) + response = delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:custom_headers).value! nil end @@ -197,8 +196,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_at_resource_group_level_with_http_info(resource_group_name, lock_name, custom_headers = nil) - delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers).value! + def delete_at_resource_group_level_with_http_info(resource_group_name, lock_name, custom_headers:nil) + delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:custom_headers).value! end # @@ -216,7 +215,7 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers = nil) + def delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -227,6 +226,7 @@ module Azure::Locks::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -271,8 +271,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [ManagementLockObject] operation results. # - def get_at_resource_group_level(resource_group_name, lock_name, custom_headers = nil) - response = get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers).value! + def get_at_resource_group_level(resource_group_name, lock_name, custom_headers:nil) + response = get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -286,8 +286,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_at_resource_group_level_with_http_info(resource_group_name, lock_name, custom_headers = nil) - get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers).value! + def get_at_resource_group_level_with_http_info(resource_group_name, lock_name, custom_headers:nil) + get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:custom_headers).value! end # @@ -300,7 +300,7 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers = nil) + def get_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -311,6 +311,7 @@ module Azure::Locks::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -372,8 +373,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [ManagementLockObject] operation results. # - def create_or_update_by_scope(scope, lock_name, parameters, custom_headers = nil) - response = create_or_update_by_scope_async(scope, lock_name, parameters, custom_headers).value! + def create_or_update_by_scope(scope, lock_name, parameters, custom_headers:nil) + response = create_or_update_by_scope_async(scope, lock_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -394,8 +395,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_by_scope_with_http_info(scope, lock_name, parameters, custom_headers = nil) - create_or_update_by_scope_async(scope, lock_name, parameters, custom_headers).value! + def create_or_update_by_scope_with_http_info(scope, lock_name, parameters, custom_headers:nil) + create_or_update_by_scope_async(scope, lock_name, parameters, custom_headers:custom_headers).value! end # @@ -415,7 +416,7 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_by_scope_async(scope, lock_name, parameters, custom_headers = nil) + def create_or_update_by_scope_async(scope, lock_name, parameters, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'lock_name is nil' if lock_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -423,7 +424,6 @@ module Azure::Locks::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -495,8 +495,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def delete_by_scope(scope, lock_name, custom_headers = nil) - response = delete_by_scope_async(scope, lock_name, custom_headers).value! + def delete_by_scope(scope, lock_name, custom_headers:nil) + response = delete_by_scope_async(scope, lock_name, custom_headers:custom_headers).value! nil end @@ -510,8 +510,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_by_scope_with_http_info(scope, lock_name, custom_headers = nil) - delete_by_scope_async(scope, lock_name, custom_headers).value! + def delete_by_scope_with_http_info(scope, lock_name, custom_headers:nil) + delete_by_scope_async(scope, lock_name, custom_headers:custom_headers).value! end # @@ -524,13 +524,14 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_by_scope_async(scope, lock_name, custom_headers = nil) + def delete_by_scope_async(scope, lock_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'lock_name is nil' if lock_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -575,8 +576,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [ManagementLockObject] operation results. # - def get_by_scope(scope, lock_name, custom_headers = nil) - response = get_by_scope_async(scope, lock_name, custom_headers).value! + def get_by_scope(scope, lock_name, custom_headers:nil) + response = get_by_scope_async(scope, lock_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -590,8 +591,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_scope_with_http_info(scope, lock_name, custom_headers = nil) - get_by_scope_async(scope, lock_name, custom_headers).value! + def get_by_scope_with_http_info(scope, lock_name, custom_headers:nil) + get_by_scope_async(scope, lock_name, custom_headers:custom_headers).value! end # @@ -604,13 +605,14 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_scope_async(scope, lock_name, custom_headers = nil) + def get_by_scope_async(scope, lock_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'lock_name is nil' if lock_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -682,8 +684,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [ManagementLockObject] operation results. # - def create_or_update_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers = nil) - response = create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers).value! + def create_or_update_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers:nil) + response = create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -714,8 +716,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers = nil) - create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers).value! + def create_or_update_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers:nil) + create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers:custom_headers).value! end # @@ -745,7 +747,7 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers = nil) + def create_or_update_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -761,7 +763,6 @@ module Azure::Locks::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -846,8 +847,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def delete_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil) - response = delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers).value! + def delete_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:nil) + response = delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:custom_headers).value! nil end @@ -873,8 +874,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil) - delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers).value! + def delete_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:nil) + delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:custom_headers).value! end # @@ -899,7 +900,7 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil) + def delete_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -914,6 +915,7 @@ module Azure::Locks::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -965,8 +967,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [ManagementLockObject] operation results. # - def get_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil) - response = get_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers).value! + def get_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:nil) + response = get_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -986,8 +988,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil) - get_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers).value! + def get_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:nil) + get_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:custom_headers).value! end # @@ -1006,7 +1008,7 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers = nil) + def get_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1021,6 +1023,7 @@ module Azure::Locks::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1084,8 +1087,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [ManagementLockObject] operation results. # - def create_or_update_at_subscription_level(lock_name, parameters, custom_headers = nil) - response = create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers).value! + def create_or_update_at_subscription_level(lock_name, parameters, custom_headers:nil) + response = create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1107,8 +1110,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_at_subscription_level_with_http_info(lock_name, parameters, custom_headers = nil) - create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers).value! + def create_or_update_at_subscription_level_with_http_info(lock_name, parameters, custom_headers:nil) + create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers:custom_headers).value! end # @@ -1129,7 +1132,7 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers = nil) + def create_or_update_at_subscription_level_async(lock_name, parameters, custom_headers:nil) fail ArgumentError, 'lock_name is nil' if lock_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1137,7 +1140,6 @@ module Azure::Locks::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1212,8 +1214,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def delete_at_subscription_level(lock_name, custom_headers = nil) - response = delete_at_subscription_level_async(lock_name, custom_headers).value! + def delete_at_subscription_level(lock_name, custom_headers:nil) + response = delete_at_subscription_level_async(lock_name, custom_headers:custom_headers).value! nil end @@ -1230,8 +1232,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_at_subscription_level_with_http_info(lock_name, custom_headers = nil) - delete_at_subscription_level_async(lock_name, custom_headers).value! + def delete_at_subscription_level_with_http_info(lock_name, custom_headers:nil) + delete_at_subscription_level_async(lock_name, custom_headers:custom_headers).value! end # @@ -1247,13 +1249,14 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_at_subscription_level_async(lock_name, custom_headers = nil) + def delete_at_subscription_level_async(lock_name, custom_headers:nil) fail ArgumentError, 'lock_name is nil' if lock_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1297,8 +1300,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [ManagementLockObject] operation results. # - def get_at_subscription_level(lock_name, custom_headers = nil) - response = get_at_subscription_level_async(lock_name, custom_headers).value! + def get_at_subscription_level(lock_name, custom_headers:nil) + response = get_at_subscription_level_async(lock_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1311,8 +1314,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_at_subscription_level_with_http_info(lock_name, custom_headers = nil) - get_at_subscription_level_async(lock_name, custom_headers).value! + def get_at_subscription_level_with_http_info(lock_name, custom_headers:nil) + get_at_subscription_level_async(lock_name, custom_headers:custom_headers).value! end # @@ -1324,13 +1327,14 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_at_subscription_level_async(lock_name, custom_headers = nil) + def get_at_subscription_level_async(lock_name, custom_headers:nil) fail ArgumentError, 'lock_name is nil' if lock_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1386,8 +1390,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_at_resource_group_level(resource_group_name, filter = nil, custom_headers = nil) - first_page = list_at_resource_group_level_as_lazy(resource_group_name, filter, custom_headers) + def list_at_resource_group_level(resource_group_name, filter:nil, custom_headers:nil) + first_page = list_at_resource_group_level_as_lazy(resource_group_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -1402,8 +1406,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_resource_group_level_with_http_info(resource_group_name, filter = nil, custom_headers = nil) - list_at_resource_group_level_async(resource_group_name, filter, custom_headers).value! + def list_at_resource_group_level_with_http_info(resource_group_name, filter:nil, custom_headers:nil) + list_at_resource_group_level_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -1417,7 +1421,7 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_resource_group_level_async(resource_group_name, filter = nil, custom_headers = nil) + def list_at_resource_group_level_async(resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1427,6 +1431,7 @@ module Azure::Locks::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1487,8 +1492,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - first_page = list_at_resource_level_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers) + def list_at_resource_level(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + first_page = list_at_resource_level_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -1508,8 +1513,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_at_resource_level_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! end # @@ -1528,7 +1533,7 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) + def list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1542,6 +1547,7 @@ module Azure::Locks::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1596,8 +1602,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_at_subscription_level(filter = nil, custom_headers = nil) - first_page = list_at_subscription_level_as_lazy(filter, custom_headers) + def list_at_subscription_level(filter:nil, custom_headers:nil) + first_page = list_at_subscription_level_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -1610,8 +1616,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_subscription_level_with_http_info(filter = nil, custom_headers = nil) - list_at_subscription_level_async(filter, custom_headers).value! + def list_at_subscription_level_with_http_info(filter:nil, custom_headers:nil) + list_at_subscription_level_async(filter:filter, custom_headers:custom_headers).value! end # @@ -1623,12 +1629,13 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_subscription_level_async(filter = nil, custom_headers = nil) + def list_at_subscription_level_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1683,8 +1690,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [ManagementLockListResult] operation results. # - def list_at_resource_group_level_next(next_page_link, custom_headers = nil) - response = list_at_resource_group_level_next_async(next_page_link, custom_headers).value! + def list_at_resource_group_level_next(next_page_link, custom_headers:nil) + response = list_at_resource_group_level_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1698,8 +1705,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_resource_group_level_next_with_http_info(next_page_link, custom_headers = nil) - list_at_resource_group_level_next_async(next_page_link, custom_headers).value! + def list_at_resource_group_level_next_with_http_info(next_page_link, custom_headers:nil) + list_at_resource_group_level_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1712,11 +1719,12 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_resource_group_level_next_async(next_page_link, custom_headers = nil) + def list_at_resource_group_level_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1770,8 +1778,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [ManagementLockListResult] operation results. # - def list_at_resource_level_next(next_page_link, custom_headers = nil) - response = list_at_resource_level_next_async(next_page_link, custom_headers).value! + def list_at_resource_level_next(next_page_link, custom_headers:nil) + response = list_at_resource_level_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1785,8 +1793,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_resource_level_next_with_http_info(next_page_link, custom_headers = nil) - list_at_resource_level_next_async(next_page_link, custom_headers).value! + def list_at_resource_level_next_with_http_info(next_page_link, custom_headers:nil) + list_at_resource_level_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1799,11 +1807,12 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_resource_level_next_async(next_page_link, custom_headers = nil) + def list_at_resource_level_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1857,8 +1866,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [ManagementLockListResult] operation results. # - def list_at_subscription_level_next(next_page_link, custom_headers = nil) - response = list_at_subscription_level_next_async(next_page_link, custom_headers).value! + def list_at_subscription_level_next(next_page_link, custom_headers:nil) + response = list_at_subscription_level_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1872,8 +1881,8 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_at_subscription_level_next_with_http_info(next_page_link, custom_headers = nil) - list_at_subscription_level_next_async(next_page_link, custom_headers).value! + def list_at_subscription_level_next_with_http_info(next_page_link, custom_headers:nil) + list_at_subscription_level_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1886,11 +1895,12 @@ module Azure::Locks::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_at_subscription_level_next_async(next_page_link, custom_headers = nil) + def list_at_subscription_level_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1946,12 +1956,12 @@ module Azure::Locks::Mgmt::V2016_09_01 # @return [ManagementLockListResult] which provide lazy access to pages of the # response. # - def list_at_resource_group_level_as_lazy(resource_group_name, filter = nil, custom_headers = nil) - response = list_at_resource_group_level_async(resource_group_name, filter, custom_headers).value! + def list_at_resource_group_level_as_lazy(resource_group_name, filter:nil, custom_headers:nil) + response = list_at_resource_group_level_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_at_resource_group_level_next_async(next_page_link, custom_headers) + list_at_resource_group_level_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1974,12 +1984,12 @@ module Azure::Locks::Mgmt::V2016_09_01 # @return [ManagementLockListResult] which provide lazy access to pages of the # response. # - def list_at_resource_level_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - response = list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_at_resource_level_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + response = list_at_resource_level_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_at_resource_level_next_async(next_page_link, custom_headers) + list_at_resource_level_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1995,12 +2005,12 @@ module Azure::Locks::Mgmt::V2016_09_01 # @return [ManagementLockListResult] which provide lazy access to pages of the # response. # - def list_at_subscription_level_as_lazy(filter = nil, custom_headers = nil) - response = list_at_subscription_level_async(filter, custom_headers).value! + def list_at_subscription_level_as_lazy(filter:nil, custom_headers:nil) + response = list_at_subscription_level_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_at_subscription_level_next_async(next_page_link, custom_headers) + list_at_subscription_level_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_locks/lib/profiles/latest/modules/locks_profile_module.rb b/management/azure_mgmt_locks/lib/profiles/latest/modules/locks_profile_module.rb index b1175185e..86bd34800 100644 --- a/management/azure_mgmt_locks/lib/profiles/latest/modules/locks_profile_module.rb +++ b/management/azure_mgmt_locks/lib/profiles/latest/modules/locks_profile_module.rb @@ -34,12 +34,12 @@ module Azure::Locks::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Locks::Mgmt::V2016_09_01::ManagementLockClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Locks::Mgmt::V2016_09_01::ManagementLockClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @management_locks = client_0.management_locks + add_telemetry(@client_0) + @management_locks = @client_0.management_locks @model_classes = ModelClasses.new end @@ -49,6 +49,14 @@ module Azure::Locks::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_locks/lib/profiles/v2017_03_09/modules/locks_profile_module.rb b/management/azure_mgmt_locks/lib/profiles/v2017_03_09/modules/locks_profile_module.rb index 83c7038c7..ccdcd6b35 100644 --- a/management/azure_mgmt_locks/lib/profiles/v2017_03_09/modules/locks_profile_module.rb +++ b/management/azure_mgmt_locks/lib/profiles/v2017_03_09/modules/locks_profile_module.rb @@ -33,12 +33,12 @@ module Azure::Locks::Profiles::V2017_03_09 @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Locks::Mgmt::V2015_01_01::ManagementLockClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Locks::Mgmt::V2015_01_01::ManagementLockClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @management_locks = client_0.management_locks + add_telemetry(@client_0) + @management_locks = @client_0.management_locks @model_classes = ModelClasses.new end @@ -48,6 +48,14 @@ module Azure::Locks::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_access_keys.rb b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_access_keys.rb index b60a8c494..09b9e24ed 100644 --- a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_access_keys.rb +++ b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_access_keys.rb @@ -32,8 +32,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Array] operation results. # - def list(resource_group_name, workflow_name, top = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, workflow_name, top, custom_headers) + def list(resource_group_name, workflow_name, top:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, workflow_name, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, workflow_name, top = nil, custom_headers = nil) - list_async(resource_group_name, workflow_name, top, custom_headers).value! + def list_with_http_info(resource_group_name, workflow_name, top:nil, custom_headers:nil) + list_async(resource_group_name, workflow_name, top:top, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, workflow_name, top = nil, custom_headers = nil) + def list_async(resource_group_name, workflow_name, top:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -71,6 +71,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowAccessKey] operation results. # - def get(resource_group_name, workflow_name, access_key_name, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, access_key_name, custom_headers).value! + def get(resource_group_name, workflow_name, access_key_name, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, access_key_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -142,8 +143,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, access_key_name, custom_headers = nil) - get_async(resource_group_name, workflow_name, access_key_name, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, access_key_name, custom_headers:nil) + get_async(resource_group_name, workflow_name, access_key_name, custom_headers:custom_headers).value! end # @@ -157,7 +158,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, access_key_name, custom_headers = nil) + def get_async(resource_group_name, workflow_name, access_key_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -166,6 +167,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +224,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowAccessKey] operation results. # - def create_or_update(resource_group_name, workflow_name, access_key_name, workflow_accesskey, custom_headers = nil) - response = create_or_update_async(resource_group_name, workflow_name, access_key_name, workflow_accesskey, custom_headers).value! + def create_or_update(resource_group_name, workflow_name, access_key_name, workflow_accesskey, custom_headers:nil) + response = create_or_update_async(resource_group_name, workflow_name, access_key_name, workflow_accesskey, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -239,8 +241,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, workflow_name, access_key_name, workflow_accesskey, custom_headers = nil) - create_or_update_async(resource_group_name, workflow_name, access_key_name, workflow_accesskey, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, workflow_name, access_key_name, workflow_accesskey, custom_headers:nil) + create_or_update_async(resource_group_name, workflow_name, access_key_name, workflow_accesskey, custom_headers:custom_headers).value! end # @@ -255,7 +257,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, workflow_name, access_key_name, workflow_accesskey, custom_headers = nil) + def create_or_update_async(resource_group_name, workflow_name, access_key_name, workflow_accesskey, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -265,7 +267,6 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -338,8 +339,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # will be added to the HTTP request. # # - def delete(resource_group_name, workflow_name, access_key_name, custom_headers = nil) - response = delete_async(resource_group_name, workflow_name, access_key_name, custom_headers).value! + def delete(resource_group_name, workflow_name, access_key_name, custom_headers:nil) + response = delete_async(resource_group_name, workflow_name, access_key_name, custom_headers:custom_headers).value! nil end @@ -354,8 +355,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, workflow_name, access_key_name, custom_headers = nil) - delete_async(resource_group_name, workflow_name, access_key_name, custom_headers).value! + def delete_with_http_info(resource_group_name, workflow_name, access_key_name, custom_headers:nil) + delete_async(resource_group_name, workflow_name, access_key_name, custom_headers:custom_headers).value! end # @@ -369,7 +370,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, workflow_name, access_key_name, custom_headers = nil) + def delete_async(resource_group_name, workflow_name, access_key_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -378,6 +379,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -423,8 +425,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowSecretKeys] operation results. # - def list_secret_keys(resource_group_name, workflow_name, access_key_name, custom_headers = nil) - response = list_secret_keys_async(resource_group_name, workflow_name, access_key_name, custom_headers).value! + def list_secret_keys(resource_group_name, workflow_name, access_key_name, custom_headers:nil) + response = list_secret_keys_async(resource_group_name, workflow_name, access_key_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -439,8 +441,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_secret_keys_with_http_info(resource_group_name, workflow_name, access_key_name, custom_headers = nil) - list_secret_keys_async(resource_group_name, workflow_name, access_key_name, custom_headers).value! + def list_secret_keys_with_http_info(resource_group_name, workflow_name, access_key_name, custom_headers:nil) + list_secret_keys_async(resource_group_name, workflow_name, access_key_name, custom_headers:custom_headers).value! end # @@ -454,7 +456,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_secret_keys_async(resource_group_name, workflow_name, access_key_name, custom_headers = nil) + def list_secret_keys_async(resource_group_name, workflow_name, access_key_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -463,6 +465,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -519,8 +522,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowSecretKeys] operation results. # - def regenerate_secret_key(resource_group_name, workflow_name, access_key_name, parameters, custom_headers = nil) - response = regenerate_secret_key_async(resource_group_name, workflow_name, access_key_name, parameters, custom_headers).value! + def regenerate_secret_key(resource_group_name, workflow_name, access_key_name, parameters, custom_headers:nil) + response = regenerate_secret_key_async(resource_group_name, workflow_name, access_key_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -536,8 +539,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_secret_key_with_http_info(resource_group_name, workflow_name, access_key_name, parameters, custom_headers = nil) - regenerate_secret_key_async(resource_group_name, workflow_name, access_key_name, parameters, custom_headers).value! + def regenerate_secret_key_with_http_info(resource_group_name, workflow_name, access_key_name, parameters, custom_headers:nil) + regenerate_secret_key_async(resource_group_name, workflow_name, access_key_name, parameters, custom_headers:custom_headers).value! end # @@ -552,7 +555,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_secret_key_async(resource_group_name, workflow_name, access_key_name, parameters, custom_headers = nil) + def regenerate_secret_key_async(resource_group_name, workflow_name, access_key_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -562,7 +565,6 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -625,8 +627,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowAccessKeyListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -640,8 +642,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -654,11 +656,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -714,12 +717,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # @return [WorkflowAccessKeyListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, workflow_name, top = nil, custom_headers = nil) - response = list_async(resource_group_name, workflow_name, top, custom_headers).value! + def list_as_lazy(resource_group_name, workflow_name, top:nil, custom_headers:nil) + response = list_async(resource_group_name, workflow_name, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_run_actions.rb b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_run_actions.rb index 1090bf863..959091443 100644 --- a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_run_actions.rb +++ b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_run_actions.rb @@ -34,8 +34,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Array] operation results. # - def list(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, workflow_name, run_name, top, filter, custom_headers) + def list(resource_group_name, workflow_name, run_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, workflow_name, run_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil) - list_async(resource_group_name, workflow_name, run_name, top, filter, custom_headers).value! + def list_with_http_info(resource_group_name, workflow_name, run_name, top:nil, filter:nil, custom_headers:nil) + list_async(resource_group_name, workflow_name, run_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil) + def list_async(resource_group_name, workflow_name, run_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -78,6 +78,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowRunAction] operation results. # - def get(resource_group_name, workflow_name, run_name, action_name, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers).value! + def get(resource_group_name, workflow_name, run_name, action_name, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, run_name, action_name, custom_headers = nil) - get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, run_name, action_name, custom_headers:nil) + get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers:custom_headers).value! end # @@ -167,7 +168,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers = nil) + def get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -177,6 +178,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -231,8 +233,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowRunActionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -246,8 +248,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -260,11 +262,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -322,12 +325,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # @return [WorkflowRunActionListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil) - response = list_async(resource_group_name, workflow_name, run_name, top, filter, custom_headers).value! + def list_as_lazy(resource_group_name, workflow_name, run_name, top:nil, filter:nil, custom_headers:nil) + response = list_async(resource_group_name, workflow_name, run_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_runs.rb b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_runs.rb index 62df687fa..86bd6ead3 100644 --- a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_runs.rb +++ b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_runs.rb @@ -33,8 +33,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Array] operation results. # - def list(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, workflow_name, top, filter, custom_headers) + def list(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - list_async(resource_group_name, workflow_name, top, filter, custom_headers).value! + def list_with_http_info(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + list_async(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) + def list_async(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -74,6 +74,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +130,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowRun] operation results. # - def get(resource_group_name, workflow_name, run_name, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, run_name, custom_headers).value! + def get(resource_group_name, workflow_name, run_name, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, run_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, run_name, custom_headers = nil) - get_async(resource_group_name, workflow_name, run_name, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, run_name, custom_headers:nil) + get_async(resource_group_name, workflow_name, run_name, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, run_name, custom_headers = nil) + def get_async(resource_group_name, workflow_name, run_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -169,6 +170,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -223,8 +225,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # will be added to the HTTP request. # # - def cancel(resource_group_name, workflow_name, run_name, custom_headers = nil) - response = cancel_async(resource_group_name, workflow_name, run_name, custom_headers).value! + def cancel(resource_group_name, workflow_name, run_name, custom_headers:nil) + response = cancel_async(resource_group_name, workflow_name, run_name, custom_headers:custom_headers).value! nil end @@ -239,8 +241,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def cancel_with_http_info(resource_group_name, workflow_name, run_name, custom_headers = nil) - cancel_async(resource_group_name, workflow_name, run_name, custom_headers).value! + def cancel_with_http_info(resource_group_name, workflow_name, run_name, custom_headers:nil) + cancel_async(resource_group_name, workflow_name, run_name, custom_headers:custom_headers).value! end # @@ -254,7 +256,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def cancel_async(resource_group_name, workflow_name, run_name, custom_headers = nil) + def cancel_async(resource_group_name, workflow_name, run_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -263,6 +265,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +310,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowRunListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -322,8 +325,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -336,11 +339,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -397,12 +401,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # @return [WorkflowRunListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - response = list_async(resource_group_name, workflow_name, top, filter, custom_headers).value! + def list_as_lazy(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + response = list_async(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_trigger_histories.rb b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_trigger_histories.rb index 0318d7bf5..502b07632 100644 --- a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_trigger_histories.rb +++ b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_trigger_histories.rb @@ -34,8 +34,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Array] operation results. # - def list(resource_group_name, workflow_name, trigger_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, workflow_name, trigger_name, top, filter, custom_headers) + def list(resource_group_name, workflow_name, trigger_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, workflow_name, trigger_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, workflow_name, trigger_name, top = nil, filter = nil, custom_headers = nil) - list_async(resource_group_name, workflow_name, trigger_name, top, filter, custom_headers).value! + def list_with_http_info(resource_group_name, workflow_name, trigger_name, top:nil, filter:nil, custom_headers:nil) + list_async(resource_group_name, workflow_name, trigger_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, workflow_name, trigger_name, top = nil, filter = nil, custom_headers = nil) + def list_async(resource_group_name, workflow_name, trigger_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -78,6 +78,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowTriggerHistory] operation results. # - def get(resource_group_name, workflow_name, trigger_name, history_name, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers).value! + def get(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, trigger_name, history_name, custom_headers = nil) - get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:nil) + get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:custom_headers).value! end # @@ -167,7 +168,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers = nil) + def get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -177,6 +178,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -231,8 +233,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowTriggerHistoryListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -246,8 +248,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -260,11 +262,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -322,12 +325,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # @return [WorkflowTriggerHistoryListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, workflow_name, trigger_name, top = nil, filter = nil, custom_headers = nil) - response = list_async(resource_group_name, workflow_name, trigger_name, top, filter, custom_headers).value! + def list_as_lazy(resource_group_name, workflow_name, trigger_name, top:nil, filter:nil, custom_headers:nil) + response = list_async(resource_group_name, workflow_name, trigger_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_triggers.rb b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_triggers.rb index 10f0a6a2c..d70fe2ac2 100644 --- a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_triggers.rb +++ b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_triggers.rb @@ -33,8 +33,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Array] operation results. # - def list(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, workflow_name, top, filter, custom_headers) + def list(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - list_async(resource_group_name, workflow_name, top, filter, custom_headers).value! + def list_with_http_info(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + list_async(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) + def list_async(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -74,6 +74,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +130,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowTrigger] operation results. # - def get(resource_group_name, workflow_name, trigger_name, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, trigger_name, custom_headers).value! + def get(resource_group_name, workflow_name, trigger_name, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers = nil) - get_async(resource_group_name, workflow_name, trigger_name, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers:nil) + get_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, trigger_name, custom_headers = nil) + def get_async(resource_group_name, workflow_name, trigger_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -169,6 +170,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -223,8 +225,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # will be added to the HTTP request. # # - def run(resource_group_name, workflow_name, trigger_name, custom_headers = nil) - response = run_async(resource_group_name, workflow_name, trigger_name, custom_headers).value! + def run(resource_group_name, workflow_name, trigger_name, custom_headers:nil) + response = run_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! nil end @@ -239,8 +241,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def run_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers = nil) - run_async(resource_group_name, workflow_name, trigger_name, custom_headers).value! + def run_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers:nil) + run_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! end # @@ -254,7 +256,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def run_async(resource_group_name, workflow_name, trigger_name, custom_headers = nil) + def run_async(resource_group_name, workflow_name, trigger_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -263,6 +265,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +310,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowTriggerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -322,8 +325,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -336,11 +339,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -397,12 +401,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # @return [WorkflowTriggerListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - response = list_async(resource_group_name, workflow_name, top, filter, custom_headers).value! + def list_as_lazy(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + response = list_async(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_versions.rb b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_versions.rb index fad217093..3e6689041 100644 --- a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_versions.rb +++ b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_versions.rb @@ -32,8 +32,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowVersion] operation results. # - def get(resource_group_name, workflow_name, version_id, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, version_id, custom_headers).value! + def get(resource_group_name, workflow_name, version_id, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, version_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, version_id, custom_headers = nil) - get_async(resource_group_name, workflow_name, version_id, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, version_id, custom_headers:nil) + get_async(resource_group_name, workflow_name, version_id, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, version_id, custom_headers = nil) + def get_async(resource_group_name, workflow_name, version_id, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -72,6 +72,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb index a1e31d274..84c8b0d2f 100644 --- a/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb +++ b/management/azure_mgmt_logic/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb @@ -31,8 +31,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Array] operation results. # - def list_by_subscription(top = nil, filter = nil, custom_headers = nil) - first_page = list_by_subscription_as_lazy(top, filter, custom_headers) + def list_by_subscription(top:nil, filter:nil, custom_headers:nil) + first_page = list_by_subscription_as_lazy(top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(top = nil, filter = nil, custom_headers = nil) - list_by_subscription_async(top, filter, custom_headers).value! + def list_by_subscription_with_http_info(top:nil, filter:nil, custom_headers:nil) + list_by_subscription_async(top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -60,12 +60,13 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(top = nil, filter = nil, custom_headers = nil) + def list_by_subscription_async(top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -121,8 +122,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, top, filter, custom_headers) + def list_by_resource_group(resource_group_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -137,8 +138,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, top = nil, filter = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, top, filter, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, top:nil, filter:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -152,13 +153,14 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, top = nil, filter = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -213,8 +215,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Workflow] operation results. # - def get(resource_group_name, workflow_name, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, custom_headers).value! + def get(resource_group_name, workflow_name, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -228,8 +230,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, custom_headers = nil) - get_async(resource_group_name, workflow_name, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, custom_headers:nil) + get_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end # @@ -242,7 +244,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, custom_headers = nil) + def get_async(resource_group_name, workflow_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -250,6 +252,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +308,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Workflow] operation results. # - def create_or_update(resource_group_name, workflow_name, workflow, custom_headers = nil) - response = create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers).value! + def create_or_update(resource_group_name, workflow_name, workflow, custom_headers:nil) + response = create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,8 +324,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers = nil) - create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers:nil) + create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! end # @@ -336,7 +339,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers = nil) + def create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -345,7 +348,6 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -419,8 +421,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Workflow] operation results. # - def update(resource_group_name, workflow_name, workflow, custom_headers = nil) - response = update_async(resource_group_name, workflow_name, workflow, custom_headers).value! + def update(resource_group_name, workflow_name, workflow, custom_headers:nil) + response = update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -435,8 +437,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers = nil) - update_async(resource_group_name, workflow_name, workflow, custom_headers).value! + def update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers:nil) + update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! end # @@ -450,7 +452,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, workflow_name, workflow, custom_headers = nil) + def update_async(resource_group_name, workflow_name, workflow, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -459,7 +461,6 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -521,8 +522,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # will be added to the HTTP request. # # - def delete(resource_group_name, workflow_name, custom_headers = nil) - response = delete_async(resource_group_name, workflow_name, custom_headers).value! + def delete(resource_group_name, workflow_name, custom_headers:nil) + response = delete_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! nil end @@ -536,8 +537,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, workflow_name, custom_headers = nil) - delete_async(resource_group_name, workflow_name, custom_headers).value! + def delete_with_http_info(resource_group_name, workflow_name, custom_headers:nil) + delete_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end # @@ -550,7 +551,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, workflow_name, custom_headers = nil) + def delete_async(resource_group_name, workflow_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -558,6 +559,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -603,8 +605,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowRun] operation results. # - def run(resource_group_name, workflow_name, parameters, custom_headers = nil) - response = run_async(resource_group_name, workflow_name, parameters, custom_headers).value! + def run(resource_group_name, workflow_name, parameters, custom_headers:nil) + response = run_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -618,9 +620,9 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def run_async(resource_group_name, workflow_name, parameters, custom_headers = nil) + def run_async(resource_group_name, workflow_name, parameters, custom_headers:nil) # Send request - promise = begin_run_async(resource_group_name, workflow_name, parameters, custom_headers) + promise = begin_run_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -645,8 +647,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # will be added to the HTTP request. # # - def disable(resource_group_name, workflow_name, custom_headers = nil) - response = disable_async(resource_group_name, workflow_name, custom_headers).value! + def disable(resource_group_name, workflow_name, custom_headers:nil) + response = disable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! nil end @@ -660,8 +662,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def disable_with_http_info(resource_group_name, workflow_name, custom_headers = nil) - disable_async(resource_group_name, workflow_name, custom_headers).value! + def disable_with_http_info(resource_group_name, workflow_name, custom_headers:nil) + disable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end # @@ -674,7 +676,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def disable_async(resource_group_name, workflow_name, custom_headers = nil) + def disable_async(resource_group_name, workflow_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -682,6 +684,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -725,8 +728,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # will be added to the HTTP request. # # - def enable(resource_group_name, workflow_name, custom_headers = nil) - response = enable_async(resource_group_name, workflow_name, custom_headers).value! + def enable(resource_group_name, workflow_name, custom_headers:nil) + response = enable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! nil end @@ -740,8 +743,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def enable_with_http_info(resource_group_name, workflow_name, custom_headers = nil) - enable_async(resource_group_name, workflow_name, custom_headers).value! + def enable_with_http_info(resource_group_name, workflow_name, custom_headers:nil) + enable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end # @@ -754,7 +757,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def enable_async(resource_group_name, workflow_name, custom_headers = nil) + def enable_async(resource_group_name, workflow_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -762,6 +765,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -806,8 +810,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # will be added to the HTTP request. # # - def validate(resource_group_name, workflow_name, workflow, custom_headers = nil) - response = validate_async(resource_group_name, workflow_name, workflow, custom_headers).value! + def validate(resource_group_name, workflow_name, workflow, custom_headers:nil) + response = validate_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! nil end @@ -822,8 +826,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_with_http_info(resource_group_name, workflow_name, workflow, custom_headers = nil) - validate_async(resource_group_name, workflow_name, workflow, custom_headers).value! + def validate_with_http_info(resource_group_name, workflow_name, workflow, custom_headers:nil) + validate_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! end # @@ -837,7 +841,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_async(resource_group_name, workflow_name, workflow, custom_headers = nil) + def validate_async(resource_group_name, workflow_name, workflow, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -846,7 +850,6 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -900,8 +903,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowRun] operation results. # - def begin_run(resource_group_name, workflow_name, parameters, custom_headers = nil) - response = begin_run_async(resource_group_name, workflow_name, parameters, custom_headers).value! + def begin_run(resource_group_name, workflow_name, parameters, custom_headers:nil) + response = begin_run_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -916,8 +919,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_run_with_http_info(resource_group_name, workflow_name, parameters, custom_headers = nil) - begin_run_async(resource_group_name, workflow_name, parameters, custom_headers).value! + def begin_run_with_http_info(resource_group_name, workflow_name, parameters, custom_headers:nil) + begin_run_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers).value! end # @@ -931,7 +934,7 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_run_async(resource_group_name, workflow_name, parameters, custom_headers = nil) + def begin_run_async(resource_group_name, workflow_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -940,7 +943,6 @@ module Azure::Logic::Mgmt::V2015_02_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1003,8 +1005,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowListResult] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1018,8 +1020,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1032,11 +1034,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1090,8 +1093,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [WorkflowListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1105,8 +1108,8 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1119,11 +1122,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1178,12 +1182,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # @return [WorkflowListResult] which provide lazy access to pages of the # response. # - def list_by_subscription_as_lazy(top = nil, filter = nil, custom_headers = nil) - response = list_by_subscription_async(top, filter, custom_headers).value! + def list_by_subscription_as_lazy(top:nil, filter:nil, custom_headers:nil) + response = list_by_subscription_async(top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1201,12 +1205,12 @@ module Azure::Logic::Mgmt::V2015_02_01_preview # @return [WorkflowListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, top = nil, filter = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, top, filter, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, top:nil, filter:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/agreements.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/agreements.rb index c442ccea1..06bc60b2c 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/agreements.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/agreements.rb @@ -33,8 +33,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_by_integration_accounts(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top, filter, custom_headers) + def list_by_integration_accounts(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value! + def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_async(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) + def list_by_integration_accounts_async(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -74,6 +74,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +130,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountAgreement] operation results. # - def get(resource_group_name, integration_account_name, agreement_name, custom_headers = nil) - response = get_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value! + def get(resource_group_name, integration_account_name, agreement_name, custom_headers:nil) + response = get_async(resource_group_name, integration_account_name, agreement_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, integration_account_name, agreement_name, custom_headers = nil) - get_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value! + def get_with_http_info(resource_group_name, integration_account_name, agreement_name, custom_headers:nil) + get_async(resource_group_name, integration_account_name, agreement_name, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, integration_account_name, agreement_name, custom_headers = nil) + def get_async(resource_group_name, integration_account_name, agreement_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -169,6 +170,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -226,8 +228,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountAgreement] operation results. # - def create_or_update(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers = nil) - response = create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers).value! + def create_or_update(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers:nil) + response = create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -244,8 +246,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers = nil) - create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers:nil) + create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers:custom_headers).value! end # @@ -261,7 +263,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers = nil) + def create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -271,7 +273,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -344,8 +345,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, integration_account_name, agreement_name, custom_headers = nil) - response = delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value! + def delete(resource_group_name, integration_account_name, agreement_name, custom_headers:nil) + response = delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers:custom_headers).value! nil end @@ -360,8 +361,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, integration_account_name, agreement_name, custom_headers = nil) - delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value! + def delete_with_http_info(resource_group_name, integration_account_name, agreement_name, custom_headers:nil) + delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers:custom_headers).value! end # @@ -375,7 +376,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers = nil) + def delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -384,6 +385,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -428,8 +430,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountAgreementListResult] operation results. # - def list_by_integration_accounts_next(next_page_link, custom_headers = nil) - response = list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next(next_page_link, custom_headers:nil) + response = list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -443,8 +445,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers = nil) - list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers:nil) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -457,11 +459,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_next_async(next_page_link, custom_headers = nil) + def list_by_integration_accounts_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -518,12 +521,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [IntegrationAccountAgreementListResult] which provide lazy access to # pages of the response. # - def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value! + def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_integration_accounts_next_async(next_page_link, custom_headers) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/certificates.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/certificates.rb index a8182e040..d50499175 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/certificates.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/certificates.rb @@ -32,8 +32,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_by_integration_accounts(resource_group_name, integration_account_name, top = nil, custom_headers = nil) - first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top, custom_headers) + def list_by_integration_accounts(resource_group_name, integration_account_name, top:nil, custom_headers:nil) + first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top = nil, custom_headers = nil) - list_by_integration_accounts_async(resource_group_name, integration_account_name, top, custom_headers).value! + def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top:nil, custom_headers:nil) + list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_async(resource_group_name, integration_account_name, top = nil, custom_headers = nil) + def list_by_integration_accounts_async(resource_group_name, integration_account_name, top:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -71,6 +71,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountCertificate] operation results. # - def get(resource_group_name, integration_account_name, certificate_name, custom_headers = nil) - response = get_async(resource_group_name, integration_account_name, certificate_name, custom_headers).value! + def get(resource_group_name, integration_account_name, certificate_name, custom_headers:nil) + response = get_async(resource_group_name, integration_account_name, certificate_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -142,8 +143,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, integration_account_name, certificate_name, custom_headers = nil) - get_async(resource_group_name, integration_account_name, certificate_name, custom_headers).value! + def get_with_http_info(resource_group_name, integration_account_name, certificate_name, custom_headers:nil) + get_async(resource_group_name, integration_account_name, certificate_name, custom_headers:custom_headers).value! end # @@ -157,7 +158,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, integration_account_name, certificate_name, custom_headers = nil) + def get_async(resource_group_name, integration_account_name, certificate_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -166,6 +167,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -223,8 +225,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountCertificate] operation results. # - def create_or_update(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers = nil) - response = create_or_update_async(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers).value! + def create_or_update(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers:nil) + response = create_or_update_async(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -241,8 +243,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers = nil) - create_or_update_async(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers:nil) + create_or_update_async(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers:custom_headers).value! end # @@ -258,7 +260,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers = nil) + def create_or_update_async(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -268,7 +270,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -341,8 +342,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, integration_account_name, certificate_name, custom_headers = nil) - response = delete_async(resource_group_name, integration_account_name, certificate_name, custom_headers).value! + def delete(resource_group_name, integration_account_name, certificate_name, custom_headers:nil) + response = delete_async(resource_group_name, integration_account_name, certificate_name, custom_headers:custom_headers).value! nil end @@ -357,8 +358,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, integration_account_name, certificate_name, custom_headers = nil) - delete_async(resource_group_name, integration_account_name, certificate_name, custom_headers).value! + def delete_with_http_info(resource_group_name, integration_account_name, certificate_name, custom_headers:nil) + delete_async(resource_group_name, integration_account_name, certificate_name, custom_headers:custom_headers).value! end # @@ -372,7 +373,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, integration_account_name, certificate_name, custom_headers = nil) + def delete_async(resource_group_name, integration_account_name, certificate_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -381,6 +382,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -425,8 +427,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountCertificateListResult] operation results. # - def list_by_integration_accounts_next(next_page_link, custom_headers = nil) - response = list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next(next_page_link, custom_headers:nil) + response = list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -440,8 +442,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers = nil) - list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers:nil) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -454,11 +456,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_next_async(next_page_link, custom_headers = nil) + def list_by_integration_accounts_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -514,12 +517,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [IntegrationAccountCertificateListResult] which provide lazy access # to pages of the response. # - def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top = nil, custom_headers = nil) - response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top, custom_headers).value! + def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:nil, custom_headers:nil) + response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_integration_accounts_next_async(next_page_link, custom_headers) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/integration_accounts.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/integration_accounts.rb index 4e8099490..f58ea4a86 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/integration_accounts.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/integration_accounts.rb @@ -30,8 +30,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_by_subscription(top = nil, custom_headers = nil) - first_page = list_by_subscription_as_lazy(top, custom_headers) + def list_by_subscription(top:nil, custom_headers:nil) + first_page = list_by_subscription_as_lazy(top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(top = nil, custom_headers = nil) - list_by_subscription_async(top, custom_headers).value! + def list_by_subscription_with_http_info(top:nil, custom_headers:nil) + list_by_subscription_async(top:top, custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(top = nil, custom_headers = nil) + def list_by_subscription_async(top:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, top = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, top, custom_headers) + def list_by_resource_group(resource_group_name, top:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -132,8 +133,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, top = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, top, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, top:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value! end # @@ -146,13 +147,14 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, top = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, top:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -207,8 +209,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccount] operation results. # - def get(resource_group_name, integration_account_name, custom_headers = nil) - response = get_async(resource_group_name, integration_account_name, custom_headers).value! + def get(resource_group_name, integration_account_name, custom_headers:nil) + response = get_async(resource_group_name, integration_account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -222,8 +224,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, integration_account_name, custom_headers = nil) - get_async(resource_group_name, integration_account_name, custom_headers).value! + def get_with_http_info(resource_group_name, integration_account_name, custom_headers:nil) + get_async(resource_group_name, integration_account_name, custom_headers:custom_headers).value! end # @@ -236,7 +238,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, integration_account_name, custom_headers = nil) + def get_async(resource_group_name, integration_account_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -244,6 +246,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -299,8 +302,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccount] operation results. # - def create_or_update(resource_group_name, integration_account_name, integration_account, custom_headers = nil) - response = create_or_update_async(resource_group_name, integration_account_name, integration_account, custom_headers).value! + def create_or_update(resource_group_name, integration_account_name, integration_account, custom_headers:nil) + response = create_or_update_async(resource_group_name, integration_account_name, integration_account, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -315,8 +318,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, integration_account_name, integration_account, custom_headers = nil) - create_or_update_async(resource_group_name, integration_account_name, integration_account, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, integration_account_name, integration_account, custom_headers:nil) + create_or_update_async(resource_group_name, integration_account_name, integration_account, custom_headers:custom_headers).value! end # @@ -330,7 +333,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, integration_account_name, integration_account, custom_headers = nil) + def create_or_update_async(resource_group_name, integration_account_name, integration_account, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -339,7 +342,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -413,8 +415,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccount] operation results. # - def update(resource_group_name, integration_account_name, integration_account, custom_headers = nil) - response = update_async(resource_group_name, integration_account_name, integration_account, custom_headers).value! + def update(resource_group_name, integration_account_name, integration_account, custom_headers:nil) + response = update_async(resource_group_name, integration_account_name, integration_account, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -429,8 +431,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, integration_account_name, integration_account, custom_headers = nil) - update_async(resource_group_name, integration_account_name, integration_account, custom_headers).value! + def update_with_http_info(resource_group_name, integration_account_name, integration_account, custom_headers:nil) + update_async(resource_group_name, integration_account_name, integration_account, custom_headers:custom_headers).value! end # @@ -444,7 +446,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, integration_account_name, integration_account, custom_headers = nil) + def update_async(resource_group_name, integration_account_name, integration_account, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -453,7 +455,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -515,8 +516,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, integration_account_name, custom_headers = nil) - response = delete_async(resource_group_name, integration_account_name, custom_headers).value! + def delete(resource_group_name, integration_account_name, custom_headers:nil) + response = delete_async(resource_group_name, integration_account_name, custom_headers:custom_headers).value! nil end @@ -530,8 +531,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, integration_account_name, custom_headers = nil) - delete_async(resource_group_name, integration_account_name, custom_headers).value! + def delete_with_http_info(resource_group_name, integration_account_name, custom_headers:nil) + delete_async(resource_group_name, integration_account_name, custom_headers:custom_headers).value! end # @@ -544,7 +545,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, integration_account_name, custom_headers = nil) + def delete_async(resource_group_name, integration_account_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -552,6 +553,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -597,8 +599,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [CallbackUrl] operation results. # - def get_callback_url(resource_group_name, integration_account_name, parameters, custom_headers = nil) - response = get_callback_url_async(resource_group_name, integration_account_name, parameters, custom_headers).value! + def get_callback_url(resource_group_name, integration_account_name, parameters, custom_headers:nil) + response = get_callback_url_async(resource_group_name, integration_account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -613,8 +615,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_callback_url_with_http_info(resource_group_name, integration_account_name, parameters, custom_headers = nil) - get_callback_url_async(resource_group_name, integration_account_name, parameters, custom_headers).value! + def get_callback_url_with_http_info(resource_group_name, integration_account_name, parameters, custom_headers:nil) + get_callback_url_async(resource_group_name, integration_account_name, parameters, custom_headers:custom_headers).value! end # @@ -628,7 +630,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_callback_url_async(resource_group_name, integration_account_name, parameters, custom_headers = nil) + def get_callback_url_async(resource_group_name, integration_account_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -637,7 +639,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -700,8 +701,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountListResult] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -715,8 +716,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -729,11 +730,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -787,8 +789,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -802,8 +804,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -816,11 +818,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -874,12 +877,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [IntegrationAccountListResult] which provide lazy access to pages of # the response. # - def list_by_subscription_as_lazy(top = nil, custom_headers = nil) - response = list_by_subscription_async(top, custom_headers).value! + def list_by_subscription_as_lazy(top:nil, custom_headers:nil) + response = list_by_subscription_async(top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -896,12 +899,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [IntegrationAccountListResult] which provide lazy access to pages of # the response. # - def list_by_resource_group_as_lazy(resource_group_name, top = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, top, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, top:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/logic_management_client.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/logic_management_client.rb index 44cb16f40..3d6519960 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/logic_management_client.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/logic_management_client.rb @@ -172,8 +172,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_operations(custom_headers = nil) - first_page = list_operations_as_lazy(custom_headers) + def list_operations(custom_headers:nil) + first_page = list_operations_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -185,8 +185,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_with_http_info(custom_headers = nil) - list_operations_async(custom_headers).value! + def list_operations_with_http_info(custom_headers:nil) + list_operations_async(custom_headers:custom_headers).value! end # @@ -197,11 +197,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_async(custom_headers = nil) + def list_operations_async(custom_headers:nil) fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -255,8 +256,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [OperationListResult] operation results. # - def list_operations_next(next_page_link, custom_headers = nil) - response = list_operations_next_async(next_page_link, custom_headers).value! + def list_operations_next(next_page_link, custom_headers:nil) + response = list_operations_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -270,8 +271,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_next_with_http_info(next_page_link, custom_headers = nil) - list_operations_next_async(next_page_link, custom_headers).value! + def list_operations_next_with_http_info(next_page_link, custom_headers:nil) + list_operations_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -284,11 +285,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_next_async(next_page_link, custom_headers = nil) + def list_operations_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -340,8 +342,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [OperationListResult] operation results. # - def list_operations_as_lazy(custom_headers = nil) - first_page = list_operations_as_lazy_as_lazy(custom_headers) + def list_operations_as_lazy(custom_headers:nil) + first_page = list_operations_as_lazy_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -353,8 +355,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_as_lazy_with_http_info(custom_headers = nil) - list_operations_as_lazy_async(custom_headers).value! + def list_operations_as_lazy_with_http_info(custom_headers:nil) + list_operations_as_lazy_async(custom_headers:custom_headers).value! end # @@ -365,10 +367,11 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_as_lazy_async(custom_headers = nil) + def list_operations_as_lazy_async(custom_headers:nil) request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' path_template = 'providers/Microsoft.Logic/operations' request_url = @base_url || self.base_url diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/maps.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/maps.rb index 044dc6545..d679a791b 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/maps.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/maps.rb @@ -33,8 +33,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_by_integration_accounts(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top, filter, custom_headers) + def list_by_integration_accounts(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value! + def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_async(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) + def list_by_integration_accounts_async(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -74,6 +74,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +130,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountMap] operation results. # - def get(resource_group_name, integration_account_name, map_name, custom_headers = nil) - response = get_async(resource_group_name, integration_account_name, map_name, custom_headers).value! + def get(resource_group_name, integration_account_name, map_name, custom_headers:nil) + response = get_async(resource_group_name, integration_account_name, map_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, integration_account_name, map_name, custom_headers = nil) - get_async(resource_group_name, integration_account_name, map_name, custom_headers).value! + def get_with_http_info(resource_group_name, integration_account_name, map_name, custom_headers:nil) + get_async(resource_group_name, integration_account_name, map_name, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, integration_account_name, map_name, custom_headers = nil) + def get_async(resource_group_name, integration_account_name, map_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -169,6 +170,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -225,8 +227,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountMap] operation results. # - def create_or_update(resource_group_name, integration_account_name, map_name, map, custom_headers = nil) - response = create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers).value! + def create_or_update(resource_group_name, integration_account_name, map_name, map, custom_headers:nil) + response = create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -242,8 +244,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, integration_account_name, map_name, map, custom_headers = nil) - create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, integration_account_name, map_name, map, custom_headers:nil) + create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers:custom_headers).value! end # @@ -258,7 +260,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers = nil) + def create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -268,7 +270,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -341,8 +342,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, integration_account_name, map_name, custom_headers = nil) - response = delete_async(resource_group_name, integration_account_name, map_name, custom_headers).value! + def delete(resource_group_name, integration_account_name, map_name, custom_headers:nil) + response = delete_async(resource_group_name, integration_account_name, map_name, custom_headers:custom_headers).value! nil end @@ -357,8 +358,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, integration_account_name, map_name, custom_headers = nil) - delete_async(resource_group_name, integration_account_name, map_name, custom_headers).value! + def delete_with_http_info(resource_group_name, integration_account_name, map_name, custom_headers:nil) + delete_async(resource_group_name, integration_account_name, map_name, custom_headers:custom_headers).value! end # @@ -372,7 +373,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, integration_account_name, map_name, custom_headers = nil) + def delete_async(resource_group_name, integration_account_name, map_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -381,6 +382,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -425,8 +427,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountMapListResult] operation results. # - def list_by_integration_accounts_next(next_page_link, custom_headers = nil) - response = list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next(next_page_link, custom_headers:nil) + response = list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -440,8 +442,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers = nil) - list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers:nil) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -454,11 +456,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_next_async(next_page_link, custom_headers = nil) + def list_by_integration_accounts_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -515,12 +518,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [IntegrationAccountMapListResult] which provide lazy access to pages # of the response. # - def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value! + def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_integration_accounts_next_async(next_page_link, custom_headers) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/partners.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/partners.rb index d79feabc1..5008112ee 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/partners.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/partners.rb @@ -33,8 +33,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_by_integration_accounts(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top, filter, custom_headers) + def list_by_integration_accounts(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value! + def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_async(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) + def list_by_integration_accounts_async(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -74,6 +74,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +130,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountPartner] operation results. # - def get(resource_group_name, integration_account_name, partner_name, custom_headers = nil) - response = get_async(resource_group_name, integration_account_name, partner_name, custom_headers).value! + def get(resource_group_name, integration_account_name, partner_name, custom_headers:nil) + response = get_async(resource_group_name, integration_account_name, partner_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, integration_account_name, partner_name, custom_headers = nil) - get_async(resource_group_name, integration_account_name, partner_name, custom_headers).value! + def get_with_http_info(resource_group_name, integration_account_name, partner_name, custom_headers:nil) + get_async(resource_group_name, integration_account_name, partner_name, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, integration_account_name, partner_name, custom_headers = nil) + def get_async(resource_group_name, integration_account_name, partner_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -169,6 +170,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -225,8 +227,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountPartner] operation results. # - def create_or_update(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil) - response = create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers).value! + def create_or_update(resource_group_name, integration_account_name, partner_name, partner, custom_headers:nil) + response = create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -242,8 +244,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil) - create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, integration_account_name, partner_name, partner, custom_headers:nil) + create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers:custom_headers).value! end # @@ -258,7 +260,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil) + def create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -268,7 +270,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -341,8 +342,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, integration_account_name, partner_name, custom_headers = nil) - response = delete_async(resource_group_name, integration_account_name, partner_name, custom_headers).value! + def delete(resource_group_name, integration_account_name, partner_name, custom_headers:nil) + response = delete_async(resource_group_name, integration_account_name, partner_name, custom_headers:custom_headers).value! nil end @@ -357,8 +358,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, integration_account_name, partner_name, custom_headers = nil) - delete_async(resource_group_name, integration_account_name, partner_name, custom_headers).value! + def delete_with_http_info(resource_group_name, integration_account_name, partner_name, custom_headers:nil) + delete_async(resource_group_name, integration_account_name, partner_name, custom_headers:custom_headers).value! end # @@ -372,7 +373,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, integration_account_name, partner_name, custom_headers = nil) + def delete_async(resource_group_name, integration_account_name, partner_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -381,6 +382,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -425,8 +427,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountPartnerListResult] operation results. # - def list_by_integration_accounts_next(next_page_link, custom_headers = nil) - response = list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next(next_page_link, custom_headers:nil) + response = list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -440,8 +442,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers = nil) - list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers:nil) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -454,11 +456,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_next_async(next_page_link, custom_headers = nil) + def list_by_integration_accounts_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -515,12 +518,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [IntegrationAccountPartnerListResult] which provide lazy access to # pages of the response. # - def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value! + def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_integration_accounts_next_async(next_page_link, custom_headers) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/schemas.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/schemas.rb index 82f0644df..9ea98419e 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/schemas.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/schemas.rb @@ -33,8 +33,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_by_integration_accounts(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top, filter, custom_headers) + def list_by_integration_accounts(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value! + def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_async(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) + def list_by_integration_accounts_async(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -74,6 +74,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +130,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountSchema] operation results. # - def get(resource_group_name, integration_account_name, schema_name, custom_headers = nil) - response = get_async(resource_group_name, integration_account_name, schema_name, custom_headers).value! + def get(resource_group_name, integration_account_name, schema_name, custom_headers:nil) + response = get_async(resource_group_name, integration_account_name, schema_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, integration_account_name, schema_name, custom_headers = nil) - get_async(resource_group_name, integration_account_name, schema_name, custom_headers).value! + def get_with_http_info(resource_group_name, integration_account_name, schema_name, custom_headers:nil) + get_async(resource_group_name, integration_account_name, schema_name, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, integration_account_name, schema_name, custom_headers = nil) + def get_async(resource_group_name, integration_account_name, schema_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -169,6 +170,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -225,8 +227,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountSchema] operation results. # - def create_or_update(resource_group_name, integration_account_name, schema_name, schema, custom_headers = nil) - response = create_or_update_async(resource_group_name, integration_account_name, schema_name, schema, custom_headers).value! + def create_or_update(resource_group_name, integration_account_name, schema_name, schema, custom_headers:nil) + response = create_or_update_async(resource_group_name, integration_account_name, schema_name, schema, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -242,8 +244,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, integration_account_name, schema_name, schema, custom_headers = nil) - create_or_update_async(resource_group_name, integration_account_name, schema_name, schema, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, integration_account_name, schema_name, schema, custom_headers:nil) + create_or_update_async(resource_group_name, integration_account_name, schema_name, schema, custom_headers:custom_headers).value! end # @@ -258,7 +260,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, integration_account_name, schema_name, schema, custom_headers = nil) + def create_or_update_async(resource_group_name, integration_account_name, schema_name, schema, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -268,7 +270,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -341,8 +342,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, integration_account_name, schema_name, custom_headers = nil) - response = delete_async(resource_group_name, integration_account_name, schema_name, custom_headers).value! + def delete(resource_group_name, integration_account_name, schema_name, custom_headers:nil) + response = delete_async(resource_group_name, integration_account_name, schema_name, custom_headers:custom_headers).value! nil end @@ -357,8 +358,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, integration_account_name, schema_name, custom_headers = nil) - delete_async(resource_group_name, integration_account_name, schema_name, custom_headers).value! + def delete_with_http_info(resource_group_name, integration_account_name, schema_name, custom_headers:nil) + delete_async(resource_group_name, integration_account_name, schema_name, custom_headers:custom_headers).value! end # @@ -372,7 +373,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, integration_account_name, schema_name, custom_headers = nil) + def delete_async(resource_group_name, integration_account_name, schema_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -381,6 +382,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -425,8 +427,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountSchemaListResult] operation results. # - def list_by_integration_accounts_next(next_page_link, custom_headers = nil) - response = list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next(next_page_link, custom_headers:nil) + response = list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -440,8 +442,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers = nil) - list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers:nil) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -454,11 +456,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_next_async(next_page_link, custom_headers = nil) + def list_by_integration_accounts_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -515,12 +518,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [IntegrationAccountSchemaListResult] which provide lazy access to # pages of the response. # - def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value! + def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_integration_accounts_next_async(next_page_link, custom_headers) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/sessions.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/sessions.rb index 552103981..ca2c664dd 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/sessions.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/sessions.rb @@ -33,8 +33,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_by_integration_accounts(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top, filter, custom_headers) + def list_by_integration_accounts(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value! + def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_async(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) + def list_by_integration_accounts_async(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -74,6 +74,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +130,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountSession] operation results. # - def get(resource_group_name, integration_account_name, session_name, custom_headers = nil) - response = get_async(resource_group_name, integration_account_name, session_name, custom_headers).value! + def get(resource_group_name, integration_account_name, session_name, custom_headers:nil) + response = get_async(resource_group_name, integration_account_name, session_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, integration_account_name, session_name, custom_headers = nil) - get_async(resource_group_name, integration_account_name, session_name, custom_headers).value! + def get_with_http_info(resource_group_name, integration_account_name, session_name, custom_headers:nil) + get_async(resource_group_name, integration_account_name, session_name, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, integration_account_name, session_name, custom_headers = nil) + def get_async(resource_group_name, integration_account_name, session_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -169,6 +170,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -225,8 +227,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountSession] operation results. # - def create_or_update(resource_group_name, integration_account_name, session_name, session, custom_headers = nil) - response = create_or_update_async(resource_group_name, integration_account_name, session_name, session, custom_headers).value! + def create_or_update(resource_group_name, integration_account_name, session_name, session, custom_headers:nil) + response = create_or_update_async(resource_group_name, integration_account_name, session_name, session, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -242,8 +244,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, integration_account_name, session_name, session, custom_headers = nil) - create_or_update_async(resource_group_name, integration_account_name, session_name, session, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, integration_account_name, session_name, session, custom_headers:nil) + create_or_update_async(resource_group_name, integration_account_name, session_name, session, custom_headers:custom_headers).value! end # @@ -258,7 +260,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, integration_account_name, session_name, session, custom_headers = nil) + def create_or_update_async(resource_group_name, integration_account_name, session_name, session, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -268,7 +270,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -341,8 +342,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, integration_account_name, session_name, custom_headers = nil) - response = delete_async(resource_group_name, integration_account_name, session_name, custom_headers).value! + def delete(resource_group_name, integration_account_name, session_name, custom_headers:nil) + response = delete_async(resource_group_name, integration_account_name, session_name, custom_headers:custom_headers).value! nil end @@ -357,8 +358,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, integration_account_name, session_name, custom_headers = nil) - delete_async(resource_group_name, integration_account_name, session_name, custom_headers).value! + def delete_with_http_info(resource_group_name, integration_account_name, session_name, custom_headers:nil) + delete_async(resource_group_name, integration_account_name, session_name, custom_headers:custom_headers).value! end # @@ -372,7 +373,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, integration_account_name, session_name, custom_headers = nil) + def delete_async(resource_group_name, integration_account_name, session_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil? @@ -381,6 +382,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -425,8 +427,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [IntegrationAccountSessionListResult] operation results. # - def list_by_integration_accounts_next(next_page_link, custom_headers = nil) - response = list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next(next_page_link, custom_headers:nil) + response = list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -440,8 +442,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers = nil) - list_by_integration_accounts_next_async(next_page_link, custom_headers).value! + def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers:nil) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -454,11 +456,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_integration_accounts_next_async(next_page_link, custom_headers = nil) + def list_by_integration_accounts_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -515,12 +518,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [IntegrationAccountSessionListResult] which provide lazy access to # pages of the response. # - def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil) - response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value! + def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) + response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_integration_accounts_next_async(next_page_link, custom_headers) + list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_actions.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_actions.rb index 5a1e92691..08975de5a 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_actions.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_actions.rb @@ -34,8 +34,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, workflow_name, run_name, top, filter, custom_headers) + def list(resource_group_name, workflow_name, run_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, workflow_name, run_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil) - list_async(resource_group_name, workflow_name, run_name, top, filter, custom_headers).value! + def list_with_http_info(resource_group_name, workflow_name, run_name, top:nil, filter:nil, custom_headers:nil) + list_async(resource_group_name, workflow_name, run_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil) + def list_async(resource_group_name, workflow_name, run_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -78,6 +78,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowRunAction] operation results. # - def get(resource_group_name, workflow_name, run_name, action_name, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers).value! + def get(resource_group_name, workflow_name, run_name, action_name, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, run_name, action_name, custom_headers = nil) - get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, run_name, action_name, custom_headers:nil) + get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers:custom_headers).value! end # @@ -167,7 +168,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers = nil) + def get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -177,6 +178,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -231,8 +233,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowRunActionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -246,8 +248,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -260,11 +262,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -322,12 +325,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [WorkflowRunActionListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil) - response = list_async(resource_group_name, workflow_name, run_name, top, filter, custom_headers).value! + def list_as_lazy(resource_group_name, workflow_name, run_name, top:nil, filter:nil, custom_headers:nil) + response = list_async(resource_group_name, workflow_name, run_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_runs.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_runs.rb index b69a10949..4924b021e 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_runs.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_runs.rb @@ -33,8 +33,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, workflow_name, top, filter, custom_headers) + def list(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - list_async(resource_group_name, workflow_name, top, filter, custom_headers).value! + def list_with_http_info(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + list_async(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) + def list_async(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -74,6 +74,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +130,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowRun] operation results. # - def get(resource_group_name, workflow_name, run_name, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, run_name, custom_headers).value! + def get(resource_group_name, workflow_name, run_name, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, run_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, run_name, custom_headers = nil) - get_async(resource_group_name, workflow_name, run_name, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, run_name, custom_headers:nil) + get_async(resource_group_name, workflow_name, run_name, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, run_name, custom_headers = nil) + def get_async(resource_group_name, workflow_name, run_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -169,6 +170,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -223,8 +225,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def cancel(resource_group_name, workflow_name, run_name, custom_headers = nil) - response = cancel_async(resource_group_name, workflow_name, run_name, custom_headers).value! + def cancel(resource_group_name, workflow_name, run_name, custom_headers:nil) + response = cancel_async(resource_group_name, workflow_name, run_name, custom_headers:custom_headers).value! nil end @@ -239,8 +241,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def cancel_with_http_info(resource_group_name, workflow_name, run_name, custom_headers = nil) - cancel_async(resource_group_name, workflow_name, run_name, custom_headers).value! + def cancel_with_http_info(resource_group_name, workflow_name, run_name, custom_headers:nil) + cancel_async(resource_group_name, workflow_name, run_name, custom_headers:custom_headers).value! end # @@ -254,7 +256,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def cancel_async(resource_group_name, workflow_name, run_name, custom_headers = nil) + def cancel_async(resource_group_name, workflow_name, run_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -263,6 +265,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +310,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowRunListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -322,8 +325,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -336,11 +339,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -397,12 +401,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [WorkflowRunListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - response = list_async(resource_group_name, workflow_name, top, filter, custom_headers).value! + def list_as_lazy(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + response = list_async(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_trigger_histories.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_trigger_histories.rb index 608714e46..059991544 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_trigger_histories.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_trigger_histories.rb @@ -34,8 +34,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, workflow_name, trigger_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, workflow_name, trigger_name, top, filter, custom_headers) + def list(resource_group_name, workflow_name, trigger_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, workflow_name, trigger_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, workflow_name, trigger_name, top = nil, filter = nil, custom_headers = nil) - list_async(resource_group_name, workflow_name, trigger_name, top, filter, custom_headers).value! + def list_with_http_info(resource_group_name, workflow_name, trigger_name, top:nil, filter:nil, custom_headers:nil) + list_async(resource_group_name, workflow_name, trigger_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, workflow_name, trigger_name, top = nil, filter = nil, custom_headers = nil) + def list_async(resource_group_name, workflow_name, trigger_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -78,6 +78,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowTriggerHistory] operation results. # - def get(resource_group_name, workflow_name, trigger_name, history_name, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers).value! + def get(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +154,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, trigger_name, history_name, custom_headers = nil) - get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:nil) + get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers = nil) + def get_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -180,6 +181,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -236,8 +238,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def resubmit(resource_group_name, workflow_name, trigger_name, history_name, custom_headers = nil) - response = resubmit_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers).value! + def resubmit(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:nil) + response = resubmit_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:custom_headers).value! nil end @@ -254,8 +256,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def resubmit_with_http_info(resource_group_name, workflow_name, trigger_name, history_name, custom_headers = nil) - resubmit_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers).value! + def resubmit_with_http_info(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:nil) + resubmit_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:custom_headers).value! end # @@ -271,7 +273,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def resubmit_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers = nil) + def resubmit_async(resource_group_name, workflow_name, trigger_name, history_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -281,6 +283,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -325,8 +328,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowTriggerHistoryListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -340,8 +343,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -354,11 +357,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -416,12 +420,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [WorkflowTriggerHistoryListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, workflow_name, trigger_name, top = nil, filter = nil, custom_headers = nil) - response = list_async(resource_group_name, workflow_name, trigger_name, top, filter, custom_headers).value! + def list_as_lazy(resource_group_name, workflow_name, trigger_name, top:nil, filter:nil, custom_headers:nil) + response = list_async(resource_group_name, workflow_name, trigger_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_triggers.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_triggers.rb index 2bc724159..fec3305dc 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_triggers.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_triggers.rb @@ -33,8 +33,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, workflow_name, top, filter, custom_headers) + def list(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - list_async(resource_group_name, workflow_name, top, filter, custom_headers).value! + def list_with_http_info(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + list_async(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) + def list_async(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -74,6 +74,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +130,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowTrigger] operation results. # - def get(resource_group_name, workflow_name, trigger_name, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, trigger_name, custom_headers).value! + def get(resource_group_name, workflow_name, trigger_name, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers = nil) - get_async(resource_group_name, workflow_name, trigger_name, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers:nil) + get_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, trigger_name, custom_headers = nil) + def get_async(resource_group_name, workflow_name, trigger_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -169,6 +170,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -224,8 +226,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Object] operation results. # - def run(resource_group_name, workflow_name, trigger_name, custom_headers = nil) - response = run_async(resource_group_name, workflow_name, trigger_name, custom_headers).value! + def run(resource_group_name, workflow_name, trigger_name, custom_headers:nil) + response = run_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -240,8 +242,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def run_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers = nil) - run_async(resource_group_name, workflow_name, trigger_name, custom_headers).value! + def run_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers:nil) + run_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! end # @@ -255,7 +257,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def run_async(resource_group_name, workflow_name, trigger_name, custom_headers = nil) + def run_async(resource_group_name, workflow_name, trigger_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -264,6 +266,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -309,8 +312,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowTriggerCallbackUrl] operation results. # - def list_callback_url(resource_group_name, workflow_name, trigger_name, custom_headers = nil) - response = list_callback_url_async(resource_group_name, workflow_name, trigger_name, custom_headers).value! + def list_callback_url(resource_group_name, workflow_name, trigger_name, custom_headers:nil) + response = list_callback_url_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -325,8 +328,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_callback_url_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers = nil) - list_callback_url_async(resource_group_name, workflow_name, trigger_name, custom_headers).value! + def list_callback_url_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers:nil) + list_callback_url_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! end # @@ -340,7 +343,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_callback_url_async(resource_group_name, workflow_name, trigger_name, custom_headers = nil) + def list_callback_url_async(resource_group_name, workflow_name, trigger_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -349,6 +352,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -403,8 +407,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowTriggerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -418,8 +422,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -432,11 +436,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -493,12 +498,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [WorkflowTriggerListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil) - response = list_async(resource_group_name, workflow_name, top, filter, custom_headers).value! + def list_as_lazy(resource_group_name, workflow_name, top:nil, filter:nil, custom_headers:nil) + response = list_async(resource_group_name, workflow_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_versions.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_versions.rb index d9b42513d..bbb7426df 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_versions.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_versions.rb @@ -32,8 +32,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, workflow_name, top = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, workflow_name, top, custom_headers) + def list(resource_group_name, workflow_name, top:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, workflow_name, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, workflow_name, top = nil, custom_headers = nil) - list_async(resource_group_name, workflow_name, top, custom_headers).value! + def list_with_http_info(resource_group_name, workflow_name, top:nil, custom_headers:nil) + list_async(resource_group_name, workflow_name, top:top, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, workflow_name, top = nil, custom_headers = nil) + def list_async(resource_group_name, workflow_name, top:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -71,6 +71,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowVersion] operation results. # - def get(resource_group_name, workflow_name, version_id, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, version_id, custom_headers).value! + def get(resource_group_name, workflow_name, version_id, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, version_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -142,8 +143,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, version_id, custom_headers = nil) - get_async(resource_group_name, workflow_name, version_id, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, version_id, custom_headers:nil) + get_async(resource_group_name, workflow_name, version_id, custom_headers:custom_headers).value! end # @@ -157,7 +158,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, version_id, custom_headers = nil) + def get_async(resource_group_name, workflow_name, version_id, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -166,6 +167,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -223,8 +225,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowTriggerCallbackUrl] operation results. # - def list_callback_url(resource_group_name, workflow_name, version_id, trigger_name, parameters = nil, custom_headers = nil) - response = list_callback_url_async(resource_group_name, workflow_name, version_id, trigger_name, parameters, custom_headers).value! + def list_callback_url(resource_group_name, workflow_name, version_id, trigger_name, parameters:nil, custom_headers:nil) + response = list_callback_url_async(resource_group_name, workflow_name, version_id, trigger_name, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -241,8 +243,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_callback_url_with_http_info(resource_group_name, workflow_name, version_id, trigger_name, parameters = nil, custom_headers = nil) - list_callback_url_async(resource_group_name, workflow_name, version_id, trigger_name, parameters, custom_headers).value! + def list_callback_url_with_http_info(resource_group_name, workflow_name, version_id, trigger_name, parameters:nil, custom_headers:nil) + list_callback_url_async(resource_group_name, workflow_name, version_id, trigger_name, parameters:parameters, custom_headers:custom_headers).value! end # @@ -258,7 +260,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_callback_url_async(resource_group_name, workflow_name, version_id, trigger_name, parameters = nil, custom_headers = nil) + def list_callback_url_async(resource_group_name, workflow_name, version_id, trigger_name, parameters:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -268,7 +270,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -331,8 +332,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowVersionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -346,8 +347,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -360,11 +361,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -420,12 +422,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [WorkflowVersionListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, workflow_name, top = nil, custom_headers = nil) - response = list_async(resource_group_name, workflow_name, top, custom_headers).value! + def list_as_lazy(resource_group_name, workflow_name, top:nil, custom_headers:nil) + response = list_async(resource_group_name, workflow_name, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflows.rb b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflows.rb index e05adc96a..7a75174a5 100644 --- a/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflows.rb +++ b/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflows.rb @@ -31,8 +31,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_by_subscription(top = nil, filter = nil, custom_headers = nil) - first_page = list_by_subscription_as_lazy(top, filter, custom_headers) + def list_by_subscription(top:nil, filter:nil, custom_headers:nil) + first_page = list_by_subscription_as_lazy(top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(top = nil, filter = nil, custom_headers = nil) - list_by_subscription_async(top, filter, custom_headers).value! + def list_by_subscription_with_http_info(top:nil, filter:nil, custom_headers:nil) + list_by_subscription_async(top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -60,12 +60,13 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(top = nil, filter = nil, custom_headers = nil) + def list_by_subscription_async(top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -121,8 +122,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, top = nil, filter = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, top, filter, custom_headers) + def list_by_resource_group(resource_group_name, top:nil, filter:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -137,8 +138,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, top = nil, filter = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, top, filter, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, top:nil, filter:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, top:top, filter:filter, custom_headers:custom_headers).value! end # @@ -152,13 +153,14 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, top = nil, filter = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -213,8 +215,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Workflow] operation results. # - def get(resource_group_name, workflow_name, custom_headers = nil) - response = get_async(resource_group_name, workflow_name, custom_headers).value! + def get(resource_group_name, workflow_name, custom_headers:nil) + response = get_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -228,8 +230,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workflow_name, custom_headers = nil) - get_async(resource_group_name, workflow_name, custom_headers).value! + def get_with_http_info(resource_group_name, workflow_name, custom_headers:nil) + get_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end # @@ -242,7 +244,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workflow_name, custom_headers = nil) + def get_async(resource_group_name, workflow_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -250,6 +252,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +308,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Workflow] operation results. # - def create_or_update(resource_group_name, workflow_name, workflow, custom_headers = nil) - response = create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers).value! + def create_or_update(resource_group_name, workflow_name, workflow, custom_headers:nil) + response = create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,8 +324,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers = nil) - create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers:nil) + create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! end # @@ -336,7 +339,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers = nil) + def create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -345,7 +348,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -419,8 +421,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Workflow] operation results. # - def update(resource_group_name, workflow_name, workflow, custom_headers = nil) - response = update_async(resource_group_name, workflow_name, workflow, custom_headers).value! + def update(resource_group_name, workflow_name, workflow, custom_headers:nil) + response = update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -435,8 +437,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers = nil) - update_async(resource_group_name, workflow_name, workflow, custom_headers).value! + def update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers:nil) + update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! end # @@ -450,7 +452,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, workflow_name, workflow, custom_headers = nil) + def update_async(resource_group_name, workflow_name, workflow, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -459,7 +461,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -521,8 +522,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, workflow_name, custom_headers = nil) - response = delete_async(resource_group_name, workflow_name, custom_headers).value! + def delete(resource_group_name, workflow_name, custom_headers:nil) + response = delete_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! nil end @@ -536,8 +537,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, workflow_name, custom_headers = nil) - delete_async(resource_group_name, workflow_name, custom_headers).value! + def delete_with_http_info(resource_group_name, workflow_name, custom_headers:nil) + delete_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end # @@ -550,7 +551,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, workflow_name, custom_headers = nil) + def delete_async(resource_group_name, workflow_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -558,6 +559,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -601,8 +603,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def disable(resource_group_name, workflow_name, custom_headers = nil) - response = disable_async(resource_group_name, workflow_name, custom_headers).value! + def disable(resource_group_name, workflow_name, custom_headers:nil) + response = disable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! nil end @@ -616,8 +618,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def disable_with_http_info(resource_group_name, workflow_name, custom_headers = nil) - disable_async(resource_group_name, workflow_name, custom_headers).value! + def disable_with_http_info(resource_group_name, workflow_name, custom_headers:nil) + disable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end # @@ -630,7 +632,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def disable_async(resource_group_name, workflow_name, custom_headers = nil) + def disable_async(resource_group_name, workflow_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -638,6 +640,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -681,8 +684,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def enable(resource_group_name, workflow_name, custom_headers = nil) - response = enable_async(resource_group_name, workflow_name, custom_headers).value! + def enable(resource_group_name, workflow_name, custom_headers:nil) + response = enable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! nil end @@ -696,8 +699,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def enable_with_http_info(resource_group_name, workflow_name, custom_headers = nil) - enable_async(resource_group_name, workflow_name, custom_headers).value! + def enable_with_http_info(resource_group_name, workflow_name, custom_headers:nil) + enable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end # @@ -710,7 +713,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def enable_async(resource_group_name, workflow_name, custom_headers = nil) + def enable_async(resource_group_name, workflow_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -718,6 +721,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -764,8 +768,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Object] operation results. # - def generate_upgraded_definition(resource_group_name, workflow_name, parameters, custom_headers = nil) - response = generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers).value! + def generate_upgraded_definition(resource_group_name, workflow_name, parameters, custom_headers:nil) + response = generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -781,8 +785,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_upgraded_definition_with_http_info(resource_group_name, workflow_name, parameters, custom_headers = nil) - generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers).value! + def generate_upgraded_definition_with_http_info(resource_group_name, workflow_name, parameters, custom_headers:nil) + generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers).value! end # @@ -797,7 +801,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers = nil) + def generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -806,7 +810,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -859,8 +862,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Object] operation results. # - def list_swagger(resource_group_name, workflow_name, custom_headers = nil) - response = list_swagger_async(resource_group_name, workflow_name, custom_headers).value! + def list_swagger(resource_group_name, workflow_name, custom_headers:nil) + response = list_swagger_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -874,8 +877,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_swagger_with_http_info(resource_group_name, workflow_name, custom_headers = nil) - list_swagger_async(resource_group_name, workflow_name, custom_headers).value! + def list_swagger_with_http_info(resource_group_name, workflow_name, custom_headers:nil) + list_swagger_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end # @@ -888,7 +891,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_swagger_async(resource_group_name, workflow_name, custom_headers = nil) + def list_swagger_async(resource_group_name, workflow_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -896,6 +899,7 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -940,8 +944,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def regenerate_access_key(resource_group_name, workflow_name, key_type, custom_headers = nil) - response = regenerate_access_key_async(resource_group_name, workflow_name, key_type, custom_headers).value! + def regenerate_access_key(resource_group_name, workflow_name, key_type, custom_headers:nil) + response = regenerate_access_key_async(resource_group_name, workflow_name, key_type, custom_headers:custom_headers).value! nil end @@ -956,8 +960,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_access_key_with_http_info(resource_group_name, workflow_name, key_type, custom_headers = nil) - regenerate_access_key_async(resource_group_name, workflow_name, key_type, custom_headers).value! + def regenerate_access_key_with_http_info(resource_group_name, workflow_name, key_type, custom_headers:nil) + regenerate_access_key_async(resource_group_name, workflow_name, key_type, custom_headers:custom_headers).value! end # @@ -971,7 +975,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_access_key_async(resource_group_name, workflow_name, key_type, custom_headers = nil) + def regenerate_access_key_async(resource_group_name, workflow_name, key_type, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workflow_name is nil' if workflow_name.nil? @@ -980,7 +984,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1034,8 +1037,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def validate(resource_group_name, location, workflow_name, workflow, custom_headers = nil) - response = validate_async(resource_group_name, location, workflow_name, workflow, custom_headers).value! + def validate(resource_group_name, location, workflow_name, workflow, custom_headers:nil) + response = validate_async(resource_group_name, location, workflow_name, workflow, custom_headers:custom_headers).value! nil end @@ -1051,8 +1054,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_with_http_info(resource_group_name, location, workflow_name, workflow, custom_headers = nil) - validate_async(resource_group_name, location, workflow_name, workflow, custom_headers).value! + def validate_with_http_info(resource_group_name, location, workflow_name, workflow, custom_headers:nil) + validate_async(resource_group_name, location, workflow_name, workflow, custom_headers:custom_headers).value! end # @@ -1067,7 +1070,7 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_async(resource_group_name, location, workflow_name, workflow, custom_headers = nil) + def validate_async(resource_group_name, location, workflow_name, workflow, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'location is nil' if location.nil? @@ -1077,7 +1080,6 @@ module Azure::Logic::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1130,8 +1132,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowListResult] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1145,8 +1147,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1159,11 +1161,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1217,8 +1220,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [WorkflowListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1232,8 +1235,8 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1246,11 +1249,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1305,12 +1309,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [WorkflowListResult] which provide lazy access to pages of the # response. # - def list_by_subscription_as_lazy(top = nil, filter = nil, custom_headers = nil) - response = list_by_subscription_async(top, filter, custom_headers).value! + def list_by_subscription_as_lazy(top:nil, filter:nil, custom_headers:nil) + response = list_by_subscription_async(top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1328,12 +1332,12 @@ module Azure::Logic::Mgmt::V2016_06_01 # @return [WorkflowListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, top = nil, filter = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, top, filter, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, top:nil, filter:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_logic/lib/profiles/latest/modules/logic_profile_module.rb b/management/azure_mgmt_logic/lib/profiles/latest/modules/logic_profile_module.rb index 1f9c057dd..4679c0c3a 100644 --- a/management/azure_mgmt_logic/lib/profiles/latest/modules/logic_profile_module.rb +++ b/management/azure_mgmt_logic/lib/profiles/latest/modules/logic_profile_module.rb @@ -177,24 +177,24 @@ module Azure::Logic::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Logic::Mgmt::V2016_06_01::LogicManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Logic::Mgmt::V2016_06_01::LogicManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @workflows = client_0.workflows - @workflow_versions = client_0.workflow_versions - @workflow_triggers = client_0.workflow_triggers - @workflow_trigger_histories = client_0.workflow_trigger_histories - @workflow_runs = client_0.workflow_runs - @workflow_run_actions = client_0.workflow_run_actions - @integration_accounts = client_0.integration_accounts - @schemas = client_0.schemas - @maps = client_0.maps - @partners = client_0.partners - @agreements = client_0.agreements - @certificates = client_0.certificates - @sessions = client_0.sessions + add_telemetry(@client_0) + @workflows = @client_0.workflows + @workflow_versions = @client_0.workflow_versions + @workflow_triggers = @client_0.workflow_triggers + @workflow_trigger_histories = @client_0.workflow_trigger_histories + @workflow_runs = @client_0.workflow_runs + @workflow_run_actions = @client_0.workflow_run_actions + @integration_accounts = @client_0.integration_accounts + @schemas = @client_0.schemas + @maps = @client_0.maps + @partners = @client_0.partners + @agreements = @client_0.agreements + @certificates = @client_0.certificates + @sessions = @client_0.sessions @model_classes = ModelClasses.new end @@ -204,6 +204,14 @@ module Azure::Logic::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_machine_learning/lib/2017-01-01/generated/azure_mgmt_machine_learning/web_services.rb b/management/azure_mgmt_machine_learning/lib/2017-01-01/generated/azure_mgmt_machine_learning/web_services.rb index 2b982d197..c2e25135d 100644 --- a/management/azure_mgmt_machine_learning/lib/2017-01-01/generated/azure_mgmt_machine_learning/web_services.rb +++ b/management/azure_mgmt_machine_learning/lib/2017-01-01/generated/azure_mgmt_machine_learning/web_services.rb @@ -42,8 +42,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [WebService] operation results. # - def create_or_update(resource_group_name, web_service_name, create_or_update_payload, custom_headers = nil) - response = create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers).value! + def create_or_update(resource_group_name, web_service_name, create_or_update_payload, custom_headers:nil) + response = create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -59,9 +59,9 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers = nil) + def create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers) + promise = begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -93,8 +93,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [WebService] operation results. # - def get(resource_group_name, web_service_name, region = nil, custom_headers = nil) - response = get_async(resource_group_name, web_service_name, region, custom_headers).value! + def get(resource_group_name, web_service_name, region:nil, custom_headers:nil) + response = get_async(resource_group_name, web_service_name, region:region, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -114,8 +114,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, web_service_name, region = nil, custom_headers = nil) - get_async(resource_group_name, web_service_name, region, custom_headers).value! + def get_with_http_info(resource_group_name, web_service_name, region:nil, custom_headers:nil) + get_async(resource_group_name, web_service_name, region:region, custom_headers:custom_headers).value! end # @@ -134,7 +134,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, web_service_name, region = nil, custom_headers = nil) + def get_async(resource_group_name, web_service_name, region:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'web_service_name is nil' if web_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -142,6 +142,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -201,8 +202,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [WebService] operation results. # - def patch(resource_group_name, web_service_name, patch_payload, custom_headers = nil) - response = patch_async(resource_group_name, web_service_name, patch_payload, custom_headers).value! + def patch(resource_group_name, web_service_name, patch_payload, custom_headers:nil) + response = patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -218,9 +219,9 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def patch_async(resource_group_name, web_service_name, patch_payload, custom_headers = nil) + def patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:nil) # Send request - promise = begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers) + promise = begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -245,8 +246,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def remove(resource_group_name, web_service_name, custom_headers = nil) - response = remove_async(resource_group_name, web_service_name, custom_headers).value! + def remove(resource_group_name, web_service_name, custom_headers:nil) + response = remove_async(resource_group_name, web_service_name, custom_headers:custom_headers).value! nil end @@ -260,9 +261,9 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def remove_async(resource_group_name, web_service_name, custom_headers = nil) + def remove_async(resource_group_name, web_service_name, custom_headers:nil) # Send request - promise = begin_remove_async(resource_group_name, web_service_name, custom_headers) + promise = begin_remove_async(resource_group_name, web_service_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -294,8 +295,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [AsyncOperationStatus] operation results. # - def create_regional_properties(resource_group_name, web_service_name, region, custom_headers = nil) - response = create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers).value! + def create_regional_properties(resource_group_name, web_service_name, region, custom_headers:nil) + response = create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -311,9 +312,9 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers = nil) + def create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:nil) # Send request - promise = begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers) + promise = begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -340,8 +341,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [WebServiceKeys] operation results. # - def list_keys(resource_group_name, web_service_name, custom_headers = nil) - response = list_keys_async(resource_group_name, web_service_name, custom_headers).value! + def list_keys(resource_group_name, web_service_name, custom_headers:nil) + response = list_keys_async(resource_group_name, web_service_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -356,8 +357,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, web_service_name, custom_headers = nil) - list_keys_async(resource_group_name, web_service_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, web_service_name, custom_headers:nil) + list_keys_async(resource_group_name, web_service_name, custom_headers:custom_headers).value! end # @@ -371,7 +372,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, web_service_name, custom_headers = nil) + def list_keys_async(resource_group_name, web_service_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'web_service_name is nil' if web_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -379,6 +380,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -434,8 +436,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, skiptoken = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, skiptoken, custom_headers) + def list_by_resource_group(resource_group_name, skiptoken:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end @@ -450,8 +452,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, skiptoken = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, skiptoken, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, skiptoken:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, skiptoken:skiptoken, custom_headers:custom_headers).value! end # @@ -465,13 +467,14 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, skiptoken = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, skiptoken:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -525,8 +528,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Array] operation results. # - def list_by_subscription_id(skiptoken = nil, custom_headers = nil) - first_page = list_by_subscription_id_as_lazy(skiptoken, custom_headers) + def list_by_subscription_id(skiptoken:nil, custom_headers:nil) + first_page = list_by_subscription_id_as_lazy(skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end @@ -539,8 +542,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_id_with_http_info(skiptoken = nil, custom_headers = nil) - list_by_subscription_id_async(skiptoken, custom_headers).value! + def list_by_subscription_id_with_http_info(skiptoken:nil, custom_headers:nil) + list_by_subscription_id_async(skiptoken:skiptoken, custom_headers:custom_headers).value! end # @@ -552,12 +555,13 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_id_async(skiptoken = nil, custom_headers = nil) + def list_by_subscription_id_async(skiptoken:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -618,8 +622,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [WebService] operation results. # - def begin_create_or_update(resource_group_name, web_service_name, create_or_update_payload, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers).value! + def begin_create_or_update(resource_group_name, web_service_name, create_or_update_payload, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -639,8 +643,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, web_service_name, create_or_update_payload, custom_headers = nil) - begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, web_service_name, create_or_update_payload, custom_headers:nil) + begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:custom_headers).value! end # @@ -659,7 +663,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'web_service_name is nil' if web_service_name.nil? fail ArgumentError, 'create_or_update_payload is nil' if create_or_update_payload.nil? @@ -668,7 +672,6 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -746,8 +749,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [WebService] operation results. # - def begin_patch(resource_group_name, web_service_name, patch_payload, custom_headers = nil) - response = begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers).value! + def begin_patch(resource_group_name, web_service_name, patch_payload, custom_headers:nil) + response = begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -766,8 +769,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_patch_with_http_info(resource_group_name, web_service_name, patch_payload, custom_headers = nil) - begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers).value! + def begin_patch_with_http_info(resource_group_name, web_service_name, patch_payload, custom_headers:nil) + begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:custom_headers).value! end # @@ -785,7 +788,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers = nil) + def begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'web_service_name is nil' if web_service_name.nil? fail ArgumentError, 'patch_payload is nil' if patch_payload.nil? @@ -794,7 +797,6 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -857,8 +859,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # will be added to the HTTP request. # # - def begin_remove(resource_group_name, web_service_name, custom_headers = nil) - response = begin_remove_async(resource_group_name, web_service_name, custom_headers).value! + def begin_remove(resource_group_name, web_service_name, custom_headers:nil) + response = begin_remove_async(resource_group_name, web_service_name, custom_headers:custom_headers).value! nil end @@ -873,8 +875,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_remove_with_http_info(resource_group_name, web_service_name, custom_headers = nil) - begin_remove_async(resource_group_name, web_service_name, custom_headers).value! + def begin_remove_with_http_info(resource_group_name, web_service_name, custom_headers:nil) + begin_remove_async(resource_group_name, web_service_name, custom_headers:custom_headers).value! end # @@ -888,7 +890,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_remove_async(resource_group_name, web_service_name, custom_headers = nil) + def begin_remove_async(resource_group_name, web_service_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'web_service_name is nil' if web_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -896,6 +898,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -948,8 +951,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [AsyncOperationStatus] operation results. # - def begin_create_regional_properties(resource_group_name, web_service_name, region, custom_headers = nil) - response = begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers).value! + def begin_create_regional_properties(resource_group_name, web_service_name, region, custom_headers:nil) + response = begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -971,8 +974,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_regional_properties_with_http_info(resource_group_name, web_service_name, region, custom_headers = nil) - begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers).value! + def begin_create_regional_properties_with_http_info(resource_group_name, web_service_name, region, custom_headers:nil) + begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:custom_headers).value! end # @@ -993,7 +996,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers = nil) + def begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'web_service_name is nil' if web_service_name.nil? fail ArgumentError, 'region is nil' if region.nil? @@ -1002,6 +1005,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1056,8 +1060,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [PaginatedWebServicesList] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1071,8 +1075,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1085,11 +1089,12 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1143,8 +1148,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [PaginatedWebServicesList] operation results. # - def list_by_subscription_id_next(next_page_link, custom_headers = nil) - response = list_by_subscription_id_next_async(next_page_link, custom_headers).value! + def list_by_subscription_id_next(next_page_link, custom_headers:nil) + response = list_by_subscription_id_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1158,8 +1163,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_id_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_id_next_async(next_page_link, custom_headers).value! + def list_by_subscription_id_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_id_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1172,11 +1177,12 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_id_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_id_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1232,12 +1238,12 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # @return [PaginatedWebServicesList] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, skiptoken = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, skiptoken, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, skiptoken:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1253,12 +1259,12 @@ module Azure::MachineLearning::Mgmt::V2017_01_01 # @return [PaginatedWebServicesList] which provide lazy access to pages of the # response. # - def list_by_subscription_id_as_lazy(skiptoken = nil, custom_headers = nil) - response = list_by_subscription_id_async(skiptoken, custom_headers).value! + def list_by_subscription_id_as_lazy(skiptoken:nil, custom_headers:nil) + response = list_by_subscription_id_async(skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_id_next_async(next_page_link, custom_headers) + list_by_subscription_id_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_machine_learning/lib/profiles/latest/modules/machinelearning_profile_module.rb b/management/azure_mgmt_machine_learning/lib/profiles/latest/modules/machinelearning_profile_module.rb index 15da32b9c..3548abee1 100644 --- a/management/azure_mgmt_machine_learning/lib/profiles/latest/modules/machinelearning_profile_module.rb +++ b/management/azure_mgmt_machine_learning/lib/profiles/latest/modules/machinelearning_profile_module.rb @@ -67,12 +67,12 @@ module Azure::MachineLearning::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::MachineLearning::Mgmt::V2017_01_01::AzureMLWebServicesManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::MachineLearning::Mgmt::V2017_01_01::AzureMLWebServicesManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @web_services = client_0.web_services + add_telemetry(@client_0) + @web_services = @client_0.web_services @model_classes = ModelClasses.new end @@ -82,6 +82,14 @@ module Azure::MachineLearning::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_managed_applications/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/appliance_definitions.rb b/management/azure_mgmt_managed_applications/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/appliance_definitions.rb index c3b0668e4..e949f6467 100644 --- a/management/azure_mgmt_managed_applications/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/appliance_definitions.rb +++ b/management/azure_mgmt_managed_applications/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/appliance_definitions.rb @@ -33,8 +33,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [ApplianceDefinition] operation results. # - def get(resource_group_name, appliance_definition_name, custom_headers = nil) - response = get_async(resource_group_name, appliance_definition_name, custom_headers).value! + def get(resource_group_name, appliance_definition_name, custom_headers:nil) + response = get_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, appliance_definition_name, custom_headers = nil) - get_async(resource_group_name, appliance_definition_name, custom_headers).value! + def get_with_http_info(resource_group_name, appliance_definition_name, custom_headers:nil) + get_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, appliance_definition_name, custom_headers = nil) + def get_async(resource_group_name, appliance_definition_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -79,6 +79,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, appliance_definition_name, custom_headers = nil) - response = delete_async(resource_group_name, appliance_definition_name, custom_headers).value! + def delete(resource_group_name, appliance_definition_name, custom_headers:nil) + response = delete_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers).value! nil end @@ -149,9 +150,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, appliance_definition_name, custom_headers = nil) + def delete_async(resource_group_name, appliance_definition_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, appliance_definition_name, custom_headers) + promise = begin_delete_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -179,8 +180,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [ApplianceDefinition] operation results. # - def create_or_update(resource_group_name, appliance_definition_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, appliance_definition_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -197,9 +198,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -225,8 +226,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -240,8 +241,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -254,7 +255,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -264,6 +265,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -320,8 +322,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [ApplianceDefinition] operation results. # - def get_by_id(appliance_definition_id, custom_headers = nil) - response = get_by_id_async(appliance_definition_id, custom_headers).value! + def get_by_id(appliance_definition_id, custom_headers:nil) + response = get_by_id_async(appliance_definition_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -337,8 +339,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_id_with_http_info(appliance_definition_id, custom_headers = nil) - get_by_id_async(appliance_definition_id, custom_headers).value! + def get_by_id_with_http_info(appliance_definition_id, custom_headers:nil) + get_by_id_async(appliance_definition_id, custom_headers:custom_headers).value! end # @@ -353,12 +355,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_id_async(appliance_definition_id, custom_headers = nil) + def get_by_id_async(appliance_definition_id, custom_headers:nil) fail ArgumentError, 'appliance_definition_id is nil' if appliance_definition_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -413,8 +416,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete_by_id(appliance_definition_id, custom_headers = nil) - response = delete_by_id_async(appliance_definition_id, custom_headers).value! + def delete_by_id(appliance_definition_id, custom_headers:nil) + response = delete_by_id_async(appliance_definition_id, custom_headers:custom_headers).value! nil end @@ -429,9 +432,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_by_id_async(appliance_definition_id, custom_headers = nil) + def delete_by_id_async(appliance_definition_id, custom_headers:nil) # Send request - promise = begin_delete_by_id_async(appliance_definition_id, custom_headers) + promise = begin_delete_by_id_async(appliance_definition_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -459,8 +462,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [ApplianceDefinition] operation results. # - def create_or_update_by_id(appliance_definition_id, parameters, custom_headers = nil) - response = create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers).value! + def create_or_update_by_id(appliance_definition_id, parameters, custom_headers:nil) + response = create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -477,9 +480,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers = nil) + def create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers) + promise = begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -506,8 +509,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, appliance_definition_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, appliance_definition_name, custom_headers).value! + def begin_delete(resource_group_name, appliance_definition_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers).value! nil end @@ -523,8 +526,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, appliance_definition_name, custom_headers = nil) - begin_delete_async(resource_group_name, appliance_definition_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, appliance_definition_name, custom_headers:nil) + begin_delete_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers).value! end # @@ -539,7 +542,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, appliance_definition_name, custom_headers = nil) + def begin_delete_async(resource_group_name, appliance_definition_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -552,6 +555,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -600,8 +604,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [ApplianceDefinition] operation results. # - def begin_create_or_update(resource_group_name, appliance_definition_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, appliance_definition_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -619,8 +623,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, appliance_definition_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, appliance_definition_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:custom_headers).value! end # @@ -637,7 +641,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -651,7 +655,6 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -725,8 +728,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # will be added to the HTTP request. # # - def begin_delete_by_id(appliance_definition_id, custom_headers = nil) - response = begin_delete_by_id_async(appliance_definition_id, custom_headers).value! + def begin_delete_by_id(appliance_definition_id, custom_headers:nil) + response = begin_delete_by_id_async(appliance_definition_id, custom_headers:custom_headers).value! nil end @@ -742,8 +745,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_by_id_with_http_info(appliance_definition_id, custom_headers = nil) - begin_delete_by_id_async(appliance_definition_id, custom_headers).value! + def begin_delete_by_id_with_http_info(appliance_definition_id, custom_headers:nil) + begin_delete_by_id_async(appliance_definition_id, custom_headers:custom_headers).value! end # @@ -758,12 +761,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_by_id_async(appliance_definition_id, custom_headers = nil) + def begin_delete_by_id_async(appliance_definition_id, custom_headers:nil) fail ArgumentError, 'appliance_definition_id is nil' if appliance_definition_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -812,8 +816,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [ApplianceDefinition] operation results. # - def begin_create_or_update_by_id(appliance_definition_id, parameters, custom_headers = nil) - response = begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers).value! + def begin_create_or_update_by_id(appliance_definition_id, parameters, custom_headers:nil) + response = begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -831,8 +835,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_by_id_with_http_info(appliance_definition_id, parameters, custom_headers = nil) - begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers).value! + def begin_create_or_update_by_id_with_http_info(appliance_definition_id, parameters, custom_headers:nil) + begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:custom_headers).value! end # @@ -849,14 +853,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers = nil) + def begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:nil) fail ArgumentError, 'appliance_definition_id is nil' if appliance_definition_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -929,8 +932,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [ApplianceDefinitionListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -944,8 +947,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -958,11 +961,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1017,12 +1021,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @return [ApplianceDefinitionListResult] which provide lazy access to pages of # the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_managed_applications/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/appliances.rb b/management/azure_mgmt_managed_applications/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/appliances.rb index 79abda2f7..df66623c3 100644 --- a/management/azure_mgmt_managed_applications/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/appliances.rb +++ b/management/azure_mgmt_managed_applications/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/appliances.rb @@ -32,8 +32,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Appliance] operation results. # - def get(resource_group_name, appliance_name, custom_headers = nil) - response = get_async(resource_group_name, appliance_name, custom_headers).value! + def get(resource_group_name, appliance_name, custom_headers:nil) + response = get_async(resource_group_name, appliance_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, appliance_name, custom_headers = nil) - get_async(resource_group_name, appliance_name, custom_headers).value! + def get_with_http_info(resource_group_name, appliance_name, custom_headers:nil) + get_async(resource_group_name, appliance_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, appliance_name, custom_headers = nil) + def get_async(resource_group_name, appliance_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -76,6 +76,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +130,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, appliance_name, custom_headers = nil) - response = delete_async(resource_group_name, appliance_name, custom_headers).value! + def delete(resource_group_name, appliance_name, custom_headers:nil) + response = delete_async(resource_group_name, appliance_name, custom_headers:custom_headers).value! nil end @@ -144,9 +145,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, appliance_name, custom_headers = nil) + def delete_async(resource_group_name, appliance_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, appliance_name, custom_headers) + promise = begin_delete_async(resource_group_name, appliance_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -173,8 +174,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Appliance] operation results. # - def create_or_update(resource_group_name, appliance_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, appliance_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -190,9 +191,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -222,8 +223,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Appliance] operation results. # - def update(resource_group_name, appliance_name, parameters = nil, custom_headers = nil) - response = update_async(resource_group_name, appliance_name, parameters, custom_headers).value! + def update(resource_group_name, appliance_name, parameters:nil, custom_headers:nil) + response = update_async(resource_group_name, appliance_name, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -241,8 +242,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, appliance_name, parameters = nil, custom_headers = nil) - update_async(resource_group_name, appliance_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, appliance_name, parameters:nil, custom_headers:nil) + update_async(resource_group_name, appliance_name, parameters:parameters, custom_headers:custom_headers).value! end # @@ -259,7 +260,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, appliance_name, parameters = nil, custom_headers = nil) + def update_async(resource_group_name, appliance_name, parameters:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -272,7 +273,6 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -335,8 +335,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -350,8 +350,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -364,7 +364,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -374,6 +374,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -426,8 +427,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Array] operation results. # - def list_by_subscription(custom_headers = nil) - first_page = list_by_subscription_as_lazy(custom_headers) + def list_by_subscription(custom_headers:nil) + first_page = list_by_subscription_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -439,8 +440,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -451,12 +452,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -512,8 +514,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Appliance] operation results. # - def get_by_id(appliance_id, custom_headers = nil) - response = get_by_id_async(appliance_id, custom_headers).value! + def get_by_id(appliance_id, custom_headers:nil) + response = get_by_id_async(appliance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -528,8 +530,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_id_with_http_info(appliance_id, custom_headers = nil) - get_by_id_async(appliance_id, custom_headers).value! + def get_by_id_with_http_info(appliance_id, custom_headers:nil) + get_by_id_async(appliance_id, custom_headers:custom_headers).value! end # @@ -543,12 +545,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_id_async(appliance_id, custom_headers = nil) + def get_by_id_async(appliance_id, custom_headers:nil) fail ArgumentError, 'appliance_id is nil' if appliance_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -602,8 +605,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete_by_id(appliance_id, custom_headers = nil) - response = delete_by_id_async(appliance_id, custom_headers).value! + def delete_by_id(appliance_id, custom_headers:nil) + response = delete_by_id_async(appliance_id, custom_headers:custom_headers).value! nil end @@ -617,9 +620,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_by_id_async(appliance_id, custom_headers = nil) + def delete_by_id_async(appliance_id, custom_headers:nil) # Send request - promise = begin_delete_by_id_async(appliance_id, custom_headers) + promise = begin_delete_by_id_async(appliance_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -646,8 +649,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Appliance] operation results. # - def create_or_update_by_id(appliance_id, parameters, custom_headers = nil) - response = create_or_update_by_id_async(appliance_id, parameters, custom_headers).value! + def create_or_update_by_id(appliance_id, parameters, custom_headers:nil) + response = create_or_update_by_id_async(appliance_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -663,9 +666,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_by_id_async(appliance_id, parameters, custom_headers = nil) + def create_or_update_by_id_async(appliance_id, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers) + promise = begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -695,8 +698,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Appliance] operation results. # - def update_by_id(appliance_id, parameters = nil, custom_headers = nil) - response = update_by_id_async(appliance_id, parameters, custom_headers).value! + def update_by_id(appliance_id, parameters:nil, custom_headers:nil) + response = update_by_id_async(appliance_id, parameters:parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -714,8 +717,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_by_id_with_http_info(appliance_id, parameters = nil, custom_headers = nil) - update_by_id_async(appliance_id, parameters, custom_headers).value! + def update_by_id_with_http_info(appliance_id, parameters:nil, custom_headers:nil) + update_by_id_async(appliance_id, parameters:parameters, custom_headers:custom_headers).value! end # @@ -732,13 +735,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_by_id_async(appliance_id, parameters = nil, custom_headers = nil) + def update_by_id_async(appliance_id, parameters:nil, custom_headers:nil) fail ArgumentError, 'appliance_id is nil' if appliance_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -801,8 +803,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, appliance_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, appliance_name, custom_headers).value! + def begin_delete(resource_group_name, appliance_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, appliance_name, custom_headers:custom_headers).value! nil end @@ -817,8 +819,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, appliance_name, custom_headers = nil) - begin_delete_async(resource_group_name, appliance_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, appliance_name, custom_headers:nil) + begin_delete_async(resource_group_name, appliance_name, custom_headers:custom_headers).value! end # @@ -832,7 +834,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, appliance_name, custom_headers = nil) + def begin_delete_async(resource_group_name, appliance_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -845,6 +847,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -892,8 +895,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Appliance] operation results. # - def begin_create_or_update(resource_group_name, appliance_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, appliance_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -910,8 +913,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, appliance_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, appliance_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:custom_headers).value! end # @@ -927,7 +930,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -941,7 +944,6 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1014,8 +1016,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # will be added to the HTTP request. # # - def begin_delete_by_id(appliance_id, custom_headers = nil) - response = begin_delete_by_id_async(appliance_id, custom_headers).value! + def begin_delete_by_id(appliance_id, custom_headers:nil) + response = begin_delete_by_id_async(appliance_id, custom_headers:custom_headers).value! nil end @@ -1030,8 +1032,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_by_id_with_http_info(appliance_id, custom_headers = nil) - begin_delete_by_id_async(appliance_id, custom_headers).value! + def begin_delete_by_id_with_http_info(appliance_id, custom_headers:nil) + begin_delete_by_id_async(appliance_id, custom_headers:custom_headers).value! end # @@ -1045,12 +1047,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_by_id_async(appliance_id, custom_headers = nil) + def begin_delete_by_id_async(appliance_id, custom_headers:nil) fail ArgumentError, 'appliance_id is nil' if appliance_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1098,8 +1101,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Appliance] operation results. # - def begin_create_or_update_by_id(appliance_id, parameters, custom_headers = nil) - response = begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers).value! + def begin_create_or_update_by_id(appliance_id, parameters, custom_headers:nil) + response = begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1116,8 +1119,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_by_id_with_http_info(appliance_id, parameters, custom_headers = nil) - begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers).value! + def begin_create_or_update_by_id_with_http_info(appliance_id, parameters, custom_headers:nil) + begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers:custom_headers).value! end # @@ -1133,14 +1136,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers = nil) + def begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers:nil) fail ArgumentError, 'appliance_id is nil' if appliance_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1213,8 +1215,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [ApplianceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1228,8 +1230,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1242,11 +1244,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1300,8 +1303,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [ApplianceListResult] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1315,8 +1318,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1329,11 +1332,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1388,12 +1392,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @return [ApplianceListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1408,12 +1412,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview # @return [ApplianceListResult] which provide lazy access to pages of the # response. # - def list_by_subscription_as_lazy(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription_as_lazy(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_managed_applications/lib/profiles/latest/modules/managedapplications_profile_module.rb b/management/azure_mgmt_managed_applications/lib/profiles/latest/modules/managedapplications_profile_module.rb index f1cd40b75..d84ec88aa 100644 --- a/management/azure_mgmt_managed_applications/lib/profiles/latest/modules/managedapplications_profile_module.rb +++ b/management/azure_mgmt_managed_applications/lib/profiles/latest/modules/managedapplications_profile_module.rb @@ -49,13 +49,13 @@ module Azure::ManagedApplications::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::ManagedApplicationClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::ManagedApplicationClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @appliances = client_0.appliances - @appliance_definitions = client_0.appliance_definitions + add_telemetry(@client_0) + @appliances = @client_0.appliances + @appliance_definitions = @client_0.appliance_definitions @model_classes = ModelClasses.new end @@ -65,6 +65,14 @@ module Azure::ManagedApplications::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_marketplace_ordering/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/marketplace_agreements.rb b/management/azure_mgmt_marketplace_ordering/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/marketplace_agreements.rb index b533cbb0c..dc26ee7cc 100644 --- a/management/azure_mgmt_marketplace_ordering/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/marketplace_agreements.rb +++ b/management/azure_mgmt_marketplace_ordering/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/marketplace_agreements.rb @@ -33,8 +33,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [AgreementTerms] operation results. # - def get(publisher_id, offer_id, plan_id, custom_headers = nil) - response = get_async(publisher_id, offer_id, plan_id, custom_headers).value! + def get(publisher_id, offer_id, plan_id, custom_headers:nil) + response = get_async(publisher_id, offer_id, plan_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(publisher_id, offer_id, plan_id, custom_headers = nil) - get_async(publisher_id, offer_id, plan_id, custom_headers).value! + def get_with_http_info(publisher_id, offer_id, plan_id, custom_headers:nil) + get_async(publisher_id, offer_id, plan_id, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(publisher_id, offer_id, plan_id, custom_headers = nil) + def get_async(publisher_id, offer_id, plan_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? offer_type = 'virtualmachine' @@ -76,6 +76,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [AgreementTerms] operation results. # - def create(publisher_id, offer_id, plan_id, parameters, custom_headers = nil) - response = create_async(publisher_id, offer_id, plan_id, parameters, custom_headers).value! + def create(publisher_id, offer_id, plan_id, parameters, custom_headers:nil) + response = create_async(publisher_id, offer_id, plan_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +154,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(publisher_id, offer_id, plan_id, parameters, custom_headers = nil) - create_async(publisher_id, offer_id, plan_id, parameters, custom_headers).value! + def create_with_http_info(publisher_id, offer_id, plan_id, parameters, custom_headers:nil) + create_async(publisher_id, offer_id, plan_id, parameters, custom_headers:custom_headers).value! end # @@ -171,7 +172,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(publisher_id, offer_id, plan_id, parameters, custom_headers = nil) + def create_async(publisher_id, offer_id, plan_id, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? offer_type = 'virtualmachine' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -182,7 +183,6 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_marketplace_ordering/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/operations.rb b/management/azure_mgmt_marketplace_ordering/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/operations.rb index ec466eefc..5d084fedb 100644 --- a/management/azure_mgmt_marketplace_ordering/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/operations.rb +++ b/management/azure_mgmt_marketplace_ordering/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/operations.rb @@ -29,8 +29,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_marketplace_ordering/lib/profiles/latest/modules/marketplaceordering_profile_module.rb b/management/azure_mgmt_marketplace_ordering/lib/profiles/latest/modules/marketplaceordering_profile_module.rb index 04dae27c2..4c6be2c59 100644 --- a/management/azure_mgmt_marketplace_ordering/lib/profiles/latest/modules/marketplaceordering_profile_module.rb +++ b/management/azure_mgmt_marketplace_ordering/lib/profiles/latest/modules/marketplaceordering_profile_module.rb @@ -38,13 +38,13 @@ module Azure::MarketplaceOrdering::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceOrderingAgreements.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceOrderingAgreements.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @marketplace_agreements = client_0.marketplace_agreements - @operations = client_0.operations + add_telemetry(@client_0) + @marketplace_agreements = @client_0.marketplace_agreements + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -54,6 +54,14 @@ module Azure::MarketplaceOrdering::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_media_services/lib/2015-10-01/generated/azure_mgmt_media_services/media_service_operations.rb b/management/azure_mgmt_media_services/lib/2015-10-01/generated/azure_mgmt_media_services/media_service_operations.rb index c0ae88d23..43b3229c9 100644 --- a/management/azure_mgmt_media_services/lib/2015-10-01/generated/azure_mgmt_media_services/media_service_operations.rb +++ b/management/azure_mgmt_media_services/lib/2015-10-01/generated/azure_mgmt_media_services/media_service_operations.rb @@ -32,8 +32,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [CheckNameAvailabilityOutput] operation results. # - def check_name_availability(parameters, custom_headers = nil) - response = check_name_availability_async(parameters, custom_headers).value! + def check_name_availability(parameters, custom_headers:nil) + response = check_name_availability_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(parameters, custom_headers = nil) - check_name_availability_async(parameters, custom_headers).value! + def check_name_availability_with_http_info(parameters, custom_headers:nil) + check_name_availability_async(parameters, custom_headers:custom_headers).value! end # @@ -63,14 +63,13 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(parameters, custom_headers = nil) + def check_name_availability_async(parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -133,8 +132,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MediaServiceCollection] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +147,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -162,13 +161,14 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -224,8 +224,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MediaService] operation results. # - def get(resource_group_name, media_service_name, custom_headers = nil) - response = get_async(resource_group_name, media_service_name, custom_headers).value! + def get(resource_group_name, media_service_name, custom_headers:nil) + response = get_async(resource_group_name, media_service_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -240,8 +240,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, media_service_name, custom_headers = nil) - get_async(resource_group_name, media_service_name, custom_headers).value! + def get_with_http_info(resource_group_name, media_service_name, custom_headers:nil) + get_async(resource_group_name, media_service_name, custom_headers:custom_headers).value! end # @@ -255,7 +255,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, media_service_name, custom_headers = nil) + def get_async(resource_group_name, media_service_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -266,6 +266,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -323,8 +324,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MediaService] operation results. # - def create(resource_group_name, media_service_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, media_service_name, parameters, custom_headers).value! + def create(resource_group_name, media_service_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, media_service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -341,8 +342,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, media_service_name, parameters, custom_headers = nil) - create_async(resource_group_name, media_service_name, parameters, custom_headers).value! + def create_with_http_info(resource_group_name, media_service_name, parameters, custom_headers:nil) + create_async(resource_group_name, media_service_name, parameters, custom_headers:custom_headers).value! end # @@ -358,7 +359,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, media_service_name, parameters, custom_headers = nil) + def create_async(resource_group_name, media_service_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -370,7 +371,6 @@ module Azure::MediaServices::Mgmt::V2015_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -433,8 +433,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # will be added to the HTTP request. # # - def delete(resource_group_name, media_service_name, custom_headers = nil) - response = delete_async(resource_group_name, media_service_name, custom_headers).value! + def delete(resource_group_name, media_service_name, custom_headers:nil) + response = delete_async(resource_group_name, media_service_name, custom_headers:custom_headers).value! nil end @@ -449,8 +449,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, media_service_name, custom_headers = nil) - delete_async(resource_group_name, media_service_name, custom_headers).value! + def delete_with_http_info(resource_group_name, media_service_name, custom_headers:nil) + delete_async(resource_group_name, media_service_name, custom_headers:custom_headers).value! end # @@ -464,7 +464,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, media_service_name, custom_headers = nil) + def delete_async(resource_group_name, media_service_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -475,6 +475,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -521,8 +522,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MediaService] operation results. # - def update(resource_group_name, media_service_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, media_service_name, parameters, custom_headers).value! + def update(resource_group_name, media_service_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, media_service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -538,8 +539,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, media_service_name, parameters, custom_headers = nil) - update_async(resource_group_name, media_service_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, media_service_name, parameters, custom_headers:nil) + update_async(resource_group_name, media_service_name, parameters, custom_headers:custom_headers).value! end # @@ -554,7 +555,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, media_service_name, parameters, custom_headers = nil) + def update_async(resource_group_name, media_service_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -566,7 +567,6 @@ module Azure::MediaServices::Mgmt::V2015_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -632,8 +632,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [RegenerateKeyOutput] operation results. # - def regenerate_key(resource_group_name, media_service_name, parameters, custom_headers = nil) - response = regenerate_key_async(resource_group_name, media_service_name, parameters, custom_headers).value! + def regenerate_key(resource_group_name, media_service_name, parameters, custom_headers:nil) + response = regenerate_key_async(resource_group_name, media_service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -650,8 +650,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, media_service_name, parameters, custom_headers = nil) - regenerate_key_async(resource_group_name, media_service_name, parameters, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, media_service_name, parameters, custom_headers:nil) + regenerate_key_async(resource_group_name, media_service_name, parameters, custom_headers:custom_headers).value! end # @@ -667,7 +667,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, media_service_name, parameters, custom_headers = nil) + def regenerate_key_async(resource_group_name, media_service_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -679,7 +679,6 @@ module Azure::MediaServices::Mgmt::V2015_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -743,8 +742,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [ServiceKeys] operation results. # - def list_keys(resource_group_name, media_service_name, custom_headers = nil) - response = list_keys_async(resource_group_name, media_service_name, custom_headers).value! + def list_keys(resource_group_name, media_service_name, custom_headers:nil) + response = list_keys_async(resource_group_name, media_service_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -759,8 +758,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, media_service_name, custom_headers = nil) - list_keys_async(resource_group_name, media_service_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, media_service_name, custom_headers:nil) + list_keys_async(resource_group_name, media_service_name, custom_headers:custom_headers).value! end # @@ -774,7 +773,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, media_service_name, custom_headers = nil) + def list_keys_async(resource_group_name, media_service_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -785,6 +784,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -842,8 +842,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # will be added to the HTTP request. # # - def sync_storage_keys(resource_group_name, media_service_name, parameters, custom_headers = nil) - response = sync_storage_keys_async(resource_group_name, media_service_name, parameters, custom_headers).value! + def sync_storage_keys(resource_group_name, media_service_name, parameters, custom_headers:nil) + response = sync_storage_keys_async(resource_group_name, media_service_name, parameters, custom_headers:custom_headers).value! nil end @@ -861,8 +861,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def sync_storage_keys_with_http_info(resource_group_name, media_service_name, parameters, custom_headers = nil) - sync_storage_keys_async(resource_group_name, media_service_name, parameters, custom_headers).value! + def sync_storage_keys_with_http_info(resource_group_name, media_service_name, parameters, custom_headers:nil) + sync_storage_keys_async(resource_group_name, media_service_name, parameters, custom_headers:custom_headers).value! end # @@ -879,7 +879,7 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def sync_storage_keys_async(resource_group_name, media_service_name, parameters, custom_headers = nil) + def sync_storage_keys_async(resource_group_name, media_service_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -891,7 +891,6 @@ module Azure::MediaServices::Mgmt::V2015_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_media_services/lib/2015-10-01/generated/azure_mgmt_media_services/operations.rb b/management/azure_mgmt_media_services/lib/2015-10-01/generated/azure_mgmt_media_services/operations.rb index c5ebd3d1a..982b52352 100644 --- a/management/azure_mgmt_media_services/lib/2015-10-01/generated/azure_mgmt_media_services/operations.rb +++ b/management/azure_mgmt_media_services/lib/2015-10-01/generated/azure_mgmt_media_services/operations.rb @@ -29,8 +29,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [OperationListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::MediaServices::Mgmt::V2015_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_media_services/lib/profiles/latest/modules/mediaservices_profile_module.rb b/management/azure_mgmt_media_services/lib/profiles/latest/modules/mediaservices_profile_module.rb index 66459b2a6..351e37f6f 100644 --- a/management/azure_mgmt_media_services/lib/profiles/latest/modules/mediaservices_profile_module.rb +++ b/management/azure_mgmt_media_services/lib/profiles/latest/modules/mediaservices_profile_module.rb @@ -49,13 +49,13 @@ module Azure::MediaServices::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::MediaServices::Mgmt::V2015_10_01::MediaServicesManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::MediaServices::Mgmt::V2015_10_01::MediaServicesManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @media_service_operations = client_0.media_service_operations + add_telemetry(@client_0) + @operations = @client_0.operations + @media_service_operations = @client_0.media_service_operations @model_classes = ModelClasses.new end @@ -65,6 +65,14 @@ module Azure::MediaServices::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/app_collections.rb b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/app_collections.rb index 91aa64867..20b689988 100644 --- a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/app_collections.rb +++ b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/app_collections.rb @@ -29,8 +29,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -113,8 +114,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [AppCollectionNameAvailability] operation results. # - def check_name_availability(parameters, custom_headers = nil) - response = check_name_availability_async(parameters, custom_headers).value! + def check_name_availability(parameters, custom_headers:nil) + response = check_name_availability_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(parameters, custom_headers = nil) - check_name_availability_async(parameters, custom_headers).value! + def check_name_availability_with_http_info(parameters, custom_headers:nil) + check_name_availability_async(parameters, custom_headers:custom_headers).value! end # @@ -140,14 +141,13 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(parameters, custom_headers = nil) + def check_name_availability_async(parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -210,8 +210,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [AppCollectionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -225,8 +225,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -239,11 +239,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -296,12 +297,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # @return [AppCollectionListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/apps.rb b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/apps.rb index cb802c0e7..a2155fcd9 100644 --- a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/apps.rb +++ b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/apps.rb @@ -31,8 +31,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Array] operation results. # - def list(resource_group_name, app_collection, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, app_collection, custom_headers) + def list(resource_group_name, app_collection, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, app_collection, custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, app_collection, custom_headers = nil) - list_async(resource_group_name, app_collection, custom_headers).value! + def list_with_http_info(resource_group_name, app_collection, custom_headers:nil) + list_async(resource_group_name, app_collection, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, app_collection, custom_headers = nil) + def list_async(resource_group_name, app_collection, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -68,6 +68,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -122,8 +123,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [AppListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -137,8 +138,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -151,11 +152,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -209,12 +211,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [AppListResult] which provide lazy access to pages of the response. # - def list_as_lazy(resource_group_name, app_collection, custom_headers = nil) - response = list_async(resource_group_name, app_collection, custom_headers).value! + def list_as_lazy(resource_group_name, app_collection, custom_headers:nil) + response = list_async(resource_group_name, app_collection, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/campaigns.rb b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/campaigns.rb index 55fb2bdf8..682f58fdf 100644 --- a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/campaigns.rb +++ b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/campaigns.rb @@ -55,8 +55,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Array] operation results. # - def list(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, app_collection, app_name, kind, skip, top, filter, orderby, search, custom_headers) + def list(resource_group_name, app_collection, app_name, kind, skip:nil, top:nil, filter:nil, orderby:nil, search:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, app_collection, app_name, kind, skip:skip, top:top, filter:filter, orderby:orderby, search:search, custom_headers:custom_headers) first_page.get_all_items end @@ -94,8 +94,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil) - list_async(resource_group_name, app_collection, app_name, kind, skip, top, filter, orderby, search, custom_headers).value! + def list_with_http_info(resource_group_name, app_collection, app_name, kind, skip:nil, top:nil, filter:nil, orderby:nil, search:nil, custom_headers:nil) + list_async(resource_group_name, app_collection, app_name, kind, skip:skip, top:top, filter:filter, orderby:orderby, search:search, custom_headers:custom_headers).value! end # @@ -132,7 +132,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil) + def list_async(resource_group_name, app_collection, app_name, kind, skip:nil, top:nil, filter:nil, orderby:nil, search:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -142,6 +142,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -201,8 +202,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignStateResult] operation results. # - def create(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil) - response = create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value! + def create(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil) + response = create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -221,8 +222,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil) - create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value! + def create_with_http_info(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil) + create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:custom_headers).value! end # @@ -240,7 +241,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil) + def create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -251,7 +252,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -319,8 +319,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignResult] operation results. # - def get(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil) - response = get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value! + def get(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil) + response = get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -339,8 +339,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil) - get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value! + def get_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil) + get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value! end # @@ -358,7 +358,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil) + def get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil) fail ArgumentError, 'kind is nil' if kind.nil? fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -369,6 +369,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -430,8 +431,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignStateResult] operation results. # - def update(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers = nil) - response = update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers).value! + def update(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers:nil) + response = update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -452,8 +453,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers = nil) - update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers).value! + def update_with_http_info(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers:nil) + update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value! end # @@ -473,7 +474,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers = nil) + def update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers:nil) fail ArgumentError, 'kind is nil' if kind.nil? fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -485,7 +486,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -551,8 +551,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # will be added to the HTTP request. # # - def delete(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil) - response = delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value! + def delete(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil) + response = delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value! nil end @@ -570,8 +570,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil) - delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value! + def delete_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil) + delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value! end # @@ -588,7 +588,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil) + def delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil) fail ArgumentError, 'kind is nil' if kind.nil? fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -599,6 +599,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -648,8 +649,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignResult] operation results. # - def get_by_name(resource_group_name, app_collection, app_name, kind, name, custom_headers = nil) - response = get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers).value! + def get_by_name(resource_group_name, app_collection, app_name, kind, name, custom_headers:nil) + response = get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -668,8 +669,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_name_with_http_info(resource_group_name, app_collection, app_name, kind, name, custom_headers = nil) - get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers).value! + def get_by_name_with_http_info(resource_group_name, app_collection, app_name, kind, name, custom_headers:nil) + get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers:custom_headers).value! end # @@ -687,7 +688,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers = nil) + def get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -698,6 +699,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -758,8 +760,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignStateResult] operation results. # - def test_saved(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil) - response = test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value! + def test_saved(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil) + response = test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -779,8 +781,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def test_saved_with_http_info(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil) - test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value! + def test_saved_with_http_info(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil) + test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:custom_headers).value! end # @@ -799,7 +801,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil) + def test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -811,7 +813,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -879,8 +880,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignState] operation results. # - def test_new(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil) - response = test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value! + def test_new(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil) + response = test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -899,8 +900,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def test_new_with_http_info(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil) - test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value! + def test_new_with_http_info(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil) + test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:custom_headers).value! end # @@ -918,7 +919,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil) + def test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -929,7 +930,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -996,8 +996,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignStateResult] operation results. # - def activate(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil) - response = activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value! + def activate(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil) + response = activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1015,8 +1015,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def activate_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil) - activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value! + def activate_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil) + activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value! end # @@ -1033,7 +1033,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil) + def activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -1044,6 +1044,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1102,8 +1103,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignStateResult] operation results. # - def suspend(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil) - response = suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value! + def suspend(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil) + response = suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1121,8 +1122,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def suspend_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil) - suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value! + def suspend_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil) + suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value! end # @@ -1139,7 +1140,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil) + def suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -1150,6 +1151,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1211,8 +1213,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignPushResult] operation results. # - def push(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil) - response = push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value! + def push(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil) + response = push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1233,8 +1235,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def push_with_http_info(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil) - push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value! + def push_with_http_info(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil) + push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:custom_headers).value! end # @@ -1254,7 +1256,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil) + def push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -1266,7 +1268,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1333,8 +1334,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignStatisticsResult] operation results. # - def get_statistics(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil) - response = get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value! + def get_statistics(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil) + response = get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1352,8 +1353,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_statistics_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil) - get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value! + def get_statistics_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil) + get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value! end # @@ -1370,7 +1371,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil) + def get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil) fail ArgumentError, 'kind is nil' if kind.nil? fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1381,6 +1382,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1439,8 +1441,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignStateResult] operation results. # - def finish(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil) - response = finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value! + def finish(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil) + response = finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1458,8 +1460,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def finish_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil) - finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value! + def finish_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil) + finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value! end # @@ -1476,7 +1478,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil) + def finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -1487,6 +1489,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1541,8 +1544,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [CampaignsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1556,8 +1559,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1570,11 +1573,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1653,12 +1657,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # @return [CampaignsListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil) - response = list_async(resource_group_name, app_collection, app_name, kind, skip, top, filter, orderby, search, custom_headers).value! + def list_as_lazy(resource_group_name, app_collection, app_name, kind, skip:nil, top:nil, filter:nil, orderby:nil, search:nil, custom_headers:nil) + response = list_async(resource_group_name, app_collection, app_name, kind, skip:skip, top:top, filter:filter, orderby:orderby, search:search, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/devices.rb b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/devices.rb index 704d3be49..309553b8d 100644 --- a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/devices.rb +++ b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/devices.rb @@ -72,8 +72,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Array] operation results. # - def list(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, app_collection, app_name, top, select, filter, custom_headers) + def list(resource_group_name, app_collection, app_name, top:nil, select:nil, filter:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, app_collection, app_name, top:top, select:select, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -128,8 +128,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil) - list_async(resource_group_name, app_collection, app_name, top, select, filter, custom_headers).value! + def list_with_http_info(resource_group_name, app_collection, app_name, top:nil, select:nil, filter:nil, custom_headers:nil) + list_async(resource_group_name, app_collection, app_name, top:top, select:select, filter:filter, custom_headers:custom_headers).value! end # @@ -183,7 +183,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil) + def list_async(resource_group_name, app_collection, app_name, top:nil, select:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -192,6 +192,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -248,8 +249,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Device] operation results. # - def get_by_device_id(resource_group_name, app_collection, app_name, device_id, custom_headers = nil) - response = get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers).value! + def get_by_device_id(resource_group_name, app_collection, app_name, device_id, custom_headers:nil) + response = get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -265,8 +266,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_device_id_with_http_info(resource_group_name, app_collection, app_name, device_id, custom_headers = nil) - get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers).value! + def get_by_device_id_with_http_info(resource_group_name, app_collection, app_name, device_id, custom_headers:nil) + get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers:custom_headers).value! end # @@ -281,7 +282,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers = nil) + def get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -291,6 +292,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -348,8 +350,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Device] operation results. # - def get_by_user_id(resource_group_name, app_collection, app_name, user_id, custom_headers = nil) - response = get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers).value! + def get_by_user_id(resource_group_name, app_collection, app_name, user_id, custom_headers:nil) + response = get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -366,8 +368,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_user_id_with_http_info(resource_group_name, app_collection, app_name, user_id, custom_headers = nil) - get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers).value! + def get_by_user_id_with_http_info(resource_group_name, app_collection, app_name, user_id, custom_headers:nil) + get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers:custom_headers).value! end # @@ -383,7 +385,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers = nil) + def get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -393,6 +395,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -452,8 +455,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [DeviceTagsResult] operation results. # - def tag_by_device_id(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def tag_by_device_id(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -472,8 +475,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def tag_by_device_id_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def tag_by_device_id_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -491,7 +494,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -501,7 +504,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -569,8 +571,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [DeviceTagsResult] operation results. # - def tag_by_user_id(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def tag_by_user_id(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -589,8 +591,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def tag_by_user_id_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def tag_by_user_id_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -608,7 +610,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -618,7 +620,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -681,8 +682,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [DevicesQueryResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -696,8 +697,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -710,11 +711,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -810,12 +812,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # @return [DevicesQueryResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil) - response = list_async(resource_group_name, app_collection, app_name, top, select, filter, custom_headers).value! + def list_as_lazy(resource_group_name, app_collection, app_name, top:nil, select:nil, filter:nil, custom_headers:nil) + response = list_async(resource_group_name, app_collection, app_name, top:top, select:select, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/export_tasks.rb b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/export_tasks.rb index a3ff8a4fc..dd101a07f 100644 --- a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/export_tasks.rb +++ b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/export_tasks.rb @@ -49,8 +49,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Array] operation results. # - def list(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers) + def list(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, app_collection, app_name, skip:skip, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -82,8 +82,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil) - list_async(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil) + list_async(resource_group_name, app_collection, app_name, skip:skip, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -126,6 +126,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -182,8 +183,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskResult] operation results. # - def get(resource_group_name, app_collection, app_name, id, custom_headers = nil) - response = get_async(resource_group_name, app_collection, app_name, id, custom_headers).value! + def get(resource_group_name, app_collection, app_name, id, custom_headers:nil) + response = get_async(resource_group_name, app_collection, app_name, id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -199,8 +200,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, app_collection, app_name, id, custom_headers = nil) - get_async(resource_group_name, app_collection, app_name, id, custom_headers).value! + def get_with_http_info(resource_group_name, app_collection, app_name, id, custom_headers:nil) + get_async(resource_group_name, app_collection, app_name, id, custom_headers:custom_headers).value! end # @@ -215,7 +216,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, app_collection, app_name, id, custom_headers = nil) + def get_async(resource_group_name, app_collection, app_name, id, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -225,6 +226,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -281,8 +283,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskResult] operation results. # - def create_activities_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_activities_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -298,8 +300,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_activities_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_activities_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -314,7 +316,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -324,7 +326,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -389,8 +390,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskResult] operation results. # - def create_crashes_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_crashes_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -406,8 +407,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_crashes_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_crashes_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -422,7 +423,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -432,7 +433,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -497,8 +497,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskResult] operation results. # - def create_errors_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_errors_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -514,8 +514,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_errors_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_errors_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -530,7 +530,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -540,7 +540,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -605,8 +604,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskResult] operation results. # - def create_events_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_events_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -622,8 +621,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_events_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_events_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -638,7 +637,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -648,7 +647,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -713,8 +711,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskResult] operation results. # - def create_jobs_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_jobs_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -730,8 +728,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_jobs_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_jobs_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -746,7 +744,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -756,7 +754,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -821,8 +818,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskResult] operation results. # - def create_sessions_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_sessions_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -838,8 +835,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_sessions_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_sessions_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -854,7 +851,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -864,7 +861,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -929,8 +925,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskResult] operation results. # - def create_tags_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_tags_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -946,8 +942,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_tags_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_tags_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -962,7 +958,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -972,7 +968,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1037,8 +1032,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskResult] operation results. # - def create_tokens_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_tokens_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1054,8 +1049,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_tokens_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_tokens_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -1070,7 +1065,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -1080,7 +1075,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1145,8 +1139,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskResult] operation results. # - def create_feedback_task_by_date_range(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_feedback_task_by_date_range(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1162,8 +1156,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_feedback_task_by_date_range_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_feedback_task_by_date_range_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -1178,7 +1172,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -1188,7 +1182,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1253,8 +1246,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskResult] operation results. # - def create_feedback_task_by_campaign(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_feedback_task_by_campaign(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1270,8 +1263,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_feedback_task_by_campaign_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_feedback_task_by_campaign_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -1286,7 +1279,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -1296,7 +1289,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1359,8 +1351,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ExportTaskListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1374,8 +1366,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1388,11 +1380,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1465,12 +1458,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # @return [ExportTaskListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, app_collection, app_name, skip:skip, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/import_tasks.rb b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/import_tasks.rb index 5f1a66d2d..29aa3eff2 100644 --- a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/import_tasks.rb +++ b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/import_tasks.rb @@ -49,8 +49,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Array] operation results. # - def list(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers) + def list(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, app_collection, app_name, skip:skip, top:top, orderby:orderby, custom_headers:custom_headers) first_page.get_all_items end @@ -82,8 +82,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil) - list_async(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers).value! + def list_with_http_info(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil) + list_async(resource_group_name, app_collection, app_name, skip:skip, top:top, orderby:orderby, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil) + def list_async(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -126,6 +126,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -182,8 +183,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ImportTaskResult] operation results. # - def create(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -199,8 +200,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) - create_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value! + def create_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) + create_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value! end # @@ -215,7 +216,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil) + def create_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'app_collection is nil' if app_collection.nil? @@ -225,7 +226,6 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -301,8 +301,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ImportTaskResult] operation results. # - def get(id, resource_group_name, app_collection, app_name, custom_headers = nil) - response = get_async(id, resource_group_name, app_collection, app_name, custom_headers).value! + def get(id, resource_group_name, app_collection, app_name, custom_headers:nil) + response = get_async(id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -319,8 +319,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(id, resource_group_name, app_collection, app_name, custom_headers = nil) - get_async(id, resource_group_name, app_collection, app_name, custom_headers).value! + def get_with_http_info(id, resource_group_name, app_collection, app_name, custom_headers:nil) + get_async(id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value! end # @@ -336,7 +336,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(id, resource_group_name, app_collection, app_name, custom_headers = nil) + def get_async(id, resource_group_name, app_collection, app_name, custom_headers:nil) fail ArgumentError, 'id is nil' if id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -346,6 +346,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -400,8 +401,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [ImportTaskListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -415,8 +416,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -429,11 +430,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -506,12 +508,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # @return [ImportTaskListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil) - response = list_async(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers).value! + def list_as_lazy(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil) + response = list_async(resource_group_name, app_collection, app_name, skip:skip, top:top, orderby:orderby, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/supported_platforms.rb b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/supported_platforms.rb index c6310b4b9..299e027b6 100644 --- a/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/supported_platforms.rb +++ b/management/azure_mgmt_mobile_engagement/lib/2014-12-01/generated/azure_mgmt_mobile_engagement/supported_platforms.rb @@ -29,8 +29,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [SupportedPlatformsListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_mobile_engagement/lib/profiles/latest/modules/mobileengagement_profile_module.rb b/management/azure_mgmt_mobile_engagement/lib/profiles/latest/modules/mobileengagement_profile_module.rb index 337dd08bc..85171ec0d 100644 --- a/management/azure_mgmt_mobile_engagement/lib/profiles/latest/modules/mobileengagement_profile_module.rb +++ b/management/azure_mgmt_mobile_engagement/lib/profiles/latest/modules/mobileengagement_profile_module.rb @@ -125,18 +125,18 @@ module Azure::MobileEngagement::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::MobileEngagement::Mgmt::V2014_12_01::EngagementManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::MobileEngagement::Mgmt::V2014_12_01::EngagementManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @app_collections = client_0.app_collections - @apps = client_0.apps - @supported_platforms = client_0.supported_platforms - @campaigns = client_0.campaigns - @devices = client_0.devices - @export_tasks = client_0.export_tasks - @import_tasks = client_0.import_tasks + add_telemetry(@client_0) + @app_collections = @client_0.app_collections + @apps = @client_0.apps + @supported_platforms = @client_0.supported_platforms + @campaigns = @client_0.campaigns + @devices = @client_0.devices + @export_tasks = @client_0.export_tasks + @import_tasks = @client_0.import_tasks @model_classes = ModelClasses.new end @@ -146,6 +146,14 @@ module Azure::MobileEngagement::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_monitor/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb b/management/azure_mgmt_monitor/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb index 90987a6cd..bfaefe17a 100644 --- a/management/azure_mgmt_monitor/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +++ b/management/azure_mgmt_monitor/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb @@ -30,8 +30,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -57,13 +57,14 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -120,8 +121,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [AutoscaleSettingResource] operation results. # - def create_or_update(resource_group_name, autoscale_setting_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, autoscale_setting_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, autoscale_setting_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, autoscale_setting_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -137,8 +138,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, autoscale_setting_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, autoscale_setting_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, autoscale_setting_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, autoscale_setting_name, parameters, custom_headers:custom_headers).value! end # @@ -153,7 +154,7 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, autoscale_setting_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, autoscale_setting_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'autoscale_setting_name is nil' if autoscale_setting_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -162,7 +163,6 @@ module Azure::Monitor::Mgmt::V2015_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -234,8 +234,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, autoscale_setting_name, custom_headers = nil) - response = delete_async(resource_group_name, autoscale_setting_name, custom_headers).value! + def delete(resource_group_name, autoscale_setting_name, custom_headers:nil) + response = delete_async(resource_group_name, autoscale_setting_name, custom_headers:custom_headers).value! nil end @@ -249,8 +249,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, autoscale_setting_name, custom_headers = nil) - delete_async(resource_group_name, autoscale_setting_name, custom_headers).value! + def delete_with_http_info(resource_group_name, autoscale_setting_name, custom_headers:nil) + delete_async(resource_group_name, autoscale_setting_name, custom_headers:custom_headers).value! end # @@ -263,7 +263,7 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, autoscale_setting_name, custom_headers = nil) + def delete_async(resource_group_name, autoscale_setting_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'autoscale_setting_name is nil' if autoscale_setting_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -271,6 +271,7 @@ module Azure::Monitor::Mgmt::V2015_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -315,8 +316,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [AutoscaleSettingResource] operation results. # - def get(resource_group_name, autoscale_setting_name, custom_headers = nil) - response = get_async(resource_group_name, autoscale_setting_name, custom_headers).value! + def get(resource_group_name, autoscale_setting_name, custom_headers:nil) + response = get_async(resource_group_name, autoscale_setting_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -330,8 +331,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, autoscale_setting_name, custom_headers = nil) - get_async(resource_group_name, autoscale_setting_name, custom_headers).value! + def get_with_http_info(resource_group_name, autoscale_setting_name, custom_headers:nil) + get_async(resource_group_name, autoscale_setting_name, custom_headers:custom_headers).value! end # @@ -344,7 +345,7 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, autoscale_setting_name, custom_headers = nil) + def get_async(resource_group_name, autoscale_setting_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'autoscale_setting_name is nil' if autoscale_setting_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -352,6 +353,7 @@ module Azure::Monitor::Mgmt::V2015_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -409,8 +411,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [AutoscaleSettingResource] operation results. # - def update(resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers = nil) - response = update_async(resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers).value! + def update(resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers:nil) + response = update_async(resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -427,8 +429,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers = nil) - update_async(resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers).value! + def update_with_http_info(resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers:nil) + update_async(resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers:custom_headers).value! end # @@ -444,7 +446,7 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers = nil) + def update_async(resource_group_name, autoscale_setting_name, autoscale_setting_resource, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'autoscale_setting_name is nil' if autoscale_setting_name.nil? @@ -453,7 +455,6 @@ module Azure::Monitor::Mgmt::V2015_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -516,8 +517,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [AutoscaleSettingResourceCollection] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -531,8 +532,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -545,11 +546,12 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -603,12 +605,12 @@ module Azure::Monitor::Mgmt::V2015_04_01 # @return [AutoscaleSettingResourceCollection] which provide lazy access to # pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_monitor/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb b/management/azure_mgmt_monitor/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb index f272cb718..75a553c6e 100644 --- a/management/azure_mgmt_monitor/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +++ b/management/azure_mgmt_monitor/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb @@ -29,8 +29,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [OperationListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::Monitor::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb b/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb index 5319edfbc..fa3e74be6 100644 --- a/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +++ b/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb @@ -32,8 +32,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Incident] operation results. # - def get(resource_group_name, rule_name, incident_name, custom_headers = nil) - response = get_async(resource_group_name, rule_name, incident_name, custom_headers).value! + def get(resource_group_name, rule_name, incident_name, custom_headers:nil) + response = get_async(resource_group_name, rule_name, incident_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, rule_name, incident_name, custom_headers = nil) - get_async(resource_group_name, rule_name, incident_name, custom_headers).value! + def get_with_http_info(resource_group_name, rule_name, incident_name, custom_headers:nil) + get_async(resource_group_name, rule_name, incident_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, rule_name, incident_name, custom_headers = nil) + def get_async(resource_group_name, rule_name, incident_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? fail ArgumentError, 'incident_name is nil' if incident_name.nil? @@ -72,6 +72,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [IncidentListResult] operation results. # - def list_by_alert_rule(resource_group_name, rule_name, custom_headers = nil) - response = list_by_alert_rule_async(resource_group_name, rule_name, custom_headers).value! + def list_by_alert_rule(resource_group_name, rule_name, custom_headers:nil) + response = list_by_alert_rule_async(resource_group_name, rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -141,8 +142,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_alert_rule_with_http_info(resource_group_name, rule_name, custom_headers = nil) - list_by_alert_rule_async(resource_group_name, rule_name, custom_headers).value! + def list_by_alert_rule_with_http_info(resource_group_name, rule_name, custom_headers:nil) + list_by_alert_rule_async(resource_group_name, rule_name, custom_headers:custom_headers).value! end # @@ -155,7 +156,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_alert_rule_async(resource_group_name, rule_name, custom_headers = nil) + def list_by_alert_rule_async(resource_group_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -163,6 +164,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb b/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb index 9bc52a9e2..c2de7950c 100644 --- a/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +++ b/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb @@ -33,8 +33,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [AlertRuleResource] operation results. # - def create_or_update(resource_group_name, rule_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, rule_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, rule_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, rule_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, rule_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, rule_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, rule_name, parameters, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, rule_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -75,7 +75,6 @@ module Azure::Monitor::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -147,8 +146,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def delete(resource_group_name, rule_name, custom_headers = nil) - response = delete_async(resource_group_name, rule_name, custom_headers).value! + def delete(resource_group_name, rule_name, custom_headers:nil) + response = delete_async(resource_group_name, rule_name, custom_headers:custom_headers).value! nil end @@ -162,8 +161,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, rule_name, custom_headers = nil) - delete_async(resource_group_name, rule_name, custom_headers).value! + def delete_with_http_info(resource_group_name, rule_name, custom_headers:nil) + delete_async(resource_group_name, rule_name, custom_headers:custom_headers).value! end # @@ -176,7 +175,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, rule_name, custom_headers = nil) + def delete_async(resource_group_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -184,6 +183,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -228,8 +228,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [AlertRuleResource] operation results. # - def get(resource_group_name, rule_name, custom_headers = nil) - response = get_async(resource_group_name, rule_name, custom_headers).value! + def get(resource_group_name, rule_name, custom_headers:nil) + response = get_async(resource_group_name, rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -243,8 +243,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, rule_name, custom_headers = nil) - get_async(resource_group_name, rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, rule_name, custom_headers:nil) + get_async(resource_group_name, rule_name, custom_headers:custom_headers).value! end # @@ -257,7 +257,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, rule_name, custom_headers = nil) + def get_async(resource_group_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -265,6 +265,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -322,8 +323,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [AlertRuleResource] operation results. # - def update(resource_group_name, rule_name, alert_rules_resource, custom_headers = nil) - response = update_async(resource_group_name, rule_name, alert_rules_resource, custom_headers).value! + def update(resource_group_name, rule_name, alert_rules_resource, custom_headers:nil) + response = update_async(resource_group_name, rule_name, alert_rules_resource, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -340,8 +341,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, rule_name, alert_rules_resource, custom_headers = nil) - update_async(resource_group_name, rule_name, alert_rules_resource, custom_headers).value! + def update_with_http_info(resource_group_name, rule_name, alert_rules_resource, custom_headers:nil) + update_async(resource_group_name, rule_name, alert_rules_resource, custom_headers:custom_headers).value! end # @@ -357,7 +358,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, rule_name, alert_rules_resource, custom_headers = nil) + def update_async(resource_group_name, rule_name, alert_rules_resource, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -366,7 +367,6 @@ module Azure::Monitor::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -438,8 +438,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [AlertRuleResourceCollection] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -452,8 +452,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -465,13 +465,14 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb b/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb index 184e21e01..2ce7f6134 100644 --- a/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +++ b/management/azure_mgmt_monitor/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb @@ -29,8 +29,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def delete(log_profile_name, custom_headers = nil) - response = delete_async(log_profile_name, custom_headers).value! + def delete(log_profile_name, custom_headers:nil) + response = delete_async(log_profile_name, custom_headers:custom_headers).value! nil end @@ -43,8 +43,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(log_profile_name, custom_headers = nil) - delete_async(log_profile_name, custom_headers).value! + def delete_with_http_info(log_profile_name, custom_headers:nil) + delete_async(log_profile_name, custom_headers:custom_headers).value! end # @@ -56,13 +56,14 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(log_profile_name, custom_headers = nil) + def delete_async(log_profile_name, custom_headers:nil) fail ArgumentError, 'log_profile_name is nil' if log_profile_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -106,8 +107,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [LogProfileResource] operation results. # - def get(log_profile_name, custom_headers = nil) - response = get_async(log_profile_name, custom_headers).value! + def get(log_profile_name, custom_headers:nil) + response = get_async(log_profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -120,8 +121,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(log_profile_name, custom_headers = nil) - get_async(log_profile_name, custom_headers).value! + def get_with_http_info(log_profile_name, custom_headers:nil) + get_async(log_profile_name, custom_headers:custom_headers).value! end # @@ -133,13 +134,14 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(log_profile_name, custom_headers = nil) + def get_async(log_profile_name, custom_headers:nil) fail ArgumentError, 'log_profile_name is nil' if log_profile_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -194,8 +196,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [LogProfileResource] operation results. # - def create_or_update(log_profile_name, parameters, custom_headers = nil) - response = create_or_update_async(log_profile_name, parameters, custom_headers).value! + def create_or_update(log_profile_name, parameters, custom_headers:nil) + response = create_or_update_async(log_profile_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -209,8 +211,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(log_profile_name, parameters, custom_headers = nil) - create_or_update_async(log_profile_name, parameters, custom_headers).value! + def create_or_update_with_http_info(log_profile_name, parameters, custom_headers:nil) + create_or_update_async(log_profile_name, parameters, custom_headers:custom_headers).value! end # @@ -223,7 +225,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(log_profile_name, parameters, custom_headers = nil) + def create_or_update_async(log_profile_name, parameters, custom_headers:nil) fail ArgumentError, 'log_profile_name is nil' if log_profile_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -231,7 +233,6 @@ module Azure::Monitor::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -296,8 +297,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [LogProfileResource] operation results. # - def update(log_profile_name, log_profiles_resource, custom_headers = nil) - response = update_async(log_profile_name, log_profiles_resource, custom_headers).value! + def update(log_profile_name, log_profiles_resource, custom_headers:nil) + response = update_async(log_profile_name, log_profiles_resource, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -313,8 +314,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(log_profile_name, log_profiles_resource, custom_headers = nil) - update_async(log_profile_name, log_profiles_resource, custom_headers).value! + def update_with_http_info(log_profile_name, log_profiles_resource, custom_headers:nil) + update_async(log_profile_name, log_profiles_resource, custom_headers:custom_headers).value! end # @@ -329,7 +330,7 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(log_profile_name, log_profiles_resource, custom_headers = nil) + def update_async(log_profile_name, log_profiles_resource, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'log_profile_name is nil' if log_profile_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -337,7 +338,6 @@ module Azure::Monitor::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -398,8 +398,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [LogProfileCollection] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -411,8 +411,8 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -423,12 +423,13 @@ module Azure::Monitor::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_monitor/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb b/management/azure_mgmt_monitor/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb index 63bbebd32..6e89cda49 100644 --- a/management/azure_mgmt_monitor/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +++ b/management/azure_mgmt_monitor/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb @@ -31,8 +31,8 @@ module Azure::Monitor::Mgmt::V2016_09_01 # # @return [ServiceDiagnosticSettingsResource] operation results. # - def get(resource_uri, custom_headers = nil) - response = get_async(resource_uri, custom_headers).value! + def get(resource_uri, custom_headers:nil) + response = get_async(resource_uri, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Monitor::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_uri, custom_headers = nil) - get_async(resource_uri, custom_headers).value! + def get_with_http_info(resource_uri, custom_headers:nil) + get_async(resource_uri, custom_headers:custom_headers).value! end # @@ -60,12 +60,13 @@ module Azure::Monitor::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_uri, custom_headers = nil) + def get_async(resource_uri, custom_headers:nil) fail ArgumentError, 'resource_uri is nil' if resource_uri.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -122,8 +123,8 @@ module Azure::Monitor::Mgmt::V2016_09_01 # # @return [ServiceDiagnosticSettingsResource] operation results. # - def create_or_update(resource_uri, parameters, custom_headers = nil) - response = create_or_update_async(resource_uri, parameters, custom_headers).value! + def create_or_update(resource_uri, parameters, custom_headers:nil) + response = create_or_update_async(resource_uri, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -139,8 +140,8 @@ module Azure::Monitor::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_uri, parameters, custom_headers = nil) - create_or_update_async(resource_uri, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_uri, parameters, custom_headers:nil) + create_or_update_async(resource_uri, parameters, custom_headers:custom_headers).value! end # @@ -155,14 +156,13 @@ module Azure::Monitor::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_uri, parameters, custom_headers = nil) + def create_or_update_async(resource_uri, parameters, custom_headers:nil) fail ArgumentError, 'resource_uri is nil' if resource_uri.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -229,8 +229,8 @@ module Azure::Monitor::Mgmt::V2016_09_01 # # @return [ServiceDiagnosticSettingsResource] operation results. # - def update(resource_uri, service_diagnostic_settings_resource, custom_headers = nil) - response = update_async(resource_uri, service_diagnostic_settings_resource, custom_headers).value! + def update(resource_uri, service_diagnostic_settings_resource, custom_headers:nil) + response = update_async(resource_uri, service_diagnostic_settings_resource, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -248,8 +248,8 @@ module Azure::Monitor::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_uri, service_diagnostic_settings_resource, custom_headers = nil) - update_async(resource_uri, service_diagnostic_settings_resource, custom_headers).value! + def update_with_http_info(resource_uri, service_diagnostic_settings_resource, custom_headers:nil) + update_async(resource_uri, service_diagnostic_settings_resource, custom_headers:custom_headers).value! end # @@ -266,14 +266,13 @@ module Azure::Monitor::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_uri, service_diagnostic_settings_resource, custom_headers = nil) + def update_async(resource_uri, service_diagnostic_settings_resource, custom_headers:nil) fail ArgumentError, 'resource_uri is nil' if resource_uri.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'service_diagnostic_settings_resource is nil' if service_diagnostic_settings_resource.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_monitor/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb b/management/azure_mgmt_monitor/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb index 2b6d8daa5..f185c2b5a 100644 --- a/management/azure_mgmt_monitor/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +++ b/management/azure_mgmt_monitor/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb @@ -33,8 +33,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [ActionGroupResource] operation results. # - def create_or_update(resource_group_name, action_group_name, action_group, custom_headers = nil) - response = create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers).value! + def create_or_update(resource_group_name, action_group_name, action_group, custom_headers:nil) + response = create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, action_group_name, action_group, custom_headers = nil) - create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, action_group_name, action_group, custom_headers:nil) + create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers = nil) + def create_or_update_async(resource_group_name, action_group_name, action_group, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'action_group_name is nil' if action_group_name.nil? fail ArgumentError, 'action_group is nil' if action_group.nil? @@ -75,7 +75,6 @@ module Azure::Monitor::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -148,8 +147,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [ActionGroupResource] operation results. # - def get(resource_group_name, action_group_name, custom_headers = nil) - response = get_async(resource_group_name, action_group_name, custom_headers).value! + def get(resource_group_name, action_group_name, custom_headers:nil) + response = get_async(resource_group_name, action_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -163,8 +162,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, action_group_name, custom_headers = nil) - get_async(resource_group_name, action_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, action_group_name, custom_headers:nil) + get_async(resource_group_name, action_group_name, custom_headers:custom_headers).value! end # @@ -177,7 +176,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, action_group_name, custom_headers = nil) + def get_async(resource_group_name, action_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'action_group_name is nil' if action_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -185,6 +184,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -238,8 +238,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, action_group_name, custom_headers = nil) - response = delete_async(resource_group_name, action_group_name, custom_headers).value! + def delete(resource_group_name, action_group_name, custom_headers:nil) + response = delete_async(resource_group_name, action_group_name, custom_headers:custom_headers).value! nil end @@ -253,8 +253,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, action_group_name, custom_headers = nil) - delete_async(resource_group_name, action_group_name, custom_headers).value! + def delete_with_http_info(resource_group_name, action_group_name, custom_headers:nil) + delete_async(resource_group_name, action_group_name, custom_headers:custom_headers).value! end # @@ -267,7 +267,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, action_group_name, custom_headers = nil) + def delete_async(resource_group_name, action_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'action_group_name is nil' if action_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -275,6 +275,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -317,8 +318,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [ActionGroupList] operation results. # - def list_by_subscription_id(custom_headers = nil) - response = list_by_subscription_id_async(custom_headers).value! + def list_by_subscription_id(custom_headers:nil) + response = list_by_subscription_id_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -330,8 +331,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_id_with_http_info(custom_headers = nil) - list_by_subscription_id_async(custom_headers).value! + def list_by_subscription_id_with_http_info(custom_headers:nil) + list_by_subscription_id_async(custom_headers:custom_headers).value! end # @@ -342,12 +343,13 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_id_async(custom_headers = nil) + def list_by_subscription_id_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -401,8 +403,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [ActionGroupList] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -415,8 +417,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -428,13 +430,14 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -490,8 +493,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def enable_receiver(resource_group_name, action_group_name, enable_request, custom_headers = nil) - response = enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers).value! + def enable_receiver(resource_group_name, action_group_name, enable_request, custom_headers:nil) + response = enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers:custom_headers).value! nil end @@ -507,8 +510,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def enable_receiver_with_http_info(resource_group_name, action_group_name, enable_request, custom_headers = nil) - enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers).value! + def enable_receiver_with_http_info(resource_group_name, action_group_name, enable_request, custom_headers:nil) + enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers:custom_headers).value! end # @@ -523,7 +526,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers = nil) + def enable_receiver_async(resource_group_name, action_group_name, enable_request, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'action_group_name is nil' if action_group_name.nil? fail ArgumentError, 'enable_request is nil' if enable_request.nil? @@ -532,7 +535,6 @@ module Azure::Monitor::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_monitor/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb b/management/azure_mgmt_monitor/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb index 91433df20..bda2a8517 100644 --- a/management/azure_mgmt_monitor/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +++ b/management/azure_mgmt_monitor/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb @@ -33,8 +33,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [ActivityLogAlertResource] operation results. # - def create_or_update(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers = nil) - response = create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers).value! + def create_or_update(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers:nil) + response = create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers = nil) - create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers:nil) + create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers = nil) + def create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'activity_log_alert_name is nil' if activity_log_alert_name.nil? @@ -75,7 +75,6 @@ module Azure::Monitor::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -148,8 +147,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [ActivityLogAlertResource] operation results. # - def get(resource_group_name, activity_log_alert_name, custom_headers = nil) - response = get_async(resource_group_name, activity_log_alert_name, custom_headers).value! + def get(resource_group_name, activity_log_alert_name, custom_headers:nil) + response = get_async(resource_group_name, activity_log_alert_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -163,8 +162,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, activity_log_alert_name, custom_headers = nil) - get_async(resource_group_name, activity_log_alert_name, custom_headers).value! + def get_with_http_info(resource_group_name, activity_log_alert_name, custom_headers:nil) + get_async(resource_group_name, activity_log_alert_name, custom_headers:custom_headers).value! end # @@ -177,7 +176,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, activity_log_alert_name, custom_headers = nil) + def get_async(resource_group_name, activity_log_alert_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'activity_log_alert_name is nil' if activity_log_alert_name.nil? @@ -185,6 +184,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -238,8 +238,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, activity_log_alert_name, custom_headers = nil) - response = delete_async(resource_group_name, activity_log_alert_name, custom_headers).value! + def delete(resource_group_name, activity_log_alert_name, custom_headers:nil) + response = delete_async(resource_group_name, activity_log_alert_name, custom_headers:custom_headers).value! nil end @@ -253,8 +253,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, activity_log_alert_name, custom_headers = nil) - delete_async(resource_group_name, activity_log_alert_name, custom_headers).value! + def delete_with_http_info(resource_group_name, activity_log_alert_name, custom_headers:nil) + delete_async(resource_group_name, activity_log_alert_name, custom_headers:custom_headers).value! end # @@ -267,7 +267,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, activity_log_alert_name, custom_headers = nil) + def delete_async(resource_group_name, activity_log_alert_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'activity_log_alert_name is nil' if activity_log_alert_name.nil? @@ -275,6 +275,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -322,8 +323,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [ActivityLogAlertResource] operation results. # - def update(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers = nil) - response = update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers).value! + def update(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers:nil) + response = update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -340,8 +341,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers = nil) - update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers).value! + def update_with_http_info(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers:nil) + update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers:custom_headers).value! end # @@ -357,7 +358,7 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers = nil) + def update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'activity_log_alert_name is nil' if activity_log_alert_name.nil? @@ -366,7 +367,6 @@ module Azure::Monitor::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -427,8 +427,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [ActivityLogAlertList] operation results. # - def list_by_subscription_id(custom_headers = nil) - response = list_by_subscription_id_async(custom_headers).value! + def list_by_subscription_id(custom_headers:nil) + response = list_by_subscription_id_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -440,8 +440,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_id_with_http_info(custom_headers = nil) - list_by_subscription_id_async(custom_headers).value! + def list_by_subscription_id_with_http_info(custom_headers:nil) + list_by_subscription_id_async(custom_headers:custom_headers).value! end # @@ -452,12 +452,13 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_id_async(custom_headers = nil) + def list_by_subscription_id_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -511,8 +512,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [ActivityLogAlertList] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -525,8 +526,8 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -538,13 +539,14 @@ module Azure::Monitor::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_monitor/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb b/management/azure_mgmt_monitor/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb index bdca55889..44ec74f3c 100644 --- a/management/azure_mgmt_monitor/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +++ b/management/azure_mgmt_monitor/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb @@ -31,8 +31,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [DiagnosticSettingsCategoryResource] operation results. # - def get(resource_uri, name, custom_headers = nil) - response = get_async(resource_uri, name, custom_headers).value! + def get(resource_uri, name, custom_headers:nil) + response = get_async(resource_uri, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_uri, name, custom_headers = nil) - get_async(resource_uri, name, custom_headers).value! + def get_with_http_info(resource_uri, name, custom_headers:nil) + get_async(resource_uri, name, custom_headers:custom_headers).value! end # @@ -60,13 +60,14 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_uri, name, custom_headers = nil) + def get_async(resource_uri, name, custom_headers:nil) fail ArgumentError, 'resource_uri is nil' if resource_uri.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'name is nil' if name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -120,8 +121,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [DiagnosticSettingsCategoryResourceCollection] operation results. # - def list(resource_uri, custom_headers = nil) - response = list_async(resource_uri, custom_headers).value! + def list(resource_uri, custom_headers:nil) + response = list_async(resource_uri, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_uri, custom_headers = nil) - list_async(resource_uri, custom_headers).value! + def list_with_http_info(resource_uri, custom_headers:nil) + list_async(resource_uri, custom_headers:custom_headers).value! end # @@ -147,12 +148,13 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_uri, custom_headers = nil) + def list_async(resource_uri, custom_headers:nil) fail ArgumentError, 'resource_uri is nil' if resource_uri.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_monitor/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb b/management/azure_mgmt_monitor/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb index b55501801..0ec40ba75 100644 --- a/management/azure_mgmt_monitor/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +++ b/management/azure_mgmt_monitor/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb @@ -31,8 +31,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [DiagnosticSettingsResource] operation results. # - def get(resource_uri, name, custom_headers = nil) - response = get_async(resource_uri, name, custom_headers).value! + def get(resource_uri, name, custom_headers:nil) + response = get_async(resource_uri, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_uri, name, custom_headers = nil) - get_async(resource_uri, name, custom_headers).value! + def get_with_http_info(resource_uri, name, custom_headers:nil) + get_async(resource_uri, name, custom_headers:custom_headers).value! end # @@ -60,13 +60,14 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_uri, name, custom_headers = nil) + def get_async(resource_uri, name, custom_headers:nil) fail ArgumentError, 'resource_uri is nil' if resource_uri.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'name is nil' if name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -123,8 +124,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [DiagnosticSettingsResource] operation results. # - def create_or_update(resource_uri, parameters, name, custom_headers = nil) - response = create_or_update_async(resource_uri, parameters, name, custom_headers).value! + def create_or_update(resource_uri, parameters, name, custom_headers:nil) + response = create_or_update_async(resource_uri, parameters, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -140,8 +141,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_uri, parameters, name, custom_headers = nil) - create_or_update_async(resource_uri, parameters, name, custom_headers).value! + def create_or_update_with_http_info(resource_uri, parameters, name, custom_headers:nil) + create_or_update_async(resource_uri, parameters, name, custom_headers:custom_headers).value! end # @@ -156,7 +157,7 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_uri, parameters, name, custom_headers = nil) + def create_or_update_async(resource_uri, parameters, name, custom_headers:nil) fail ArgumentError, 'resource_uri is nil' if resource_uri.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -164,7 +165,6 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -226,8 +226,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # will be added to the HTTP request. # # - def delete(resource_uri, name, custom_headers = nil) - response = delete_async(resource_uri, name, custom_headers).value! + def delete(resource_uri, name, custom_headers:nil) + response = delete_async(resource_uri, name, custom_headers:custom_headers).value! nil end @@ -241,8 +241,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_uri, name, custom_headers = nil) - delete_async(resource_uri, name, custom_headers).value! + def delete_with_http_info(resource_uri, name, custom_headers:nil) + delete_async(resource_uri, name, custom_headers:custom_headers).value! end # @@ -255,13 +255,14 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_uri, name, custom_headers = nil) + def delete_async(resource_uri, name, custom_headers:nil) fail ArgumentError, 'resource_uri is nil' if resource_uri.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'name is nil' if name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +306,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [DiagnosticSettingsResourceCollection] operation results. # - def list(resource_uri, custom_headers = nil) - response = list_async(resource_uri, custom_headers).value! + def list(resource_uri, custom_headers:nil) + response = list_async(resource_uri, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -319,8 +320,8 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_uri, custom_headers = nil) - list_async(resource_uri, custom_headers).value! + def list_with_http_info(resource_uri, custom_headers:nil) + list_async(resource_uri, custom_headers:custom_headers).value! end # @@ -332,12 +333,13 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_uri, custom_headers = nil) + def list_async(resource_uri, custom_headers:nil) fail ArgumentError, 'resource_uri is nil' if resource_uri.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_monitor/lib/profiles/latest/modules/monitor_profile_module.rb b/management/azure_mgmt_monitor/lib/profiles/latest/modules/monitor_profile_module.rb index 423d0e699..cc4a4dac0 100644 --- a/management/azure_mgmt_monitor/lib/profiles/latest/modules/monitor_profile_module.rb +++ b/management/azure_mgmt_monitor/lib/profiles/latest/modules/monitor_profile_module.rb @@ -108,38 +108,38 @@ module Azure::Monitor::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Monitor::Mgmt::V2015_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Monitor::Mgmt::V2015_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @autoscale_settings = client_0.autoscale_settings - @operations = client_0.operations + add_telemetry(@client_0) + @autoscale_settings = @client_0.autoscale_settings + @operations = @client_0.operations - client_1 = Azure::Monitor::Mgmt::V2016_03_01::MonitorManagementClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::Monitor::Mgmt::V2016_03_01::MonitorManagementClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @alert_rule_incidents = client_1.alert_rule_incidents - @alert_rules = client_1.alert_rules - @log_profiles = client_1.log_profiles + add_telemetry(@client_1) + @alert_rule_incidents = @client_1.alert_rule_incidents + @alert_rules = @client_1.alert_rules + @log_profiles = @client_1.log_profiles - client_2 = Azure::Monitor::Mgmt::V2017_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options) - if(client_2.respond_to?(:subscription_id)) - client_2.subscription_id = configurable.subscription_id + @client_2 = Azure::Monitor::Mgmt::V2017_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options) + if(@client_2.respond_to?(:subscription_id)) + @client_2.subscription_id = configurable.subscription_id end - add_telemetry(client_2) - @action_groups = client_2.action_groups - @activity_log_alerts = client_2.activity_log_alerts + add_telemetry(@client_2) + @action_groups = @client_2.action_groups + @activity_log_alerts = @client_2.activity_log_alerts - client_3 = Azure::Monitor::Mgmt::V2017_05_01_preview::MonitorClient.new(configurable.credentials, base_url, options) - if(client_3.respond_to?(:subscription_id)) - client_3.subscription_id = configurable.subscription_id + @client_3 = Azure::Monitor::Mgmt::V2017_05_01_preview::MonitorClient.new(configurable.credentials, base_url, options) + if(@client_3.respond_to?(:subscription_id)) + @client_3.subscription_id = configurable.subscription_id end - add_telemetry(client_3) - @diagnostic_settings_category_operations = client_3.diagnostic_settings_category_operations - @diagnostic_settings_operations = client_3.diagnostic_settings_operations + add_telemetry(@client_3) + @diagnostic_settings_category_operations = @client_3.diagnostic_settings_category_operations + @diagnostic_settings_operations = @client_3.diagnostic_settings_operations @model_classes = ModelClasses.new end @@ -149,6 +149,20 @@ module Azure::Monitor::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_3.respond_to?method + @client_3.send(method, *args) + elsif @client_2.respond_to?method + @client_2.send(method, *args) + elsif @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_msi/lib/2015-08-31-preview/generated/azure_mgmt_msi/operations.rb b/management/azure_mgmt_msi/lib/2015-08-31-preview/generated/azure_mgmt_msi/operations.rb index b7f3d585d..20cde43fe 100644 --- a/management/azure_mgmt_msi/lib/2015-08-31-preview/generated/azure_mgmt_msi/operations.rb +++ b/management/azure_mgmt_msi/lib/2015-08-31-preview/generated/azure_mgmt_msi/operations.rb @@ -29,8 +29,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_msi/lib/2015-08-31-preview/generated/azure_mgmt_msi/user_assigned_identities.rb b/management/azure_mgmt_msi/lib/2015-08-31-preview/generated/azure_mgmt_msi/user_assigned_identities.rb index 460a87145..206697b07 100644 --- a/management/azure_mgmt_msi/lib/2015-08-31-preview/generated/azure_mgmt_msi/user_assigned_identities.rb +++ b/management/azure_mgmt_msi/lib/2015-08-31-preview/generated/azure_mgmt_msi/user_assigned_identities.rb @@ -30,8 +30,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Array] operation results. # - def list_by_subscription(custom_headers = nil) - first_page = list_by_subscription_as_lazy(custom_headers) + def list_by_subscription(custom_headers:nil) + first_page = list_by_subscription_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -118,8 +119,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -134,8 +135,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -149,13 +150,14 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -213,8 +215,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Identity] operation results. # - def create_or_update(resource_group_name, resource_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, resource_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, resource_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -231,8 +233,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, resource_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, resource_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, resource_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value! end # @@ -248,7 +250,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, resource_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'resource_name is nil' if resource_name.nil? @@ -257,7 +259,6 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -332,8 +333,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Identity] operation results. # - def update(resource_group_name, resource_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, resource_name, parameters, custom_headers).value! + def update(resource_group_name, resource_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -349,8 +350,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, resource_name, parameters, custom_headers = nil) - update_async(resource_group_name, resource_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, resource_name, parameters, custom_headers:nil) + update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value! end # @@ -365,7 +366,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, resource_name, parameters, custom_headers = nil) + def update_async(resource_group_name, resource_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'resource_name is nil' if resource_name.nil? @@ -374,7 +375,6 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -438,8 +438,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Identity] operation results. # - def get(resource_group_name, resource_name, custom_headers = nil) - response = get_async(resource_group_name, resource_name, custom_headers).value! + def get(resource_group_name, resource_name, custom_headers:nil) + response = get_async(resource_group_name, resource_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -454,8 +454,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, resource_name, custom_headers = nil) - get_async(resource_group_name, resource_name, custom_headers).value! + def get_with_http_info(resource_group_name, resource_name, custom_headers:nil) + get_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -469,7 +469,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, resource_name, custom_headers = nil) + def get_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'resource_name is nil' if resource_name.nil? @@ -477,6 +477,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -531,8 +532,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # will be added to the HTTP request. # # - def delete(resource_group_name, resource_name, custom_headers = nil) - response = delete_async(resource_group_name, resource_name, custom_headers).value! + def delete(resource_group_name, resource_name, custom_headers:nil) + response = delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value! nil end @@ -547,8 +548,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, resource_name, custom_headers = nil) - delete_async(resource_group_name, resource_name, custom_headers).value! + def delete_with_http_info(resource_group_name, resource_name, custom_headers:nil) + delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value! end # @@ -562,7 +563,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, resource_name, custom_headers = nil) + def delete_async(resource_group_name, resource_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'resource_name is nil' if resource_name.nil? @@ -570,6 +571,7 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -615,8 +617,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [UserAssignedIdentitiesListResult] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -631,8 +633,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -646,11 +648,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -705,8 +708,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [UserAssignedIdentitiesListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -721,8 +724,8 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -736,11 +739,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -794,12 +798,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # @return [UserAssignedIdentitiesListResult] which provide lazy access to pages # of the response. # - def list_by_subscription_as_lazy(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription_as_lazy(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -817,12 +821,12 @@ module Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview # @return [UserAssignedIdentitiesListResult] which provide lazy access to pages # of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_msi/lib/profiles/latest/modules/managedserviceidentity_profile_module.rb b/management/azure_mgmt_msi/lib/profiles/latest/modules/managedserviceidentity_profile_module.rb index d4869f657..eec4d8dc5 100644 --- a/management/azure_mgmt_msi/lib/profiles/latest/modules/managedserviceidentity_profile_module.rb +++ b/management/azure_mgmt_msi/lib/profiles/latest/modules/managedserviceidentity_profile_module.rb @@ -37,13 +37,13 @@ module Azure::ManagedServiceIdentity::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::ManagedServiceIdentityClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ManagedServiceIdentity::Mgmt::V2015_08_31_preview::ManagedServiceIdentityClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @user_assigned_identities = client_0.user_assigned_identities + add_telemetry(@client_0) + @operations = @client_0.operations + @user_assigned_identities = @client_0.user_assigned_identities @model_classes = ModelClasses.new end @@ -53,6 +53,14 @@ module Azure::ManagedServiceIdentity::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/application_gateways.rb index 2786690f7..aeffed50c 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/application_gateways.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/application_gateways.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -44,9 +44,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ApplicationGateway] operation results. # - def get(resource_group_name, application_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get(resource_group_name, application_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -87,8 +87,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -102,7 +102,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, application_gateway_name, custom_headers = nil) + def get_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -110,6 +110,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -166,8 +167,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ApplicationGateway] operation results. # - def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -182,9 +183,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -225,8 +226,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -239,13 +240,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -299,8 +301,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -313,8 +315,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -326,12 +328,13 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -385,8 +388,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def start(resource_group_name, application_gateway_name, custom_headers = nil) - response = start_async(resource_group_name, application_gateway_name, custom_headers).value! + def start(resource_group_name, application_gateway_name, custom_headers:nil) + response = start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -399,9 +402,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def start_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -424,8 +427,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -438,9 +441,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def stop_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -464,8 +467,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -480,8 +483,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -495,7 +498,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -503,6 +506,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -549,8 +553,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ApplicationGateway] operation results. # - def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -566,8 +570,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -582,7 +586,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -591,7 +595,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -664,8 +667,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_start(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -680,8 +683,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -695,7 +698,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_start_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -703,6 +706,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -747,8 +751,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -763,8 +767,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -778,7 +782,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_stop_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -786,6 +790,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -831,8 +836,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ApplicationGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -847,8 +852,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -862,11 +867,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -921,8 +927,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ApplicationGatewayListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -937,8 +943,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -952,11 +958,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1011,12 +1018,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1032,12 +1039,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuit_authorizations.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuit_authorizations.rb index 5dba119a9..9605aa234 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuit_authorizations.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -74,8 +74,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitAuthorization] operation results. # - def get(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -107,7 +107,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -116,6 +116,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -174,8 +175,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitAuthorization] operation results. # - def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -236,8 +237,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -251,7 +252,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -259,6 +260,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +316,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -331,8 +333,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -347,7 +349,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -356,6 +358,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -404,8 +407,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitAuthorization] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -423,8 +426,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! end # @@ -441,7 +444,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -451,7 +454,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [AuthorizationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -556,11 +558,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -616,12 +619,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [AuthorizationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuit_peerings.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuit_peerings.rb index 6b6e8cd02..4ef17f1e3 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuit_peerings.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuit_peerings.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -74,8 +74,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitPeering] operation results. # - def get(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -107,7 +107,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -116,6 +116,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -174,8 +175,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitPeering] operation results. # - def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -236,8 +237,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -251,7 +252,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -259,6 +260,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +316,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -331,8 +333,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -347,7 +349,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -356,6 +358,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -404,8 +407,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitPeering] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -423,8 +426,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! end # @@ -441,7 +444,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -451,7 +454,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -556,11 +558,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -616,12 +619,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [ExpressRouteCircuitPeeringListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuits.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuits.rb index 7eeb25a2b..c7a636ee9 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuits.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuits.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, custom_headers).value! + def delete(resource_group_name, circuit_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -44,9 +44,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuit] operation results. # - def get(resource_group_name, circuit_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, custom_headers).value! + def get(resource_group_name, circuit_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -87,8 +87,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -102,7 +102,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -110,6 +110,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -166,8 +167,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuit] operation results. # - def create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -182,9 +183,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_arp_table(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_arp_table_as_lazy(resource_group_name, circuit_name, custom_headers) + def list_arp_table(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_arp_table_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -229,8 +230,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_arp_table_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_arp_table_async(resource_group_name, circuit_name, custom_headers).value! + def list_arp_table_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_arp_table_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -245,7 +246,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_arp_table_async(resource_group_name, circuit_name, custom_headers = nil) + def list_arp_table_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -253,6 +254,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -309,8 +311,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_routes_table(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_routes_table_as_lazy(resource_group_name, circuit_name, custom_headers) + def list_routes_table(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_routes_table_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -326,8 +328,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_routes_table_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_routes_table_async(resource_group_name, circuit_name, custom_headers).value! + def list_routes_table_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_routes_table_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -342,7 +344,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_routes_table_async(resource_group_name, circuit_name, custom_headers = nil) + def list_routes_table_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -350,6 +352,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -405,8 +408,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_stats(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_stats_as_lazy(resource_group_name, circuit_name, custom_headers) + def list_stats(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_stats_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -421,8 +424,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_stats_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_stats_async(resource_group_name, circuit_name, custom_headers).value! + def list_stats_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -436,7 +439,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_stats_async(resource_group_name, circuit_name, custom_headers = nil) + def list_stats_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -444,6 +447,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -498,8 +502,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -513,8 +517,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -527,13 +531,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -587,8 +592,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -601,8 +606,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -614,12 +619,13 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -674,8 +680,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -690,8 +696,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -705,7 +711,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -713,6 +719,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -759,8 +766,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuit] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -776,8 +783,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! end # @@ -792,7 +799,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -801,7 +808,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -876,8 +882,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def list_arp_table_next(next_page_link, custom_headers = nil) - response = list_arp_table_next_async(next_page_link, custom_headers).value! + def list_arp_table_next(next_page_link, custom_headers:nil) + response = list_arp_table_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -893,8 +899,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_arp_table_next_with_http_info(next_page_link, custom_headers = nil) - list_arp_table_next_async(next_page_link, custom_headers).value! + def list_arp_table_next_with_http_info(next_page_link, custom_headers:nil) + list_arp_table_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -909,11 +915,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_arp_table_next_async(next_page_link, custom_headers = nil) + def list_arp_table_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -969,8 +976,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def list_routes_table_next(next_page_link, custom_headers = nil) - response = list_routes_table_next_async(next_page_link, custom_headers).value! + def list_routes_table_next(next_page_link, custom_headers:nil) + response = list_routes_table_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -986,8 +993,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_routes_table_next_with_http_info(next_page_link, custom_headers = nil) - list_routes_table_next_async(next_page_link, custom_headers).value! + def list_routes_table_next_with_http_info(next_page_link, custom_headers:nil) + list_routes_table_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1002,11 +1009,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_routes_table_next_async(next_page_link, custom_headers = nil) + def list_routes_table_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1061,8 +1069,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitsStatsListResult] operation results. # - def list_stats_next(next_page_link, custom_headers = nil) - response = list_stats_next_async(next_page_link, custom_headers).value! + def list_stats_next(next_page_link, custom_headers:nil) + response = list_stats_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1077,8 +1085,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_stats_next_with_http_info(next_page_link, custom_headers = nil) - list_stats_next_async(next_page_link, custom_headers).value! + def list_stats_next_with_http_info(next_page_link, custom_headers:nil) + list_stats_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1092,11 +1100,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_stats_next_async(next_page_link, custom_headers = nil) + def list_stats_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1151,8 +1160,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1167,8 +1176,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1182,11 +1191,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1241,8 +1251,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteCircuitListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1257,8 +1267,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1272,11 +1282,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1333,12 +1344,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [ExpressRouteCircuitsArpTableListResult] which provide lazy access to # pages of the response. # - def list_arp_table_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_arp_table_async(resource_group_name, circuit_name, custom_headers).value! + def list_arp_table_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_arp_table_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_arp_table_next_async(next_page_link, custom_headers) + list_arp_table_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1357,12 +1368,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [ExpressRouteCircuitsRoutesTableListResult] which provide lazy access # to pages of the response. # - def list_routes_table_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_routes_table_async(resource_group_name, circuit_name, custom_headers).value! + def list_routes_table_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_routes_table_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_routes_table_next_async(next_page_link, custom_headers) + list_routes_table_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1380,12 +1391,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [ExpressRouteCircuitsStatsListResult] which provide lazy access to # pages of the response. # - def list_stats_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_stats_async(resource_group_name, circuit_name, custom_headers).value! + def list_stats_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_stats_next_async(next_page_link, custom_headers) + list_stats_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1402,12 +1413,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1423,12 +1434,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_service_providers.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_service_providers.rb index a3a97e2c5..c8525b264 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_service_providers.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_service_providers.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -118,8 +119,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ExpressRouteServiceProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -149,11 +150,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -207,12 +209,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [ExpressRouteServiceProviderListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/load_balancers.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/load_balancers.rb index 35c4b8213..620706026 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/load_balancers.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/load_balancers.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def delete_async(resource_group_name, load_balancer_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers) + promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [LoadBalancer] operation results. # - def get(resource_group_name, load_balancer_name, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, custom_headers).value! + def get(resource_group_name, load_balancer_name, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [LoadBalancer] operation results. # - def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -208,8 +209,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -222,8 +223,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -235,12 +236,13 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -295,8 +297,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -310,8 +312,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -324,13 +326,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -384,8 +387,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -399,8 +402,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -413,7 +416,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def begin_delete_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -421,6 +424,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -467,8 +471,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [LoadBalancer] operation results. # - def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -484,8 +488,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! end # @@ -500,7 +504,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -509,7 +513,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -583,8 +586,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [LoadBalancerListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -599,8 +602,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -614,11 +617,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -673,8 +677,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [LoadBalancerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -689,8 +693,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -704,11 +708,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -762,12 +767,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -784,12 +789,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/local_network_gateways.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/local_network_gateways.rb index dc85643a9..d9453d15e 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/local_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/local_network_gateways.rb @@ -36,8 +36,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [LocalNetworkGateway] operation results. # - def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [LocalNetworkGateway] operation results. # - def get(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -101,8 +101,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -117,7 +117,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -125,6 +125,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -179,8 +180,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -194,9 +195,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -235,8 +236,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -249,13 +250,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -315,8 +317,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [LocalNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -335,8 +337,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -354,7 +356,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -363,7 +365,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -437,8 +438,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -454,8 +455,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -470,7 +471,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -478,6 +479,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -523,8 +525,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [LocalNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -539,8 +541,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -554,11 +556,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -613,12 +616,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [LocalNetworkGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_interfaces.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_interfaces.rb index ac22ca00f..80d9b439e 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_interfaces.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_interfaces.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_interface_name, custom_headers = nil) - response = delete_async(resource_group_name, network_interface_name, custom_headers).value! + def delete(resource_group_name, network_interface_name, custom_headers:nil) + response = delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def delete_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkInterface] operation results. # - def get(resource_group_name, network_interface_name, custom_headers = nil) - response = get_async(resource_group_name, network_interface_name, custom_headers).value! + def get(resource_group_name, network_interface_name, custom_headers:nil) + response = get_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - get_async(resource_group_name, network_interface_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + get_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_interface_name, custom_headers = nil) + def get_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkInterface] operation results. # - def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers) + def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers) first_page.get_all_items end @@ -230,8 +231,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! end # @@ -247,7 +248,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -256,6 +257,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -312,8 +314,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers) + def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -329,8 +331,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! end # @@ -345,7 +347,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -353,6 +355,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -411,8 +414,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkInterface] operation results. # - def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, custom_headers = nil) - response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, custom_headers).value! + def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, custom_headers:nil) + response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -430,8 +433,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, custom_headers = nil) - get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, custom_headers).value! + def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, custom_headers:nil) + get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, custom_headers:custom_headers).value! end # @@ -448,7 +451,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, custom_headers = nil) + def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -458,6 +461,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -511,8 +515,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -525,8 +529,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -538,12 +542,13 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -598,8 +603,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -613,8 +618,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -627,13 +632,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -687,8 +693,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -702,8 +708,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -716,7 +722,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -724,6 +730,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -770,8 +777,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkInterface] operation results. # - def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -787,8 +794,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! end # @@ -803,7 +810,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -812,7 +819,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -886,8 +892,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -902,8 +908,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -917,11 +923,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -976,8 +983,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -992,8 +999,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1007,11 +1014,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1066,8 +1074,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkInterfaceListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1082,8 +1090,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1097,11 +1105,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1156,8 +1165,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkInterfaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1172,8 +1181,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1187,11 +1196,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1249,12 +1259,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1273,12 +1283,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1294,12 +1304,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1316,12 +1326,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb index 0edbe8e4b..5296e536c 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb @@ -199,8 +199,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [DnsNameAvailabilityResult] operation results. # - def check_dns_name_availability(location, domain_name_label = nil, custom_headers = nil) - response = check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability(location, domain_name_label:nil, custom_headers:nil) + response = check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -215,8 +215,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_dns_name_availability_with_http_info(location, domain_name_label = nil, custom_headers = nil) - check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability_with_http_info(location, domain_name_label:nil, custom_headers:nil) + check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! end # @@ -230,13 +230,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_dns_name_availability_async(location, domain_name_label = nil, custom_headers = nil) + def check_dns_name_availability_async(location, domain_name_label:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_security_groups.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_security_groups.rb index 252f77d17..e31226e0e 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_security_groups.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/network_security_groups.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -74,8 +74,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkSecurityGroup] operation results. # - def get(resource_group_name, network_security_group_name, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, custom_headers).value! + def get(resource_group_name, network_security_group_name, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -107,7 +107,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkSecurityGroup] operation results. # - def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -190,9 +191,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -231,8 +232,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -244,12 +245,13 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -304,8 +306,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -319,8 +321,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -333,13 +335,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -412,8 +415,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -428,7 +431,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -436,6 +439,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -484,8 +488,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkSecurityGroup] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -503,8 +507,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! end # @@ -521,7 +525,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -530,7 +534,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -604,8 +607,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkSecurityGroupListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -620,8 +623,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -635,11 +638,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -694,8 +698,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [NetworkSecurityGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -710,8 +714,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -725,11 +729,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -783,12 +788,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -805,12 +810,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/public_ip_addresses.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/public_ip_addresses.rb index 931fc946b..934fb09d7 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/public_ip_addresses.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/public_ip_addresses.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers) + promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [PublicIpAddress] operation results. # - def get(resource_group_name, public_ip_address_name, custom_headers = nil) - response = get_async(resource_group_name, public_ip_address_name, custom_headers).value! + def get(resource_group_name, public_ip_address_name, custom_headers:nil) + response = get_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, public_ip_address_name, custom_headers = nil) - get_async(resource_group_name, public_ip_address_name, custom_headers).value! + def get_with_http_info(resource_group_name, public_ip_address_name, custom_headers:nil) + get_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def get_async(resource_group_name, public_ip_address_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -166,8 +167,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [PublicIpAddress] operation results. # - def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -182,9 +183,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -209,8 +210,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -236,12 +237,13 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -296,8 +298,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -311,8 +313,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -325,13 +327,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -385,8 +388,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -400,8 +403,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers = nil) - begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers:nil) + begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! end # @@ -414,7 +417,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -422,6 +425,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -469,8 +473,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [PublicIpAddress] operation results. # - def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -487,8 +491,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! end # @@ -504,7 +508,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -513,7 +517,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -587,8 +590,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [PublicIpAddressListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -603,8 +606,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -618,11 +621,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -677,8 +681,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [PublicIpAddressListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -693,8 +697,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -708,11 +712,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -766,12 +771,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [PublicIpAddressListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -788,12 +793,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [PublicIpAddressListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/route_tables.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/route_tables.rb index c72c11b1e..4d8bcee0d 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/route_tables.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/route_tables.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, custom_headers).value! + def delete(resource_group_name, route_table_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [RouteTable] operation results. # - def get(resource_group_name, route_table_name, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, custom_headers).value! + def get(resource_group_name, route_table_name, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - get_async(resource_group_name, route_table_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + get_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, custom_headers = nil) + def get_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -166,8 +167,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [RouteTable] operation results. # - def create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -182,9 +183,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -209,8 +210,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -236,13 +237,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -295,8 +297,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -320,12 +322,13 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -379,8 +382,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -394,8 +397,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -408,7 +411,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -416,6 +419,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -463,8 +467,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [RouteTable] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,8 +485,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! end # @@ -498,7 +502,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -507,7 +511,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -580,8 +583,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [RouteTableListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -595,8 +598,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -609,11 +612,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -667,8 +671,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [RouteTableListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -682,8 +686,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -696,11 +700,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -754,12 +759,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -774,12 +779,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/routes.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/routes.rb index 7e97f3f71..a12cc6a6b 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/routes.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/routes.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Route] operation results. # - def get(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -90,8 +90,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def get_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Route] operation results. # - def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -218,8 +219,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, route_table_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers) + def list(resource_group_name, route_table_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers:custom_headers) first_page.get_all_items end @@ -234,8 +235,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - list_async(resource_group_name, route_table_name, custom_headers).value! + def list_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -249,7 +250,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, route_table_name, custom_headers = nil) + def list_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -257,6 +258,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,8 +313,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -327,8 +329,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -342,7 +344,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -351,6 +353,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -398,8 +401,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Route] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -416,8 +419,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! end # @@ -433,7 +436,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -443,7 +446,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -517,8 +519,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [RouteListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -533,8 +535,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -548,11 +550,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -607,12 +610,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [RouteListResult] which provide lazy access to pages of the response. # - def list_as_lazy(resource_group_name, route_table_name, custom_headers = nil) - response = list_async(resource_group_name, route_table_name, custom_headers).value! + def list_as_lazy(resource_group_name, route_table_name, custom_headers:nil) + response = list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/security_rules.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/security_rules.rb index f90482a5b..188d53ea5 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/security_rules.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/security_rules.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -77,8 +77,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [SecurityRule] operation results. # - def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -95,8 +95,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -112,7 +112,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -121,6 +121,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -180,8 +181,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [SecurityRule] operation results. # - def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -198,9 +199,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -228,8 +229,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, network_security_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers) + def list(resource_group_name, network_security_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -245,8 +246,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -261,7 +262,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_security_group_name, custom_headers = nil) + def list_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -269,6 +270,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -325,8 +327,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -343,8 +345,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -360,7 +362,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -369,6 +371,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -418,8 +421,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [SecurityRule] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -438,8 +441,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! end # @@ -457,7 +460,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -467,7 +470,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [SecurityRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -557,8 +559,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -572,11 +574,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -633,12 +636,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [SecurityRuleListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, network_security_group_name, custom_headers = nil) - response = list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, network_security_group_name, custom_headers:nil) + response = list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/subnets.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/subnets.rb index 465459056..583b0bde0 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/subnets.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/subnets.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Subnet] operation results. # - def get(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def get(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -170,8 +171,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Subnet] operation results. # - def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -187,9 +188,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -215,8 +216,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -230,8 +231,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -244,7 +245,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -252,6 +253,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -306,8 +308,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -322,8 +324,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! end # @@ -337,7 +339,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -346,6 +348,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -394,8 +397,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Subnet] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -413,8 +416,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! end # @@ -431,7 +434,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -441,7 +444,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -514,8 +516,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [SubnetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -529,8 +531,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -543,11 +545,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -602,12 +605,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [SubnetListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/usages.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/usages.rb index 2b8bbb214..0cd8a9bfb 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/usages.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/usages.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -57,7 +57,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -65,6 +65,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -119,8 +120,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [UsagesListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -148,11 +149,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -206,12 +208,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [UsagesListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_network_gateway_connections.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_network_gateway_connections.rb index 0e5ed0ce2..c27176729 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_network_gateway_connections.rb @@ -37,8 +37,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkGatewayConnection] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,9 +55,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkGatewayConnection] operation results. # - def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -104,8 +104,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -121,7 +121,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -129,6 +129,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -183,8 +184,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -198,9 +199,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -227,8 +228,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ConnectionSharedKey] operation results. # - def get_shared_key(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_shared_key(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -245,8 +246,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -262,7 +263,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -270,6 +271,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -330,8 +332,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ConnectionSharedKey] operation results. # - def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -348,9 +350,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -376,8 +378,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -391,8 +393,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -405,13 +407,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -473,8 +476,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ConnectionResetSharedKey] operation results. # - def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -491,9 +494,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -525,8 +528,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkGatewayConnection] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -546,8 +549,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -566,7 +569,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -575,7 +578,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -649,8 +651,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -666,8 +668,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -682,7 +684,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -690,6 +692,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -740,8 +743,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ConnectionSharedKey] operation results. # - def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -761,8 +764,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -781,7 +784,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -790,7 +793,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -870,8 +872,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [ConnectionResetSharedKey] operation results. # - def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -892,8 +894,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -913,7 +915,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -922,7 +924,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -986,8 +987,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkGatewayConnectionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1002,8 +1003,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1017,11 +1018,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1076,12 +1078,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [VirtualNetworkGatewayConnectionListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_network_gateways.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_network_gateways.rb index a3c88b624..cfae03e0b 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_network_gateways.rb @@ -36,8 +36,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkGateway] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkGateway] operation results. # - def get(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -101,8 +101,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -117,7 +117,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -125,6 +125,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -179,8 +180,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -194,9 +195,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -235,8 +236,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -249,13 +250,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -315,8 +317,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkGateway] operation results. # - def reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -332,9 +334,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -365,8 +367,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -385,8 +387,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -404,7 +406,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -413,7 +415,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -487,8 +488,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -504,8 +505,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -520,7 +521,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -528,6 +529,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -577,8 +579,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkGateway] operation results. # - def begin_reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -597,8 +599,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -616,7 +618,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -625,7 +627,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -689,8 +690,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -705,8 +706,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -720,11 +721,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -779,12 +781,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [VirtualNetworkGatewayListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_networks.rb b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_networks.rb index bb562cc97..a9666fa0b 100644 --- a/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_networks.rb +++ b/management/azure_mgmt_network/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_networks.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetwork] operation results. # - def get(resource_group_name, virtual_network_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, custom_headers).value! + def get(resource_group_name, virtual_network_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -166,8 +167,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetwork] operation results. # - def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -182,9 +183,9 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -208,8 +209,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -221,8 +222,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -233,12 +234,13 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -292,8 +294,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -306,8 +308,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -319,13 +321,14 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -379,8 +382,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -394,8 +397,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -408,7 +411,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -416,6 +419,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -463,8 +467,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetwork] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,8 +485,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! end # @@ -498,7 +502,7 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -507,7 +511,6 @@ module Azure::Network::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -580,8 +583,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -595,8 +598,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -609,11 +612,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -667,8 +671,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -682,8 +686,8 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -696,11 +700,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -753,12 +758,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -774,12 +779,12 @@ module Azure::Network::Mgmt::V2015_05_01_preview # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/application_gateways.rb index 7bb025fbb..cb1720500 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/application_gateways.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/application_gateways.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -69,8 +69,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ApplicationGateway] operation results. # - def get(resource_group_name, application_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get(resource_group_name, application_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -98,7 +98,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, application_gateway_name, custom_headers = nil) + def get_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -106,6 +106,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -162,8 +163,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ApplicationGateway] operation results. # - def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -178,9 +179,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -205,8 +206,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -219,8 +220,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -232,13 +233,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -304,8 +306,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -316,12 +318,13 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -374,8 +377,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def start(resource_group_name, application_gateway_name, custom_headers = nil) - response = start_async(resource_group_name, application_gateway_name, custom_headers).value! + def start(resource_group_name, application_gateway_name, custom_headers:nil) + response = start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -388,9 +391,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def start_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -412,8 +415,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -426,9 +429,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def stop_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -451,8 +454,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -466,8 +469,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -480,7 +483,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -488,6 +491,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -534,8 +538,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ApplicationGateway] operation results. # - def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -551,8 +555,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -567,7 +571,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -576,7 +580,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -648,8 +651,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_start(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -663,8 +666,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -677,7 +680,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_start_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -685,6 +688,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -728,8 +732,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -743,8 +747,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -757,7 +761,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_stop_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -765,6 +769,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -809,8 +814,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ApplicationGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -824,8 +829,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -838,11 +843,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -896,8 +902,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ApplicationGatewayListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -911,8 +917,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -925,11 +931,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -983,12 +990,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1003,12 +1010,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuit_authorizations.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuit_authorizations.rb index 2e626a842..ce798dec4 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuit_authorizations.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def get(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -170,8 +171,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -216,8 +217,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -231,8 +232,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -245,7 +246,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -253,6 +254,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -323,8 +325,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -338,7 +340,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -347,6 +349,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -414,8 +417,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! end # @@ -432,7 +435,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -442,7 +445,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -515,8 +517,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [AuthorizationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -530,8 +532,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -544,11 +546,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -603,12 +606,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [AuthorizationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuit_peerings.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuit_peerings.rb index 200bfbad8..e2073ec2a 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuit_peerings.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuit_peerings.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitPeering] operation results. # - def get(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitPeering] operation results. # - def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -186,9 +187,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -229,8 +230,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -243,7 +244,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -251,6 +252,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -321,8 +323,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -336,7 +338,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -345,6 +347,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +395,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitPeering] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -410,8 +413,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! end # @@ -427,7 +430,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -437,7 +440,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -510,8 +512,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -539,11 +541,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -598,12 +601,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [ExpressRouteCircuitPeeringListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuits.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuits.rb index 5134be2ce..65f9d4e6f 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuits.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuits.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, custom_headers).value! + def delete(resource_group_name, circuit_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -69,8 +69,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuit] operation results. # - def get(resource_group_name, circuit_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, custom_headers).value! + def get(resource_group_name, circuit_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -98,7 +98,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -106,6 +106,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -162,8 +163,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuit] operation results. # - def create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -178,9 +179,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -208,8 +209,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_arp_table(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_arp_table_as_lazy(resource_group_name, circuit_name, custom_headers) + def list_arp_table(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_arp_table_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -225,8 +226,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_arp_table_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_arp_table_async(resource_group_name, circuit_name, custom_headers).value! + def list_arp_table_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_arp_table_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -241,7 +242,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_arp_table_async(resource_group_name, circuit_name, custom_headers = nil) + def list_arp_table_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -249,6 +250,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_routes_table(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_routes_table_as_lazy(resource_group_name, circuit_name, custom_headers) + def list_routes_table(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_routes_table_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -322,8 +324,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_routes_table_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_routes_table_async(resource_group_name, circuit_name, custom_headers).value! + def list_routes_table_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_routes_table_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -338,7 +340,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_routes_table_async(resource_group_name, circuit_name, custom_headers = nil) + def list_routes_table_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -346,6 +348,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -401,8 +404,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_stats(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_stats_as_lazy(resource_group_name, circuit_name, custom_headers) + def list_stats(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_stats_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -417,8 +420,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_stats_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_stats_async(resource_group_name, circuit_name, custom_headers).value! + def list_stats_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -432,7 +435,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_stats_async(resource_group_name, circuit_name, custom_headers = nil) + def list_stats_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -440,6 +443,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -493,8 +497,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -507,8 +511,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -520,13 +524,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -579,8 +584,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -592,8 +597,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -604,12 +609,13 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +669,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -678,8 +684,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -692,7 +698,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -700,6 +706,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -746,8 +753,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuit] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -763,8 +770,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! end # @@ -779,7 +786,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -788,7 +795,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -863,8 +869,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def list_arp_table_next(next_page_link, custom_headers = nil) - response = list_arp_table_next_async(next_page_link, custom_headers).value! + def list_arp_table_next(next_page_link, custom_headers:nil) + response = list_arp_table_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -880,8 +886,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_arp_table_next_with_http_info(next_page_link, custom_headers = nil) - list_arp_table_next_async(next_page_link, custom_headers).value! + def list_arp_table_next_with_http_info(next_page_link, custom_headers:nil) + list_arp_table_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -896,11 +902,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_arp_table_next_async(next_page_link, custom_headers = nil) + def list_arp_table_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -956,8 +963,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def list_routes_table_next(next_page_link, custom_headers = nil) - response = list_routes_table_next_async(next_page_link, custom_headers).value! + def list_routes_table_next(next_page_link, custom_headers:nil) + response = list_routes_table_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -973,8 +980,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_routes_table_next_with_http_info(next_page_link, custom_headers = nil) - list_routes_table_next_async(next_page_link, custom_headers).value! + def list_routes_table_next_with_http_info(next_page_link, custom_headers:nil) + list_routes_table_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -989,11 +996,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_routes_table_next_async(next_page_link, custom_headers = nil) + def list_routes_table_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1048,8 +1056,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitsStatsListResult] operation results. # - def list_stats_next(next_page_link, custom_headers = nil) - response = list_stats_next_async(next_page_link, custom_headers).value! + def list_stats_next(next_page_link, custom_headers:nil) + response = list_stats_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1064,8 +1072,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_stats_next_with_http_info(next_page_link, custom_headers = nil) - list_stats_next_async(next_page_link, custom_headers).value! + def list_stats_next_with_http_info(next_page_link, custom_headers:nil) + list_stats_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1079,11 +1087,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_stats_next_async(next_page_link, custom_headers = nil) + def list_stats_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1137,8 +1146,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1152,8 +1161,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1166,11 +1175,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1224,8 +1234,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1239,8 +1249,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1253,11 +1263,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1314,12 +1325,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [ExpressRouteCircuitsArpTableListResult] which provide lazy access to # pages of the response. # - def list_arp_table_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_arp_table_async(resource_group_name, circuit_name, custom_headers).value! + def list_arp_table_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_arp_table_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_arp_table_next_async(next_page_link, custom_headers) + list_arp_table_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1338,12 +1349,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [ExpressRouteCircuitsRoutesTableListResult] which provide lazy access # to pages of the response. # - def list_routes_table_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_routes_table_async(resource_group_name, circuit_name, custom_headers).value! + def list_routes_table_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_routes_table_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_routes_table_next_async(next_page_link, custom_headers) + list_routes_table_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1361,12 +1372,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [ExpressRouteCircuitsStatsListResult] which provide lazy access to # pages of the response. # - def list_stats_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_stats_async(resource_group_name, circuit_name, custom_headers).value! + def list_stats_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_stats_next_async(next_page_link, custom_headers) + list_stats_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1382,12 +1393,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1402,12 +1413,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_service_providers.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_service_providers.rb index aeb0e2acc..258860248 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_service_providers.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/express_route_service_providers.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,8 +115,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ExpressRouteServiceProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -129,8 +130,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -143,11 +144,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -200,12 +202,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [ExpressRouteServiceProviderListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/load_balancers.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/load_balancers.rb index 04dcb800f..df0d2664b 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/load_balancers.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/load_balancers.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def delete_async(resource_group_name, load_balancer_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers) + promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [LoadBalancer] operation results. # - def get(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [LoadBalancer] operation results. # - def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -207,8 +208,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -232,12 +233,13 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -318,13 +320,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,8 +381,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -393,8 +396,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -407,7 +410,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def begin_delete_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -415,6 +418,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -461,8 +465,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [LoadBalancer] operation results. # - def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -478,8 +482,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! end # @@ -494,7 +498,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -503,7 +507,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -576,8 +579,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [LoadBalancerListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -591,8 +594,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -605,11 +608,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +667,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [LoadBalancerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +682,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -692,11 +696,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -749,12 +754,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -770,12 +775,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/local_network_gateways.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/local_network_gateways.rb index 40bfc65c3..7244197fc 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/local_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/local_network_gateways.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [LocalNetworkGateway] operation results. # - def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [LocalNetworkGateway] operation results. # - def get(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,8 +96,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -119,6 +119,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -187,9 +188,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -226,8 +227,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -239,13 +240,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -303,8 +305,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [LocalNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,8 +323,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -338,7 +340,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -347,7 +349,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -420,8 +421,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -436,8 +437,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -451,7 +452,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -459,6 +460,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -503,8 +505,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [LocalNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -518,8 +520,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -532,11 +534,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -590,12 +593,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [LocalNetworkGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_interfaces.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_interfaces.rb index ee89ca9d5..011a9c5b6 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_interfaces.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_interfaces.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_interface_name, custom_headers = nil) - response = delete_async(resource_group_name, network_interface_name, custom_headers).value! + def delete(resource_group_name, network_interface_name, custom_headers:nil) + response = delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def delete_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkInterface] operation results. # - def get(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkInterface] operation results. # - def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -207,8 +208,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -232,12 +233,13 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -318,13 +320,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -382,8 +385,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers) + def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers) first_page.get_all_items end @@ -400,8 +403,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! end # @@ -417,7 +420,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -426,6 +429,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -481,8 +485,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers) + def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -497,8 +501,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! end # @@ -512,7 +516,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -520,6 +524,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -578,8 +583,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkInterface] operation results. # - def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -597,8 +602,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -615,7 +620,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) + def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -625,6 +630,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -678,8 +684,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -693,8 +699,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -707,7 +713,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -715,6 +721,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -761,8 +768,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkInterface] operation results. # - def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -778,8 +785,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! end # @@ -794,7 +801,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -803,7 +810,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -876,8 +882,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkInterfaceListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -891,8 +897,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -905,11 +911,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -963,8 +970,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkInterfaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -978,8 +985,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -992,11 +999,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1051,8 +1059,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1067,8 +1075,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1082,11 +1090,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1140,8 +1149,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1155,8 +1164,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1169,11 +1178,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1226,12 +1236,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1247,12 +1257,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1272,12 +1282,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1295,12 +1305,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb index ec66d03b6..7e970b7ec 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb @@ -199,8 +199,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [DnsNameAvailabilityResult] operation results. # - def check_dns_name_availability(location, domain_name_label = nil, custom_headers = nil) - response = check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability(location, domain_name_label:nil, custom_headers:nil) + response = check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -215,8 +215,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_dns_name_availability_with_http_info(location, domain_name_label = nil, custom_headers = nil) - check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability_with_http_info(location, domain_name_label:nil, custom_headers:nil) + check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! end # @@ -230,13 +230,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_dns_name_availability_async(location, domain_name_label = nil, custom_headers = nil) + def check_dns_name_availability_async(location, domain_name_label:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_security_groups.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_security_groups.rb index bbd4a2499..b2d7c2777 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_security_groups.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/network_security_groups.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkSecurityGroup] operation results. # - def get(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -90,8 +90,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -114,6 +114,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -171,8 +172,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkSecurityGroup] operation results. # - def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -227,8 +228,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -239,12 +240,13 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -312,8 +314,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -325,13 +327,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -386,8 +389,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -402,8 +405,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -417,7 +420,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -425,6 +428,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -472,8 +476,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkSecurityGroup] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -490,8 +494,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! end # @@ -507,7 +511,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -516,7 +520,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -589,8 +592,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -604,8 +607,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -618,11 +621,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -676,8 +680,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -691,8 +695,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -705,11 +709,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -762,12 +767,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -783,12 +788,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/public_ipaddresses.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/public_ipaddresses.rb index d8abcd2aa..bc12d6397 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/public_ipaddresses.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/public_ipaddresses.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers) + promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [PublicIPAddress] operation results. # - def get(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [PublicIPAddress] operation results. # - def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -207,8 +208,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -232,12 +233,13 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -318,13 +320,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,8 +381,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -393,8 +396,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers = nil) - begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers:nil) + begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! end # @@ -407,7 +410,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -415,6 +418,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -461,8 +465,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [PublicIPAddress] operation results. # - def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -478,8 +482,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! end # @@ -494,7 +498,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -503,7 +507,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -576,8 +579,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [PublicIPAddressListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -591,8 +594,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -605,11 +608,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +667,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [PublicIPAddressListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +682,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -692,11 +696,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -749,12 +754,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -770,12 +775,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/route_tables.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/route_tables.rb index d8f72f50e..e6b339490 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/route_tables.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/route_tables.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, custom_headers).value! + def delete(resource_group_name, route_table_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [RouteTable] operation results. # - def get(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, route_table_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [RouteTable] operation results. # - def create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -208,8 +209,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -222,8 +223,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -235,13 +236,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -319,12 +321,13 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,8 +381,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -393,8 +396,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -407,7 +410,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -415,6 +418,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -461,8 +465,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [RouteTable] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -478,8 +482,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! end # @@ -494,7 +498,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -503,7 +507,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -576,8 +579,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [RouteTableListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -591,8 +594,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -605,11 +608,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +667,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [RouteTableListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +682,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -692,11 +696,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -750,12 +755,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -770,12 +775,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/routes.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/routes.rb index b45d6fb82..717539e56 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/routes.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/routes.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Route] operation results. # - def get(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def get_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Route] operation results. # - def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -186,9 +187,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, route_table_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers) + def list(resource_group_name, route_table_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers:custom_headers) first_page.get_all_items end @@ -229,8 +230,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - list_async(resource_group_name, route_table_name, custom_headers).value! + def list_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -243,7 +244,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, route_table_name, custom_headers = nil) + def list_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -251,6 +252,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -321,8 +323,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -336,7 +338,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -345,6 +347,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +395,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Route] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -410,8 +413,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! end # @@ -427,7 +430,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -437,7 +440,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -510,8 +512,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [RouteListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -539,11 +541,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -597,12 +600,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [RouteListResult] which provide lazy access to pages of the response. # - def list_as_lazy(resource_group_name, route_table_name, custom_headers = nil) - response = list_async(resource_group_name, route_table_name, custom_headers).value! + def list_as_lazy(resource_group_name, route_table_name, custom_headers:nil) + response = list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/security_rules.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/security_rules.rb index 7a19527ab..6291cc266 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/security_rules.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/security_rules.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -47,9 +47,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [SecurityRule] operation results. # - def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -92,8 +92,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -108,7 +108,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -117,6 +117,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -175,8 +176,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [SecurityRule] operation results. # - def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -193,9 +194,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -222,8 +223,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, network_security_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers) + def list(resource_group_name, network_security_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -238,8 +239,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -253,7 +254,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_security_group_name, custom_headers = nil) + def list_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -261,6 +262,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -316,8 +318,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -333,8 +335,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -349,7 +351,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -358,6 +360,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -406,8 +409,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [SecurityRule] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -425,8 +428,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! end # @@ -443,7 +446,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -453,7 +456,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -526,8 +528,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [SecurityRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -555,11 +557,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -615,12 +618,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [SecurityRuleListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, network_security_group_name, custom_headers = nil) - response = list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, network_security_group_name, custom_headers:nil) + response = list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/subnets.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/subnets.rb index b4875e3d8..2af14b8fd 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/subnets.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/subnets.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Subnet] operation results. # - def get(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -90,8 +90,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Subnet] operation results. # - def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -232,8 +233,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -246,7 +247,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -254,6 +255,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -324,8 +326,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! end # @@ -339,7 +341,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -348,6 +350,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Subnet] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -413,8 +416,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! end # @@ -430,7 +433,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -440,7 +443,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -513,8 +515,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [SubnetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -528,8 +530,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -542,11 +544,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -601,12 +604,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [SubnetListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/usages.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/usages.rb index 75bb702d9..56e7707c6 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/usages.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/usages.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -57,7 +57,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -65,6 +65,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -119,8 +120,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [UsagesListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -148,11 +149,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -206,12 +208,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [UsagesListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateway_connections.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateway_connections.rb index 1a840b0c1..72d9e7a4e 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateway_connections.rb @@ -35,8 +35,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkGatewayConnection] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,9 +52,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -81,8 +81,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkGatewayConnection] operation results. # - def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -97,8 +97,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -112,7 +112,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -120,6 +120,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ConnectionSharedKeyResult] operation results. # - def get_shared_key(resource_group_name, connection_shared_key_name, custom_headers = nil) - response = get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers).value! + def get_shared_key(resource_group_name, connection_shared_key_name, custom_headers:nil) + response = get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -235,8 +236,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_shared_key_with_http_info(resource_group_name, connection_shared_key_name, custom_headers = nil) - get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers).value! + def get_shared_key_with_http_info(resource_group_name, connection_shared_key_name, custom_headers:nil) + get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers:custom_headers).value! end # @@ -252,7 +253,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers = nil) + def get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'connection_shared_key_name is nil' if connection_shared_key_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -260,6 +261,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +316,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -329,8 +331,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -343,13 +345,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -411,8 +414,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ConnectionResetSharedKey] operation results. # - def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -429,9 +432,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -463,8 +466,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ConnectionSharedKey] operation results. # - def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,9 +484,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -513,8 +516,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkGatewayConnection] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -532,8 +535,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -550,7 +553,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -559,7 +562,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -632,8 +634,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -648,8 +650,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -663,7 +665,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -671,6 +673,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -722,8 +725,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ConnectionResetSharedKey] operation results. # - def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -744,8 +747,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -765,7 +768,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -774,7 +777,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -843,8 +845,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [ConnectionSharedKey] operation results. # - def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -864,8 +866,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -884,7 +886,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -893,7 +895,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -967,8 +968,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkGatewayConnectionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -983,8 +984,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -998,11 +999,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1057,12 +1059,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [VirtualNetworkGatewayConnectionListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateways.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateways.rb index 750932feb..a5a62c815 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateways.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkGateway] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkGateway] operation results. # - def get(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,8 +96,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -119,6 +119,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -187,9 +188,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -226,8 +227,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -239,13 +240,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -304,8 +306,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkGateway] operation results. # - def reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,9 +323,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -353,8 +355,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [String] operation results. # - def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -372,8 +374,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -390,7 +392,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -399,7 +401,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -472,8 +473,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -490,8 +491,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -507,7 +508,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -516,7 +517,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -589,8 +589,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -605,8 +605,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -620,7 +620,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -628,6 +628,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -676,8 +677,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkGateway] operation results. # - def begin_reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -695,8 +696,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -713,7 +714,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -722,7 +723,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -785,8 +785,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -800,8 +800,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -814,11 +814,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -872,12 +873,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [VirtualNetworkGatewayListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_networks.rb b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_networks.rb index 060cf86e9..a80ad5a7f 100644 --- a/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_networks.rb +++ b/management/azure_mgmt_network/lib/2015-06-15/generated/azure_mgmt_network/virtual_networks.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2015_06_15 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetwork] operation results. # - def get(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetwork] operation results. # - def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -207,8 +208,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -232,12 +233,13 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -318,13 +320,14 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,8 +381,8 @@ module Azure::Network::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -393,8 +396,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -407,7 +410,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -415,6 +418,7 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -461,8 +465,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetwork] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -478,8 +482,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! end # @@ -494,7 +498,7 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -503,7 +507,6 @@ module Azure::Network::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -576,8 +579,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -591,8 +594,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -605,11 +608,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +667,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [VirtualNetworkListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +682,8 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -692,11 +696,12 @@ module Azure::Network::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -749,12 +754,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -770,12 +775,12 @@ module Azure::Network::Mgmt::V2015_06_15 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/application_gateways.rb index de520fe55..886a8f7ff 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/application_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/application_gateways.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -44,9 +44,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ApplicationGateway] operation results. # - def get(resource_group_name, application_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get(resource_group_name, application_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -87,8 +87,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -102,7 +102,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, application_gateway_name, custom_headers = nil) + def get_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -110,6 +110,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -166,8 +167,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ApplicationGateway] operation results. # - def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -182,9 +183,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -225,8 +226,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -239,13 +240,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -299,8 +301,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -313,8 +315,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -326,12 +328,13 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -385,8 +388,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def start(resource_group_name, application_gateway_name, custom_headers = nil) - response = start_async(resource_group_name, application_gateway_name, custom_headers).value! + def start(resource_group_name, application_gateway_name, custom_headers:nil) + response = start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -399,9 +402,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def start_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -424,8 +427,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -438,9 +441,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def stop_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -464,8 +467,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -480,8 +483,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -495,7 +498,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -503,6 +506,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -549,8 +553,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ApplicationGateway] operation results. # - def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -566,8 +570,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -582,7 +586,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -591,7 +595,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -664,8 +667,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_start(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -680,8 +683,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -695,7 +698,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_start_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -703,6 +706,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -747,8 +751,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -763,8 +767,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -778,7 +782,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_stop_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -786,6 +790,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -831,8 +836,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ApplicationGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -847,8 +852,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -862,11 +867,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -921,8 +927,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ApplicationGatewayListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -937,8 +943,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -952,11 +958,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1011,12 +1018,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1032,12 +1039,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuit_authorizations.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuit_authorizations.rb index 6390f6ee3..8b2e89ca9 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuit_authorizations.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -74,8 +74,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def get(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -107,7 +107,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -116,6 +116,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -174,8 +175,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -236,8 +237,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -251,7 +252,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -259,6 +260,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +316,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -331,8 +333,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -347,7 +349,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -356,6 +358,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -404,8 +407,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -423,8 +426,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! end # @@ -441,7 +444,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -451,7 +454,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [AuthorizationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -556,11 +558,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -616,12 +619,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [AuthorizationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuit_peerings.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuit_peerings.rb index ce42c5360..3ee42d783 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuit_peerings.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuit_peerings.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -74,8 +74,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitPeering] operation results. # - def get(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -107,7 +107,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -116,6 +116,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -174,8 +175,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitPeering] operation results. # - def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -236,8 +237,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -251,7 +252,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -259,6 +260,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +316,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -331,8 +333,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -347,7 +349,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -356,6 +358,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -404,8 +407,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitPeering] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -423,8 +426,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! end # @@ -441,7 +444,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -451,7 +454,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -556,11 +558,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -616,12 +619,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [ExpressRouteCircuitPeeringListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuits.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuits.rb index 63a1c6ef0..a763c5e1d 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuits.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuits.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, custom_headers).value! + def delete(resource_group_name, circuit_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -44,9 +44,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuit] operation results. # - def get(resource_group_name, circuit_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, custom_headers).value! + def get(resource_group_name, circuit_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -87,8 +87,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -102,7 +102,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -110,6 +110,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -166,8 +167,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuit] operation results. # - def create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -182,9 +183,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -230,9 +231,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -262,8 +263,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -278,9 +279,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -310,8 +311,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -326,9 +327,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -355,8 +356,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitStats] operation results. # - def get_stats(resource_group_name, circuit_name, custom_headers = nil) - response = get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats(resource_group_name, circuit_name, custom_headers:nil) + response = get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -371,8 +372,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -386,7 +387,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_stats_async(resource_group_name, circuit_name, custom_headers = nil) + def get_stats_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -394,6 +395,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -450,8 +452,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitStats] operation results. # - def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -467,8 +469,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -483,7 +485,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -492,6 +494,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -546,8 +549,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -561,8 +564,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -575,13 +578,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -635,8 +639,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -649,8 +653,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -662,12 +666,13 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -722,8 +727,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -738,8 +743,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -753,7 +758,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -761,6 +766,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -807,8 +813,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuit] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -824,8 +830,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! end # @@ -840,7 +846,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -849,7 +855,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -926,8 +931,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -945,8 +950,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -963,7 +968,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -973,6 +978,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1031,8 +1037,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1050,8 +1056,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1068,7 +1074,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1078,6 +1084,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1136,8 +1143,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1155,8 +1162,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1173,7 +1180,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1183,6 +1190,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1238,8 +1246,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1254,8 +1262,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1269,11 +1277,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1328,8 +1337,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1344,8 +1353,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1359,11 +1368,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1418,12 +1428,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1439,12 +1449,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_service_providers.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_service_providers.rb index 49a7799a6..9569ad866 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_service_providers.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/express_route_service_providers.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -118,8 +119,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ExpressRouteServiceProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -149,11 +150,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -207,12 +209,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [ExpressRouteServiceProviderListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/load_balancers.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/load_balancers.rb index fccb2abe0..86d767f98 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/load_balancers.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/load_balancers.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def delete_async(resource_group_name, load_balancer_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers) + promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [LoadBalancer] operation results. # - def get(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [LoadBalancer] operation results. # - def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -211,8 +212,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -225,8 +226,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -238,12 +239,13 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -313,8 +315,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -327,13 +329,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -387,8 +390,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -402,8 +405,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -416,7 +419,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def begin_delete_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -424,6 +427,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -470,8 +474,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [LoadBalancer] operation results. # - def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -487,8 +491,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! end # @@ -503,7 +507,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -512,7 +516,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -586,8 +589,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [LoadBalancerListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -602,8 +605,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -617,11 +620,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -676,8 +680,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [LoadBalancerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -692,8 +696,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -707,11 +711,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -765,12 +770,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -787,12 +792,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/local_network_gateways.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/local_network_gateways.rb index 34a8055e2..1163ae511 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/local_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/local_network_gateways.rb @@ -36,8 +36,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [LocalNetworkGateway] operation results. # - def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [LocalNetworkGateway] operation results. # - def get(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -101,8 +101,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -117,7 +117,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -125,6 +125,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -179,8 +180,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -194,9 +195,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -235,8 +236,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -249,13 +250,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -315,8 +317,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [LocalNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -335,8 +337,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -354,7 +356,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -363,7 +365,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -437,8 +438,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -454,8 +455,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -470,7 +471,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -478,6 +479,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -523,8 +525,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [LocalNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -539,8 +541,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -554,11 +556,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -613,12 +616,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [LocalNetworkGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_interfaces.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_interfaces.rb index 17b0efa8d..7b235a3f1 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_interfaces.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_interfaces.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_interface_name, custom_headers = nil) - response = delete_async(resource_group_name, network_interface_name, custom_headers).value! + def delete(resource_group_name, network_interface_name, custom_headers:nil) + response = delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def delete_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkInterface] operation results. # - def get(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkInterface] operation results. # - def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -215,8 +216,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers) + def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers) first_page.get_all_items end @@ -233,8 +234,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! end # @@ -250,7 +251,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -259,6 +260,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -315,8 +317,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers) + def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -332,8 +334,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! end # @@ -348,7 +350,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -356,6 +358,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -415,8 +418,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkInterface] operation results. # - def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -435,8 +438,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -454,7 +457,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) + def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -464,6 +467,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -517,8 +521,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -531,8 +535,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -544,12 +548,13 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -604,8 +609,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -619,8 +624,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -633,13 +638,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -693,8 +699,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -708,8 +714,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -722,7 +728,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -730,6 +736,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -776,8 +783,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkInterface] operation results. # - def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -793,8 +800,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! end # @@ -809,7 +816,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -818,7 +825,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -892,8 +898,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -908,8 +914,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -923,11 +929,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -982,8 +989,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -998,8 +1005,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1013,11 +1020,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1072,8 +1080,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkInterfaceListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1088,8 +1096,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1103,11 +1111,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1162,8 +1171,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkInterfaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1178,8 +1187,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1193,11 +1202,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1255,12 +1265,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1279,12 +1289,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1300,12 +1310,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1322,12 +1332,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb index d3fc86150..32381869d 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb @@ -199,8 +199,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [DnsNameAvailabilityResult] operation results. # - def check_dns_name_availability(location, domain_name_label = nil, custom_headers = nil) - response = check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability(location, domain_name_label:nil, custom_headers:nil) + response = check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -215,8 +215,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_dns_name_availability_with_http_info(location, domain_name_label = nil, custom_headers = nil) - check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability_with_http_info(location, domain_name_label:nil, custom_headers:nil) + check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! end # @@ -230,13 +230,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_dns_name_availability_async(location, domain_name_label = nil, custom_headers = nil) + def check_dns_name_availability_async(location, domain_name_label:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_security_groups.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_security_groups.rb index 85fa45246..894c72859 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_security_groups.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/network_security_groups.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkSecurityGroup] operation results. # - def get(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -93,8 +93,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! end # @@ -110,7 +110,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -118,6 +118,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkSecurityGroup] operation results. # - def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -193,9 +194,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -234,8 +235,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -247,12 +248,13 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -322,8 +324,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -336,13 +338,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -398,8 +401,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -415,8 +418,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -431,7 +434,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -439,6 +442,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -487,8 +491,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkSecurityGroup] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -506,8 +510,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! end # @@ -524,7 +528,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -533,7 +537,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -607,8 +610,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -623,8 +626,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -638,11 +641,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -697,8 +701,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -713,8 +717,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -728,11 +732,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -786,12 +791,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -808,12 +813,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/public_ipaddresses.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/public_ipaddresses.rb index 9d04f60d5..5ecb94245 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/public_ipaddresses.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/public_ipaddresses.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers) + promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [PublicIPAddress] operation results. # - def get(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [PublicIPAddress] operation results. # - def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -185,9 +186,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -226,8 +227,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -239,12 +240,13 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -299,8 +301,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -314,8 +316,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -328,13 +330,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -388,8 +391,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -403,8 +406,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers = nil) - begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers:nil) + begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! end # @@ -417,7 +420,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -425,6 +428,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -472,8 +476,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [PublicIPAddress] operation results. # - def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -490,8 +494,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! end # @@ -507,7 +511,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -516,7 +520,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -590,8 +593,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [PublicIPAddressListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -606,8 +609,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -621,11 +624,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -680,8 +684,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [PublicIPAddressListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -696,8 +700,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -711,11 +715,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -769,12 +774,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -791,12 +796,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/route_tables.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/route_tables.rb index 186560a48..dd6f23187 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/route_tables.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/route_tables.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, custom_headers).value! + def delete(resource_group_name, route_table_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [RouteTable] operation results. # - def get(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, route_table_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [RouteTable] operation results. # - def create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -185,9 +186,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -226,8 +227,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -239,13 +240,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -311,8 +313,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -323,12 +325,13 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -382,8 +385,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -397,8 +400,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -411,7 +414,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -419,6 +422,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -466,8 +470,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [RouteTable] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -484,8 +488,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! end # @@ -501,7 +505,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -510,7 +514,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -583,8 +586,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [RouteTableListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -598,8 +601,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -612,11 +615,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -670,8 +674,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [RouteTableListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -685,8 +689,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -699,11 +703,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -757,12 +762,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -777,12 +782,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/routes.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/routes.rb index 1569be95c..e1792c6ca 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/routes.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/routes.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Route] operation results. # - def get(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -90,8 +90,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def get_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Route] operation results. # - def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -218,8 +219,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, route_table_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers) + def list(resource_group_name, route_table_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers:custom_headers) first_page.get_all_items end @@ -234,8 +235,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - list_async(resource_group_name, route_table_name, custom_headers).value! + def list_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -249,7 +250,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, route_table_name, custom_headers = nil) + def list_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -257,6 +258,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,8 +313,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -327,8 +329,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -342,7 +344,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -351,6 +353,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -398,8 +401,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Route] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -416,8 +419,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! end # @@ -433,7 +436,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -443,7 +446,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -517,8 +519,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [RouteListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -533,8 +535,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -548,11 +550,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -607,12 +610,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [RouteListResult] which provide lazy access to pages of the response. # - def list_as_lazy(resource_group_name, route_table_name, custom_headers = nil) - response = list_async(resource_group_name, route_table_name, custom_headers).value! + def list_as_lazy(resource_group_name, route_table_name, custom_headers:nil) + response = list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/security_rules.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/security_rules.rb index abba854ec..fa509ba77 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/security_rules.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/security_rules.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -77,8 +77,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [SecurityRule] operation results. # - def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -95,8 +95,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -112,7 +112,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -121,6 +121,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -180,8 +181,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [SecurityRule] operation results. # - def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -198,9 +199,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -228,8 +229,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, network_security_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers) + def list(resource_group_name, network_security_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -245,8 +246,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -261,7 +262,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_security_group_name, custom_headers = nil) + def list_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -269,6 +270,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -325,8 +327,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -343,8 +345,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -360,7 +362,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -369,6 +371,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -418,8 +421,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [SecurityRule] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -438,8 +441,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! end # @@ -457,7 +460,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -467,7 +470,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [SecurityRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -557,8 +559,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -572,11 +574,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -633,12 +636,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [SecurityRuleListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, network_security_group_name, custom_headers = nil) - response = list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, network_security_group_name, custom_headers:nil) + response = list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/subnets.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/subnets.rb index cdc2c7f09..8e936b704 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/subnets.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/subnets.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Subnet] operation results. # - def get(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -90,8 +90,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Subnet] operation results. # - def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -190,9 +191,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -218,8 +219,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -233,8 +234,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -247,7 +248,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -255,6 +256,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -309,8 +311,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -325,8 +327,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! end # @@ -340,7 +342,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -349,6 +351,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -397,8 +400,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Subnet] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -416,8 +419,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! end # @@ -434,7 +437,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -444,7 +447,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -517,8 +519,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [SubnetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -532,8 +534,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -546,11 +548,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -605,12 +608,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [SubnetListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/usages.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/usages.rb index d863167b9..575f40874 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/usages.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/usages.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [UsagesListResult] operation results. # - def list(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -57,7 +57,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -65,6 +65,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_network_gateway_connections.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_network_gateway_connections.rb index ee91b8533..2ab0630bb 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_network_gateway_connections.rb @@ -37,8 +37,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkGatewayConnection] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,9 +55,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkGatewayConnection] operation results. # - def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -104,8 +104,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -121,7 +121,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -129,6 +129,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -183,8 +184,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -198,9 +199,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -227,8 +228,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ConnectionSharedKeyResult] operation results. # - def get_shared_key(resource_group_name, connection_shared_key_name, custom_headers = nil) - response = get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers).value! + def get_shared_key(resource_group_name, connection_shared_key_name, custom_headers:nil) + response = get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -245,8 +246,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_shared_key_with_http_info(resource_group_name, connection_shared_key_name, custom_headers = nil) - get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers).value! + def get_shared_key_with_http_info(resource_group_name, connection_shared_key_name, custom_headers:nil) + get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers:custom_headers).value! end # @@ -262,7 +263,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers = nil) + def get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'connection_shared_key_name is nil' if connection_shared_key_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -270,6 +271,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -324,8 +326,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -339,8 +341,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -353,13 +355,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -421,8 +424,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ConnectionResetSharedKey] operation results. # - def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -439,9 +442,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -473,8 +476,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ConnectionSharedKey] operation results. # - def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -491,9 +494,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -525,8 +528,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkGatewayConnection] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -546,8 +549,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -566,7 +569,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -575,7 +578,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -649,8 +651,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -666,8 +668,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -682,7 +684,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -690,6 +692,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -741,8 +744,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ConnectionResetSharedKey] operation results. # - def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -763,8 +766,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -784,7 +787,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -793,7 +796,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -862,8 +864,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [ConnectionSharedKey] operation results. # - def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -883,8 +885,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -903,7 +905,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -912,7 +914,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -986,8 +987,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkGatewayConnectionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1002,8 +1003,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1017,11 +1018,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1076,12 +1078,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [VirtualNetworkGatewayConnectionListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_network_gateways.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_network_gateways.rb index 511f8b0e4..a6980e1a2 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_network_gateways.rb @@ -36,8 +36,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkGateway] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkGateway] operation results. # - def get(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -101,8 +101,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -117,7 +117,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -125,6 +125,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -179,8 +180,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -194,9 +195,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -235,8 +236,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -249,13 +250,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -315,8 +317,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkGateway] operation results. # - def reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -332,9 +334,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -366,8 +368,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [String] operation results. # - def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -387,8 +389,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -407,7 +409,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -416,7 +418,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -491,8 +492,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -511,8 +512,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -530,7 +531,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -539,7 +540,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -613,8 +613,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -630,8 +630,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -646,7 +646,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -654,6 +654,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -703,8 +704,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkGateway] operation results. # - def begin_reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -723,8 +724,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -742,7 +743,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -751,7 +752,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -815,8 +815,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -831,8 +831,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -846,11 +846,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -905,12 +906,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [VirtualNetworkGatewayListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_networks.rb b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_networks.rb index cdcefc190..2e6d7b781 100644 --- a/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_networks.rb +++ b/management/azure_mgmt_network/lib/2016-03-30/generated/azure_mgmt_network/virtual_networks.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_03_30 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetwork] operation results. # - def get(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetwork] operation results. # - def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -185,9 +186,9 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -211,8 +212,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -224,8 +225,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -236,12 +237,13 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -295,8 +297,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -309,8 +311,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -322,13 +324,14 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -382,8 +385,8 @@ module Azure::Network::Mgmt::V2016_03_30 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -397,8 +400,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -411,7 +414,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -419,6 +422,7 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -466,8 +470,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetwork] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -484,8 +488,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! end # @@ -501,7 +505,7 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -510,7 +514,6 @@ module Azure::Network::Mgmt::V2016_03_30 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -583,8 +586,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -598,8 +601,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -612,11 +615,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -670,8 +674,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [VirtualNetworkListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -685,8 +689,8 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -699,11 +703,12 @@ module Azure::Network::Mgmt::V2016_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -756,12 +761,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -777,12 +782,12 @@ module Azure::Network::Mgmt::V2016_03_30 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/application_gateways.rb index da17820d5..358aa09fe 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/application_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/application_gateways.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -44,9 +44,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ApplicationGateway] operation results. # - def get(resource_group_name, application_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get(resource_group_name, application_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -87,8 +87,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -102,7 +102,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, application_gateway_name, custom_headers = nil) + def get_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -110,6 +110,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -166,8 +167,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ApplicationGateway] operation results. # - def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -182,9 +183,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -225,8 +226,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -239,13 +240,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -299,8 +301,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -313,8 +315,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -326,12 +328,13 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -385,8 +388,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def start(resource_group_name, application_gateway_name, custom_headers = nil) - response = start_async(resource_group_name, application_gateway_name, custom_headers).value! + def start(resource_group_name, application_gateway_name, custom_headers:nil) + response = start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -399,9 +402,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def start_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -424,8 +427,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -438,9 +441,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def stop_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -464,8 +467,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -480,8 +483,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -495,7 +498,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -503,6 +506,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -549,8 +553,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ApplicationGateway] operation results. # - def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -566,8 +570,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -582,7 +586,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -591,7 +595,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -664,8 +667,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_start(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -680,8 +683,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -695,7 +698,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_start_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -703,6 +706,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -747,8 +751,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -763,8 +767,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -778,7 +782,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_stop_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -786,6 +790,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -831,8 +836,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ApplicationGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -847,8 +852,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -862,11 +867,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -921,8 +927,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ApplicationGatewayListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -937,8 +943,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -952,11 +958,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1011,12 +1018,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1032,12 +1039,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb index 93eecf4b3..3ca8f1354 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -74,8 +74,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def get(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -107,7 +107,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -116,6 +116,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -174,8 +175,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -236,8 +237,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -251,7 +252,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -259,6 +260,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +316,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -331,8 +333,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -347,7 +349,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -356,6 +358,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -404,8 +407,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -423,8 +426,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! end # @@ -441,7 +444,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -451,7 +454,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [AuthorizationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -556,11 +558,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -616,12 +619,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [AuthorizationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb index c2da59fb8..3cd95961e 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -74,8 +74,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def get(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -107,7 +107,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -116,6 +116,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -174,8 +175,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -236,8 +237,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -251,7 +252,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -259,6 +260,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +316,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -331,8 +333,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -347,7 +349,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -356,6 +358,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -404,8 +407,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -423,8 +426,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! end # @@ -441,7 +444,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -451,7 +454,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -556,11 +558,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -616,12 +619,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [ExpressRouteCircuitPeeringListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuits.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuits.rb index c03453022..4ea0db721 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuits.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuits.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, custom_headers).value! + def delete(resource_group_name, circuit_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -44,9 +44,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuit] operation results. # - def get(resource_group_name, circuit_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, custom_headers).value! + def get(resource_group_name, circuit_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -87,8 +87,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -102,7 +102,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -110,6 +110,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -166,8 +167,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuit] operation results. # - def create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -182,9 +183,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -230,9 +231,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -262,8 +263,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -278,9 +279,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -310,8 +311,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -326,9 +327,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -355,8 +356,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitStats] operation results. # - def get_stats(resource_group_name, circuit_name, custom_headers = nil) - response = get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats(resource_group_name, circuit_name, custom_headers:nil) + response = get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -371,8 +372,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -386,7 +387,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_stats_async(resource_group_name, circuit_name, custom_headers = nil) + def get_stats_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -394,6 +395,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -450,8 +452,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitStats] operation results. # - def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -467,8 +469,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -483,7 +485,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -492,6 +494,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -546,8 +549,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -561,8 +564,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -575,13 +578,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -635,8 +639,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -649,8 +653,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -662,12 +666,13 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -722,8 +727,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -738,8 +743,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -753,7 +758,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -761,6 +766,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -807,8 +813,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuit] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -824,8 +830,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! end # @@ -840,7 +846,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -849,7 +855,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -926,8 +931,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -945,8 +950,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -963,7 +968,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -973,6 +978,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1031,8 +1037,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1050,8 +1056,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1068,7 +1074,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1078,6 +1084,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1136,8 +1143,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1155,8 +1162,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1173,7 +1180,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1183,6 +1190,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1238,8 +1246,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1254,8 +1262,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1269,11 +1277,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1328,8 +1337,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1344,8 +1353,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1359,11 +1368,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1418,12 +1428,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1439,12 +1449,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_service_providers.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_service_providers.rb index 856eb9a26..52ffb0fcc 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_service_providers.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/express_route_service_providers.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -118,8 +119,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ExpressRouteServiceProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -149,11 +150,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -207,12 +209,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [ExpressRouteServiceProviderListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/load_balancers.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/load_balancers.rb index c944708cc..7f7225f23 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/load_balancers.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/load_balancers.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def delete_async(resource_group_name, load_balancer_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers) + promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [LoadBalancer] operation results. # - def get(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [LoadBalancer] operation results. # - def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -211,8 +212,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -225,8 +226,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -238,12 +239,13 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -313,8 +315,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -327,13 +329,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -387,8 +390,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -402,8 +405,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -416,7 +419,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def begin_delete_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -424,6 +427,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -470,8 +474,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [LoadBalancer] operation results. # - def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -487,8 +491,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! end # @@ -503,7 +507,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -512,7 +516,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -586,8 +589,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [LoadBalancerListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -602,8 +605,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -617,11 +620,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -676,8 +680,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [LoadBalancerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -692,8 +696,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -707,11 +711,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -765,12 +770,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -787,12 +792,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/local_network_gateways.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/local_network_gateways.rb index dfe44e93e..8d0b32bb2 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/local_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/local_network_gateways.rb @@ -36,8 +36,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [LocalNetworkGateway] operation results. # - def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [LocalNetworkGateway] operation results. # - def get(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -101,8 +101,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -117,7 +117,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -125,6 +125,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -179,8 +180,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -194,9 +195,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -235,8 +236,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -249,13 +250,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -315,8 +317,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [LocalNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -335,8 +337,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -354,7 +356,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -363,7 +365,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -437,8 +438,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -454,8 +455,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -470,7 +471,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -478,6 +479,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -523,8 +525,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [LocalNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -539,8 +541,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -554,11 +556,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -613,12 +616,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [LocalNetworkGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_interfaces.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_interfaces.rb index feae8ceb4..df8b37694 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_interfaces.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_interfaces.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_interface_name, custom_headers = nil) - response = delete_async(resource_group_name, network_interface_name, custom_headers).value! + def delete(resource_group_name, network_interface_name, custom_headers:nil) + response = delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def delete_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkInterface] operation results. # - def get(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkInterface] operation results. # - def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -215,8 +216,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers) + def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers) first_page.get_all_items end @@ -233,8 +234,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! end # @@ -250,7 +251,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -259,6 +260,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -315,8 +317,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers) + def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -332,8 +334,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! end # @@ -348,7 +350,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -356,6 +358,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -415,8 +418,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkInterface] operation results. # - def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -435,8 +438,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -454,7 +457,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) + def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -464,6 +467,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -517,8 +521,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -531,8 +535,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -544,12 +548,13 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -604,8 +609,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -619,8 +624,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -633,13 +638,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -695,8 +701,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [EffectiveRouteListResult] operation results. # - def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) - response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil) + response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -709,9 +715,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) + def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -738,8 +744,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [EffectiveNetworkSecurityGroupListResult] operation results. # - def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) - response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil) + response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -752,9 +758,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) + def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -779,8 +785,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -794,8 +800,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -808,7 +814,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -816,6 +822,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -862,8 +869,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkInterface] operation results. # - def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -879,8 +886,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! end # @@ -895,7 +902,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -904,7 +911,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -978,8 +984,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [EffectiveRouteListResult] operation results. # - def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -994,8 +1000,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -1009,7 +1015,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1017,6 +1023,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1072,8 +1079,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [EffectiveNetworkSecurityGroupListResult] operation results. # - def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1088,8 +1095,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -1103,7 +1110,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1111,6 +1118,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1166,8 +1174,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1182,8 +1190,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1197,11 +1205,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1256,8 +1265,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1272,8 +1281,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1287,11 +1296,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1346,8 +1356,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1362,8 +1372,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1377,11 +1387,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1436,8 +1447,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1452,8 +1463,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1467,11 +1478,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1529,12 +1541,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1553,12 +1565,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1574,12 +1586,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1596,12 +1608,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb index 758f0ea59..0d7b6750d 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb @@ -203,8 +203,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [DnsNameAvailabilityResult] operation results. # - def check_dns_name_availability(location, domain_name_label = nil, custom_headers = nil) - response = check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability(location, domain_name_label:nil, custom_headers:nil) + response = check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -219,8 +219,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_dns_name_availability_with_http_info(location, domain_name_label = nil, custom_headers = nil) - check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability_with_http_info(location, domain_name_label:nil, custom_headers:nil) + check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! end # @@ -234,13 +234,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_dns_name_availability_async(location, domain_name_label = nil, custom_headers = nil) + def check_dns_name_availability_async(location, domain_name_label:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_security_groups.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_security_groups.rb index 696be4030..982fd7f15 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_security_groups.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/network_security_groups.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkSecurityGroup] operation results. # - def get(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -93,8 +93,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! end # @@ -110,7 +110,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -118,6 +118,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkSecurityGroup] operation results. # - def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -193,9 +194,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -234,8 +235,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -247,12 +248,13 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -322,8 +324,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -336,13 +338,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -398,8 +401,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -415,8 +418,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -431,7 +434,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -439,6 +442,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -487,8 +491,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkSecurityGroup] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -506,8 +510,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! end # @@ -524,7 +528,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -533,7 +537,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -607,8 +610,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -623,8 +626,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -638,11 +641,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -697,8 +701,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -713,8 +717,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -728,11 +732,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -786,12 +791,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -808,12 +813,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/public_ipaddresses.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/public_ipaddresses.rb index c365dc450..3f6ad8b9c 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/public_ipaddresses.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/public_ipaddresses.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers) + promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [PublicIPAddress] operation results. # - def get(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [PublicIPAddress] operation results. # - def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -185,9 +186,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -226,8 +227,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -239,12 +240,13 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -299,8 +301,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -314,8 +316,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -328,13 +330,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -388,8 +391,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -403,8 +406,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers = nil) - begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers:nil) + begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! end # @@ -417,7 +420,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -425,6 +428,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -472,8 +476,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [PublicIPAddress] operation results. # - def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -490,8 +494,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! end # @@ -507,7 +511,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -516,7 +520,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -590,8 +593,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [PublicIPAddressListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -606,8 +609,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -621,11 +624,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -680,8 +684,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [PublicIPAddressListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -696,8 +700,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -711,11 +715,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -769,12 +774,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -791,12 +796,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/route_tables.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/route_tables.rb index 05b9a001a..d1c7e8576 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/route_tables.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/route_tables.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, custom_headers).value! + def delete(resource_group_name, route_table_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [RouteTable] operation results. # - def get(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, route_table_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [RouteTable] operation results. # - def create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -185,9 +186,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -226,8 +227,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -239,13 +240,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -311,8 +313,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -323,12 +325,13 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -382,8 +385,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -397,8 +400,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -411,7 +414,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -419,6 +422,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -466,8 +470,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [RouteTable] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -484,8 +488,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! end # @@ -501,7 +505,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -510,7 +514,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -583,8 +586,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [RouteTableListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -598,8 +601,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -612,11 +615,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -670,8 +674,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [RouteTableListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -685,8 +689,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -699,11 +703,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -757,12 +762,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -777,12 +782,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/routes.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/routes.rb index 0ca429f9d..ac14b5d27 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/routes.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/routes.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Route] operation results. # - def get(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -90,8 +90,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def get_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Route] operation results. # - def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -218,8 +219,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, route_table_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers) + def list(resource_group_name, route_table_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers:custom_headers) first_page.get_all_items end @@ -234,8 +235,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - list_async(resource_group_name, route_table_name, custom_headers).value! + def list_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -249,7 +250,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, route_table_name, custom_headers = nil) + def list_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -257,6 +258,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,8 +313,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -327,8 +329,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -342,7 +344,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -351,6 +353,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -398,8 +401,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Route] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -416,8 +419,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! end # @@ -433,7 +436,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -443,7 +446,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -517,8 +519,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [RouteListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -533,8 +535,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -548,11 +550,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -607,12 +610,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [RouteListResult] which provide lazy access to pages of the response. # - def list_as_lazy(resource_group_name, route_table_name, custom_headers = nil) - response = list_async(resource_group_name, route_table_name, custom_headers).value! + def list_as_lazy(resource_group_name, route_table_name, custom_headers:nil) + response = list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/security_rules.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/security_rules.rb index 4e52ba28d..2c45b846d 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/security_rules.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/security_rules.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -77,8 +77,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [SecurityRule] operation results. # - def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -95,8 +95,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -112,7 +112,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -121,6 +121,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -180,8 +181,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [SecurityRule] operation results. # - def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -198,9 +199,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -228,8 +229,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, network_security_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers) + def list(resource_group_name, network_security_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -245,8 +246,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -261,7 +262,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_security_group_name, custom_headers = nil) + def list_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -269,6 +270,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -325,8 +327,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -343,8 +345,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -360,7 +362,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -369,6 +371,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -418,8 +421,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [SecurityRule] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -438,8 +441,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! end # @@ -457,7 +460,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -467,7 +470,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [SecurityRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -557,8 +559,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -572,11 +574,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -633,12 +636,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [SecurityRuleListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, network_security_group_name, custom_headers = nil) - response = list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, network_security_group_name, custom_headers:nil) + response = list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/subnets.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/subnets.rb index 44251ad3d..bf57f9313 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/subnets.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/subnets.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Subnet] operation results. # - def get(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -90,8 +90,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Subnet] operation results. # - def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -190,9 +191,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -218,8 +219,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -233,8 +234,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -247,7 +248,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -255,6 +256,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -309,8 +311,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -325,8 +327,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! end # @@ -340,7 +342,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -349,6 +351,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -397,8 +400,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Subnet] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -416,8 +419,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! end # @@ -434,7 +437,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -444,7 +447,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -517,8 +519,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [SubnetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -532,8 +534,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -546,11 +548,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -605,12 +608,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [SubnetListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/usages.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/usages.rb index c6c96ae13..eb70e9d4b 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/usages.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/usages.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -57,7 +57,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -65,6 +65,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -119,8 +120,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [UsagesListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -148,11 +149,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -206,12 +208,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [UsagesListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb index 21961281c..45a6cf667 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb @@ -37,8 +37,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,9 +55,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -104,8 +104,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -121,7 +121,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -129,6 +129,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -183,8 +184,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -198,9 +199,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -227,8 +228,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ConnectionSharedKeyResult] operation results. # - def get_shared_key(resource_group_name, connection_shared_key_name, custom_headers = nil) - response = get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers).value! + def get_shared_key(resource_group_name, connection_shared_key_name, custom_headers:nil) + response = get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -245,8 +246,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_shared_key_with_http_info(resource_group_name, connection_shared_key_name, custom_headers = nil) - get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers).value! + def get_shared_key_with_http_info(resource_group_name, connection_shared_key_name, custom_headers:nil) + get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers:custom_headers).value! end # @@ -262,7 +263,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers = nil) + def get_shared_key_async(resource_group_name, connection_shared_key_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'connection_shared_key_name is nil' if connection_shared_key_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -270,6 +271,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -324,8 +326,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -339,8 +341,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -353,13 +355,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -421,8 +424,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ConnectionResetSharedKey] operation results. # - def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -439,9 +442,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -473,8 +476,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ConnectionSharedKey] operation results. # - def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -491,9 +494,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -525,8 +528,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -546,8 +549,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -566,7 +569,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -575,7 +578,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -649,8 +651,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -666,8 +668,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -682,7 +684,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -690,6 +692,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -741,8 +744,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ConnectionResetSharedKey] operation results. # - def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -763,8 +766,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -784,7 +787,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -793,7 +796,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -862,8 +864,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [ConnectionSharedKey] operation results. # - def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -883,8 +885,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -903,7 +905,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -912,7 +914,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -986,8 +987,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkGatewayConnectionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1002,8 +1003,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1017,11 +1018,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1076,12 +1078,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [VirtualNetworkGatewayConnectionListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_gateways.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_gateways.rb index 480435224..b5541debf 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_gateways.rb @@ -36,8 +36,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkGateway] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkGateway] operation results. # - def get(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -101,8 +101,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -117,7 +117,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -125,6 +125,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -179,8 +180,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -194,9 +195,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -235,8 +236,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -249,13 +250,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -315,8 +317,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkGateway] operation results. # - def reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -332,9 +334,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -366,8 +368,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [String] operation results. # - def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -387,8 +389,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -407,7 +409,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -416,7 +418,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -491,8 +492,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -511,8 +512,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -530,7 +531,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -539,7 +540,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -613,8 +613,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -630,8 +630,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -646,7 +646,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -654,6 +654,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -703,8 +704,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkGateway] operation results. # - def begin_reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_reset(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -723,8 +724,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -742,7 +743,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_reset_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -751,7 +752,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -815,8 +815,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -831,8 +831,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -846,11 +846,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -905,12 +906,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [VirtualNetworkGatewayListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_peerings.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_peerings.rb index 0461d46ed..91b36138e 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_peerings.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_peerings.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! nil end @@ -47,9 +47,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -76,8 +76,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkPeering] operation results. # - def get(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def get(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -94,8 +94,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -120,6 +120,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -178,8 +179,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkPeering] operation results. # - def create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -195,9 +196,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -224,8 +225,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -240,8 +241,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -255,7 +256,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -263,6 +264,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -318,8 +320,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! nil end @@ -335,8 +337,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! end # @@ -351,7 +353,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -360,6 +362,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -408,8 +411,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkPeering] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -427,8 +430,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! end # @@ -445,7 +448,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -455,7 +458,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -529,8 +531,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -545,8 +547,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -560,11 +562,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -620,12 +623,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [VirtualNetworkPeeringListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_networks.rb b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_networks.rb index 0956c78ef..f0c5dd055 100644 --- a/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_networks.rb +++ b/management/azure_mgmt_network/lib/2016-06-01/generated/azure_mgmt_network/virtual_networks.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetwork] operation results. # - def get(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetwork] operation results. # - def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -185,9 +186,9 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -211,8 +212,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -224,8 +225,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -236,12 +237,13 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -295,8 +297,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -309,8 +311,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -322,13 +324,14 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -384,8 +387,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [IPAddressAvailabilityResult] operation results. # - def check_ipaddress_availability(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) - response = check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value! + def check_ipaddress_availability(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) + response = check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:ip_address, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -400,8 +403,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_ipaddress_availability_with_http_info(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) - check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value! + def check_ipaddress_availability_with_http_info(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) + check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:ip_address, custom_headers:custom_headers).value! end # @@ -415,7 +418,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) + def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -423,6 +426,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -476,8 +480,8 @@ module Azure::Network::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -491,8 +495,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -505,7 +509,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -513,6 +517,7 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -560,8 +565,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetwork] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -578,8 +583,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! end # @@ -595,7 +600,7 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -604,7 +609,6 @@ module Azure::Network::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -677,8 +681,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -692,8 +696,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -706,11 +710,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -764,8 +769,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [VirtualNetworkListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -779,8 +784,8 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -793,11 +798,12 @@ module Azure::Network::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -850,12 +856,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -871,12 +877,12 @@ module Azure::Network::Mgmt::V2016_06_01 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/application_gateways.rb index a70e423d1..2592b6f14 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/application_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/application_gateways.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -69,8 +69,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ApplicationGateway] operation results. # - def get(resource_group_name, application_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get(resource_group_name, application_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -98,7 +98,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, application_gateway_name, custom_headers = nil) + def get_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -106,6 +106,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -162,8 +163,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ApplicationGateway] operation results. # - def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -178,9 +179,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -205,8 +206,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -219,8 +220,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -232,13 +233,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -304,8 +306,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -316,12 +318,13 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -374,8 +377,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def start(resource_group_name, application_gateway_name, custom_headers = nil) - response = start_async(resource_group_name, application_gateway_name, custom_headers).value! + def start(resource_group_name, application_gateway_name, custom_headers:nil) + response = start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -388,9 +391,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def start_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -412,8 +415,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -426,9 +429,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def stop_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -455,8 +458,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ApplicationGatewayBackendHealth] operation results. # - def backend_health(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - response = backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + response = backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -471,9 +474,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) + def backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) # Send request - promise = begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers) + promise = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -498,8 +501,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -513,8 +516,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -527,7 +530,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -535,6 +538,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -581,8 +585,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ApplicationGateway] operation results. # - def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -598,8 +602,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -614,7 +618,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -623,7 +627,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -695,8 +698,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_start(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -710,8 +713,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -724,7 +727,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_start_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -732,6 +735,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -775,8 +779,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -790,8 +794,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -804,7 +808,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_stop_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -812,6 +816,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -859,8 +864,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ApplicationGatewayBackendHealth] operation results. # - def begin_backend_health(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - response = begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def begin_backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + response = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -877,8 +882,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_backend_health_with_http_info(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def begin_backend_health_with_http_info(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! end # @@ -894,7 +899,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) + def begin_backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -902,6 +907,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -956,8 +962,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ApplicationGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -971,8 +977,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -985,11 +991,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1043,8 +1050,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ApplicationGatewayListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1058,8 +1065,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1072,11 +1079,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1130,12 +1138,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1150,12 +1158,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb index a9efcb419..dc89be1fe 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def get(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -170,8 +171,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -216,8 +217,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -231,8 +232,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -245,7 +246,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -253,6 +254,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -323,8 +325,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -338,7 +340,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -347,6 +349,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -414,8 +417,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! end # @@ -432,7 +435,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -442,7 +445,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -515,8 +517,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [AuthorizationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -530,8 +532,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -544,11 +546,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -603,12 +606,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [AuthorizationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb index ddb895858..c200585fc 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def get(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -186,9 +187,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -229,8 +230,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -243,7 +244,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -251,6 +252,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -321,8 +323,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -336,7 +338,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -345,6 +347,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +395,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -410,8 +413,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! end # @@ -427,7 +430,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -437,7 +440,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -510,8 +512,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -539,11 +541,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -598,12 +601,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [ExpressRouteCircuitPeeringListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuits.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuits.rb index cc70567b7..04122fff6 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuits.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuits.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, custom_headers).value! + def delete(resource_group_name, circuit_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -69,8 +69,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuit] operation results. # - def get(resource_group_name, circuit_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, custom_headers).value! + def get(resource_group_name, circuit_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -98,7 +98,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -106,6 +106,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -162,8 +163,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuit] operation results. # - def create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -178,9 +179,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -209,8 +210,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -225,9 +226,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -256,8 +257,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -272,9 +273,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -303,8 +304,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -319,9 +320,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -347,8 +348,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitStats] operation results. # - def get_stats(resource_group_name, circuit_name, custom_headers = nil) - response = get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats(resource_group_name, circuit_name, custom_headers:nil) + response = get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -362,8 +363,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -376,7 +377,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_stats_async(resource_group_name, circuit_name, custom_headers = nil) + def get_stats_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -384,6 +385,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -439,8 +441,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitStats] operation results. # - def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -455,8 +457,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -470,7 +472,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -479,6 +481,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -532,8 +535,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -546,8 +549,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -559,13 +562,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -618,8 +622,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -631,8 +635,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -643,12 +647,13 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -702,8 +707,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -717,8 +722,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -731,7 +736,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -739,6 +744,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -785,8 +791,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuit] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -802,8 +808,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! end # @@ -818,7 +824,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -827,7 +833,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -903,8 +908,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -921,8 +926,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -938,7 +943,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -948,6 +953,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1005,8 +1011,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1023,8 +1029,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1040,7 +1046,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1050,6 +1056,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1107,8 +1114,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1125,8 +1132,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1142,7 +1149,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1152,6 +1159,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1206,8 +1214,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1221,8 +1229,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1235,11 +1243,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1293,8 +1302,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1308,8 +1317,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1322,11 +1331,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1380,12 +1390,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1400,12 +1410,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_service_providers.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_service_providers.rb index 8602132f2..d0654ab13 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_service_providers.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/express_route_service_providers.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,8 +115,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ExpressRouteServiceProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -129,8 +130,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -143,11 +144,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -200,12 +202,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [ExpressRouteServiceProviderListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/load_balancers.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/load_balancers.rb index e6f058fd1..9ea6240a0 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/load_balancers.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/load_balancers.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def delete_async(resource_group_name, load_balancer_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers) + promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [LoadBalancer] operation results. # - def get(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [LoadBalancer] operation results. # - def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -207,8 +208,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -232,12 +233,13 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -318,13 +320,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,8 +381,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -393,8 +396,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -407,7 +410,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def begin_delete_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -415,6 +418,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -461,8 +465,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [LoadBalancer] operation results. # - def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -478,8 +482,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! end # @@ -494,7 +498,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -503,7 +507,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -576,8 +579,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [LoadBalancerListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -591,8 +594,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -605,11 +608,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +667,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [LoadBalancerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +682,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -692,11 +696,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -749,12 +754,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -770,12 +775,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/local_network_gateways.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/local_network_gateways.rb index 80725b8f6..b86daefad 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/local_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/local_network_gateways.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [LocalNetworkGateway] operation results. # - def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [LocalNetworkGateway] operation results. # - def get(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,8 +96,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -119,6 +119,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -187,9 +188,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -226,8 +227,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -239,13 +240,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -303,8 +305,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [LocalNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,8 +323,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -338,7 +340,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -347,7 +349,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -420,8 +421,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -436,8 +437,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -451,7 +452,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -459,6 +460,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -503,8 +505,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [LocalNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -518,8 +520,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -532,11 +534,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -590,12 +593,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [LocalNetworkGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_interfaces.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_interfaces.rb index 7d154d8d8..ccfb0fb07 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_interfaces.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_interfaces.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers) + def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -78,6 +78,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers) + def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -149,8 +150,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! end # @@ -164,7 +165,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -172,6 +173,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -230,8 +232,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkInterface] operation results. # - def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -249,8 +251,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -267,7 +269,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) + def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -277,6 +279,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -329,8 +332,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_interface_name, custom_headers = nil) - response = delete_async(resource_group_name, network_interface_name, custom_headers).value! + def delete(resource_group_name, network_interface_name, custom_headers:nil) + response = delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -343,9 +346,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def delete_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -370,8 +373,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkInterface] operation results. # - def get(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -386,8 +389,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -401,7 +404,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -409,6 +412,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -465,8 +469,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkInterface] operation results. # - def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,9 +485,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -507,8 +511,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -520,8 +524,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -532,12 +536,13 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -591,8 +596,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -605,8 +610,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -618,13 +623,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -679,8 +685,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [EffectiveRouteListResult] operation results. # - def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) - response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil) + response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -693,9 +699,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) + def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -721,8 +727,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [EffectiveNetworkSecurityGroupListResult] operation results. # - def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) - response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil) + response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -735,9 +741,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) + def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -762,8 +768,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -777,8 +783,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -791,7 +797,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -799,6 +805,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -845,8 +852,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkInterface] operation results. # - def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -862,8 +869,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! end # @@ -878,7 +885,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -887,7 +894,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -960,8 +966,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [EffectiveRouteListResult] operation results. # - def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -975,8 +981,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -989,7 +995,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -997,6 +1003,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1051,8 +1058,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [EffectiveNetworkSecurityGroupListResult] operation results. # - def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1066,8 +1073,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -1080,7 +1087,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1088,6 +1095,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1143,8 +1151,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1159,8 +1167,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1174,11 +1182,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1232,8 +1241,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1247,8 +1256,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1261,11 +1270,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1319,8 +1329,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1334,8 +1344,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1348,11 +1358,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1406,8 +1417,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1421,8 +1432,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1435,11 +1446,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1497,12 +1509,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1520,12 +1532,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1540,12 +1552,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1561,12 +1573,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb index ce19db675..90ce50632 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb @@ -211,8 +211,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [DnsNameAvailabilityResult] operation results. # - def check_dns_name_availability(location, domain_name_label = nil, custom_headers = nil) - response = check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability(location, domain_name_label:nil, custom_headers:nil) + response = check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -227,8 +227,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_dns_name_availability_with_http_info(location, domain_name_label = nil, custom_headers = nil) - check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability_with_http_info(location, domain_name_label:nil, custom_headers:nil) + check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! end # @@ -242,13 +242,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_dns_name_availability_async(location, domain_name_label = nil, custom_headers = nil) + def check_dns_name_availability_async(location, domain_name_label:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_security_groups.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_security_groups.rb index c64071b39..a92b2b2a9 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_security_groups.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_security_groups.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkSecurityGroup] operation results. # - def get(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -90,8 +90,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -114,6 +114,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -171,8 +172,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkSecurityGroup] operation results. # - def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -227,8 +228,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -239,12 +240,13 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -312,8 +314,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -325,13 +327,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -386,8 +389,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -402,8 +405,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -417,7 +420,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -425,6 +428,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -472,8 +476,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkSecurityGroup] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -490,8 +494,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! end # @@ -507,7 +511,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -516,7 +520,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -589,8 +592,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -604,8 +607,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -618,11 +621,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -676,8 +680,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -691,8 +695,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -705,11 +709,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -762,12 +767,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -783,12 +788,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_watchers.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_watchers.rb index a7786b9af..dc1903b2c 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_watchers.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/network_watchers.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkWatcher] operation results. # - def create_or_update(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -75,7 +75,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -148,8 +147,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkWatcher] operation results. # - def get(resource_group_name, network_watcher_name, custom_headers = nil) - response = get_async(resource_group_name, network_watcher_name, custom_headers).value! + def get(resource_group_name, network_watcher_name, custom_headers:nil) + response = get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -163,8 +162,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - get_async(resource_group_name, network_watcher_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -177,7 +176,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_watcher_name, custom_headers = nil) + def get_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -185,6 +184,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -237,8 +237,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_watcher_name, custom_headers = nil) - response = delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def delete(resource_group_name, network_watcher_name, custom_headers:nil) + response = delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! nil end @@ -251,9 +251,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_watcher_name, custom_headers = nil) + def delete_async(resource_group_name, network_watcher_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_watcher_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -276,8 +276,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkWatcherListResult] operation results. # - def list(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -290,8 +290,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -303,13 +303,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -362,8 +363,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NetworkWatcherListResult] operation results. # - def list_all(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -375,8 +376,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -387,12 +388,13 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -449,8 +451,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Topology] operation results. # - def get_topology(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_topology(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -466,8 +468,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_topology_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_topology_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -482,7 +484,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -491,7 +493,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -557,8 +558,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VerificationIPFlowResult] operation results. # - def verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -573,9 +574,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -603,8 +604,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NextHopResult] operation results. # - def get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -619,9 +620,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -649,8 +650,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [SecurityGroupViewResult] operation results. # - def get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -665,9 +666,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -696,8 +697,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [TroubleshootingResult] operation results. # - def get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -713,9 +714,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -744,8 +745,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [TroubleshootingResult] operation results. # - def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -761,9 +762,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -793,8 +794,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [FlowLogInformation] operation results. # - def set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -811,9 +812,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -843,8 +844,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [FlowLogInformation] operation results. # - def get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -861,9 +862,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -888,8 +889,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_watcher_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def begin_delete(resource_group_name, network_watcher_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! nil end @@ -903,8 +904,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -917,7 +918,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_watcher_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -925,6 +926,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -972,8 +974,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VerificationIPFlowResult] operation results. # - def begin_verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -990,8 +992,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_verify_ipflow_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_verify_ipflow_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1007,7 +1009,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1016,7 +1018,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1091,8 +1092,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [NextHopResult] operation results. # - def begin_get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1108,8 +1109,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_next_hop_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_next_hop_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1124,7 +1125,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1133,7 +1134,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1208,8 +1208,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [SecurityGroupViewResult] operation results. # - def begin_get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1225,8 +1225,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_vmsecurity_rules_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_vmsecurity_rules_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1241,7 +1241,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1250,7 +1250,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1326,8 +1325,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [TroubleshootingResult] operation results. # - def begin_get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1344,8 +1343,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_troubleshooting_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1361,7 +1360,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1370,7 +1369,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1446,8 +1444,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [TroubleshootingResult] operation results. # - def begin_get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1464,8 +1462,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_troubleshooting_result_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_result_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1481,7 +1479,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1490,7 +1488,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1567,8 +1564,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [FlowLogInformation] operation results. # - def begin_set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1586,8 +1583,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_flow_log_configuration_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_set_flow_log_configuration_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1604,7 +1601,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1613,7 +1610,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1690,8 +1686,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [FlowLogInformation] operation results. # - def begin_get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1709,8 +1705,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_flow_log_status_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_flow_log_status_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1727,7 +1723,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1736,7 +1732,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/packet_captures.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/packet_captures.rb index 1fe831eb5..0ee9dd07e 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/packet_captures.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/packet_captures.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [PacketCaptureResult] operation results. # - def create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) + def create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [PacketCaptureResult] operation results. # - def get(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,8 +96,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -120,6 +120,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -213,8 +214,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -228,9 +229,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -257,8 +258,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [PacketCaptureQueryStatusResult] operation results. # - def get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -274,9 +275,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -303,8 +304,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [PacketCaptureListResult] operation results. # - def list(resource_group_name, network_watcher_name, custom_headers = nil) - response = list_async(resource_group_name, network_watcher_name, custom_headers).value! + def list(resource_group_name, network_watcher_name, custom_headers:nil) + response = list_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -319,8 +320,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - list_async(resource_group_name, network_watcher_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + list_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -334,7 +335,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_watcher_name, custom_headers = nil) + def list_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -342,6 +343,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -399,8 +401,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [PacketCaptureResult] operation results. # - def begin_create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def begin_create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -417,8 +419,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! end # @@ -434,7 +436,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -444,7 +446,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -507,8 +508,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -523,8 +524,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -538,7 +539,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -547,6 +548,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -591,8 +593,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -607,8 +609,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -622,7 +624,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -631,6 +633,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -678,8 +681,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [PacketCaptureQueryStatusResult] operation results. # - def begin_get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -696,8 +699,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_status_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_get_status_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -713,7 +716,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -722,6 +725,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/public_ipaddresses.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/public_ipaddresses.rb index 586b58331..6e4fcceb2 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/public_ipaddresses.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/public_ipaddresses.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers) + promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [PublicIPAddress] operation results. # - def get(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [PublicIPAddress] operation results. # - def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -207,8 +208,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -232,12 +233,13 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -318,13 +320,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,8 +381,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -393,8 +396,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers = nil) - begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers:nil) + begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! end # @@ -407,7 +410,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -415,6 +418,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -461,8 +465,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [PublicIPAddress] operation results. # - def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -478,8 +482,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! end # @@ -494,7 +498,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -503,7 +507,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -576,8 +579,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [PublicIPAddressListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -591,8 +594,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -605,11 +608,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +667,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [PublicIPAddressListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +682,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -692,11 +696,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -749,12 +754,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -770,12 +775,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/route_tables.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/route_tables.rb index d251fa9fb..d95eb8015 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/route_tables.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/route_tables.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, custom_headers).value! + def delete(resource_group_name, route_table_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [RouteTable] operation results. # - def get(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, route_table_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [RouteTable] operation results. # - def create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -208,8 +209,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -222,8 +223,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -235,13 +236,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -319,12 +321,13 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,8 +381,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -393,8 +396,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -407,7 +410,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -415,6 +418,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -461,8 +465,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [RouteTable] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -478,8 +482,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! end # @@ -494,7 +498,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -503,7 +507,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -576,8 +579,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [RouteTableListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -591,8 +594,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -605,11 +608,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +667,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [RouteTableListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +682,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -692,11 +696,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -750,12 +755,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -770,12 +775,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/routes.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/routes.rb index f602f5ec0..baa45c8e0 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/routes.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/routes.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Route] operation results. # - def get(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def get_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Route] operation results. # - def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -186,9 +187,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, route_table_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers) + def list(resource_group_name, route_table_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers:custom_headers) first_page.get_all_items end @@ -229,8 +230,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - list_async(resource_group_name, route_table_name, custom_headers).value! + def list_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -243,7 +244,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, route_table_name, custom_headers = nil) + def list_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -251,6 +252,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -321,8 +323,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -336,7 +338,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -345,6 +347,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +395,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Route] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -410,8 +413,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! end # @@ -427,7 +430,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -437,7 +440,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -510,8 +512,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [RouteListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -539,11 +541,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -597,12 +600,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [RouteListResult] which provide lazy access to pages of the response. # - def list_as_lazy(resource_group_name, route_table_name, custom_headers = nil) - response = list_async(resource_group_name, route_table_name, custom_headers).value! + def list_as_lazy(resource_group_name, route_table_name, custom_headers:nil) + response = list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/security_rules.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/security_rules.rb index 5d23bfa61..1371740ce 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/security_rules.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/security_rules.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -47,9 +47,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [SecurityRule] operation results. # - def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -92,8 +92,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -108,7 +108,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -117,6 +117,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -175,8 +176,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [SecurityRule] operation results. # - def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -193,9 +194,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -222,8 +223,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, network_security_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers) + def list(resource_group_name, network_security_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -238,8 +239,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -253,7 +254,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_security_group_name, custom_headers = nil) + def list_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -261,6 +262,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -316,8 +318,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -333,8 +335,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -349,7 +351,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -358,6 +360,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -406,8 +409,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [SecurityRule] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -425,8 +428,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! end # @@ -443,7 +446,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -453,7 +456,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -526,8 +528,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [SecurityRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -555,11 +557,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -615,12 +618,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [SecurityRuleListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, network_security_group_name, custom_headers = nil) - response = list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, network_security_group_name, custom_headers:nil) + response = list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/subnets.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/subnets.rb index 4a46d0192..ccc645382 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/subnets.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/subnets.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Subnet] operation results. # - def get(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -90,8 +90,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Subnet] operation results. # - def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -232,8 +233,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -246,7 +247,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -254,6 +255,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -324,8 +326,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! end # @@ -339,7 +341,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -348,6 +350,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Subnet] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -413,8 +416,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! end # @@ -430,7 +433,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -440,7 +443,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -513,8 +515,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [SubnetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -528,8 +530,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -542,11 +544,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -601,12 +604,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [SubnetListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/usages.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/usages.rb index 8a152b5b3..a66663330 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/usages.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/usages.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -57,7 +57,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -65,6 +65,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -119,8 +120,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [UsagesListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -148,11 +149,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -206,12 +208,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [UsagesListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb index 175718365..01cdcc65e 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb @@ -35,8 +35,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,9 +52,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -81,8 +81,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -97,8 +97,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -112,7 +112,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -120,6 +120,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ConnectionSharedKey] operation results. # - def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -238,9 +239,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -269,8 +270,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ConnectionSharedKey] operation results. # - def get_shared_key(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_shared_key(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -287,8 +288,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -304,7 +305,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -312,6 +313,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -366,8 +368,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -381,8 +383,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -395,13 +397,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -463,8 +466,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ConnectionResetSharedKey] operation results. # - def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,9 +484,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -513,8 +516,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -532,8 +535,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -550,7 +553,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -559,7 +562,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -632,8 +634,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -648,8 +650,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -663,7 +665,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -671,6 +673,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -721,8 +724,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ConnectionSharedKey] operation results. # - def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -742,8 +745,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -762,7 +765,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -771,7 +774,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -851,8 +853,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [ConnectionResetSharedKey] operation results. # - def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -873,8 +875,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -894,7 +896,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -903,7 +905,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -967,8 +968,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkGatewayConnectionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -983,8 +984,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -998,11 +999,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1057,12 +1059,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [VirtualNetworkGatewayConnectionListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb index 2ec680afe..af926ce27 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkGateway] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkGateway] operation results. # - def get(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,8 +96,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -119,6 +119,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -187,9 +188,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -226,8 +227,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -239,13 +240,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -304,8 +306,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkGateway] operation results. # - def reset(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - response = reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def reset(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + response = reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,9 +323,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) + def reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) # Send request - promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers) + promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -353,8 +355,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [String] operation results. # - def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -372,8 +374,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -390,7 +392,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -399,7 +401,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -471,8 +472,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [BgpPeerStatusListResult] operation results. # - def get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - response = get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + response = get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -487,9 +488,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) + def get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) # Send request - promise = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers) + promise = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -517,8 +518,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [GatewayRouteListResult] operation results. # - def get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -532,9 +533,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -563,8 +564,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [GatewayRouteListResult] operation results. # - def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -579,9 +580,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) + def get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) # Send request - promise = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers) + promise = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -610,8 +611,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -628,8 +629,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -645,7 +646,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -654,7 +655,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -727,8 +727,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -743,8 +743,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -758,7 +758,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -766,6 +766,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -814,8 +815,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkGateway] operation results. # - def begin_reset(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - response = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def begin_reset(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + response = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -833,8 +834,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! end # @@ -851,7 +852,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) + def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -859,6 +860,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -915,8 +917,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [BgpPeerStatusListResult] operation results. # - def begin_get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - response = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + response = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -932,8 +934,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! end # @@ -948,7 +950,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) + def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -956,6 +958,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1012,8 +1015,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [GatewayRouteListResult] operation results. # - def begin_get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1029,8 +1032,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -1045,7 +1048,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1053,6 +1056,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1110,8 +1114,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [GatewayRouteListResult] operation results. # - def begin_get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - response = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + response = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1128,8 +1132,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_advertised_routes_with_http_info(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_advertised_routes_with_http_info(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! end # @@ -1145,7 +1149,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) + def begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'peer is nil' if peer.nil? @@ -1154,6 +1158,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1208,8 +1213,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1223,8 +1228,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1237,11 +1242,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1295,12 +1301,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [VirtualNetworkGatewayListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_peerings.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_peerings.rb index fdf430014..d95847849 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_peerings.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_peerings.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! nil end @@ -47,9 +47,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkPeering] operation results. # - def get(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def get(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -92,8 +92,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! end # @@ -108,7 +108,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -117,6 +117,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -174,8 +175,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkPeering] operation results. # - def create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -219,8 +220,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -234,8 +235,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -248,7 +249,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -256,6 +257,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,8 +313,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! nil end @@ -328,8 +330,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! end # @@ -344,7 +346,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -353,6 +355,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -400,8 +403,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkPeering] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -418,8 +421,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! end # @@ -435,7 +438,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -445,7 +448,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -518,8 +520,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -533,8 +535,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -547,11 +549,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -606,12 +609,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [VirtualNetworkPeeringListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_networks.rb b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_networks.rb index 5e779955d..850566128 100644 --- a/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_networks.rb +++ b/management/azure_mgmt_network/lib/2016-09-01/generated/azure_mgmt_network/virtual_networks.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetwork] operation results. # - def get(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetwork] operation results. # - def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -207,8 +208,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -232,12 +233,13 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -318,13 +320,14 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -380,8 +383,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [IPAddressAvailabilityResult] operation results. # - def check_ipaddress_availability(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) - response = check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value! + def check_ipaddress_availability(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) + response = check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:ip_address, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -396,8 +399,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_ipaddress_availability_with_http_info(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) - check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value! + def check_ipaddress_availability_with_http_info(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) + check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:ip_address, custom_headers:custom_headers).value! end # @@ -411,7 +414,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) + def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -419,6 +422,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -472,8 +476,8 @@ module Azure::Network::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -487,8 +491,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -501,7 +505,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -509,6 +513,7 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -555,8 +560,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetwork] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -572,8 +577,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! end # @@ -588,7 +593,7 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -597,7 +602,6 @@ module Azure::Network::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -670,8 +674,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -685,8 +689,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -699,11 +703,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -757,8 +762,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [VirtualNetworkListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -772,8 +777,8 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -786,11 +791,12 @@ module Azure::Network::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -843,12 +849,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -864,12 +870,12 @@ module Azure::Network::Mgmt::V2016_09_01 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/application_gateways.rb index 7d39d22cc..036600380 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/application_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/application_gateways.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -69,8 +69,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ApplicationGateway] operation results. # - def get(resource_group_name, application_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get(resource_group_name, application_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -98,7 +98,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, application_gateway_name, custom_headers = nil) + def get_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -106,6 +106,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -162,8 +163,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ApplicationGateway] operation results. # - def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -178,9 +179,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -205,8 +206,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -219,8 +220,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -232,13 +233,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -304,8 +306,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -316,12 +318,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -374,8 +377,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def start(resource_group_name, application_gateway_name, custom_headers = nil) - response = start_async(resource_group_name, application_gateway_name, custom_headers).value! + def start(resource_group_name, application_gateway_name, custom_headers:nil) + response = start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -388,9 +391,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def start_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -412,8 +415,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -426,9 +429,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def stop_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -455,8 +458,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ApplicationGatewayBackendHealth] operation results. # - def backend_health(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - response = backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + response = backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -471,9 +474,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) + def backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) # Send request - promise = begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers) + promise = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -498,8 +501,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -513,8 +516,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -527,7 +530,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -535,6 +538,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -581,8 +585,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ApplicationGateway] operation results. # - def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -598,8 +602,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -614,7 +618,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -623,7 +627,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -695,8 +698,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_start(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -710,8 +713,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -724,7 +727,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_start_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -732,6 +735,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -775,8 +779,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -790,8 +794,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -804,7 +808,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_stop_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -812,6 +816,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -859,8 +864,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ApplicationGatewayBackendHealth] operation results. # - def begin_backend_health(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - response = begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def begin_backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + response = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -877,8 +882,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_backend_health_with_http_info(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def begin_backend_health_with_http_info(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! end # @@ -894,7 +899,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) + def begin_backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -902,6 +907,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -956,8 +962,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ApplicationGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -971,8 +977,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -985,11 +991,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1043,8 +1050,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ApplicationGatewayListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1058,8 +1065,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1072,11 +1079,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1130,12 +1138,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1150,12 +1158,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/bgp_service_communities.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/bgp_service_communities.rb index 300ceda18..47918ea32 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/bgp_service_communities.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/bgp_service_communities.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,8 +115,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [BgpServiceCommunityListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -129,8 +130,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -143,11 +144,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -200,12 +202,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [BgpServiceCommunityListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb index baea7f1d5..a8bc34f81 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def get(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -170,8 +171,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -216,8 +217,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -231,8 +232,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -245,7 +246,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -253,6 +254,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -323,8 +325,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -338,7 +340,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -347,6 +349,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -414,8 +417,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! end # @@ -432,7 +435,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -442,7 +445,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -515,8 +517,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [AuthorizationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -530,8 +532,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -544,11 +546,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -603,12 +606,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [AuthorizationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb index b530b530c..d33a9cf1b 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def get(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -186,9 +187,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -229,8 +230,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -243,7 +244,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -251,6 +252,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -321,8 +323,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -336,7 +338,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -345,6 +347,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +395,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -410,8 +413,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! end # @@ -427,7 +430,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -437,7 +440,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -510,8 +512,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -539,11 +541,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -598,12 +601,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [ExpressRouteCircuitPeeringListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuits.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuits.rb index cb2068c9d..67eb404b5 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuits.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuits.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, custom_headers).value! + def delete(resource_group_name, circuit_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -69,8 +69,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuit] operation results. # - def get(resource_group_name, circuit_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, custom_headers).value! + def get(resource_group_name, circuit_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -98,7 +98,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -106,6 +106,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -162,8 +163,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuit] operation results. # - def create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -178,9 +179,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -209,8 +210,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -225,9 +226,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -256,8 +257,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -272,9 +273,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -303,8 +304,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -319,9 +320,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -347,8 +348,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitStats] operation results. # - def get_stats(resource_group_name, circuit_name, custom_headers = nil) - response = get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats(resource_group_name, circuit_name, custom_headers:nil) + response = get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -362,8 +363,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -376,7 +377,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_stats_async(resource_group_name, circuit_name, custom_headers = nil) + def get_stats_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -384,6 +385,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -439,8 +441,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitStats] operation results. # - def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -455,8 +457,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -470,7 +472,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -479,6 +481,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -532,8 +535,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -546,8 +549,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -559,13 +562,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -618,8 +622,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -631,8 +635,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -643,12 +647,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -702,8 +707,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -717,8 +722,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -731,7 +736,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -739,6 +744,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -785,8 +791,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuit] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -802,8 +808,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! end # @@ -818,7 +824,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -827,7 +833,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -903,8 +908,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -921,8 +926,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -938,7 +943,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -948,6 +953,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1005,8 +1011,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1023,8 +1029,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1040,7 +1046,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1050,6 +1056,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1107,8 +1114,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1125,8 +1132,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1142,7 +1149,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1152,6 +1159,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1206,8 +1214,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1221,8 +1229,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1235,11 +1243,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1293,8 +1302,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1308,8 +1317,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1322,11 +1331,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1380,12 +1390,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1400,12 +1410,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_service_providers.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_service_providers.rb index f32e8fba6..06b792184 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_service_providers.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/express_route_service_providers.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,8 +115,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ExpressRouteServiceProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -129,8 +130,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -143,11 +144,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -200,12 +202,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [ExpressRouteServiceProviderListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/load_balancers.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/load_balancers.rb index 7a80c5c48..b4da88b87 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/load_balancers.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/load_balancers.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def delete_async(resource_group_name, load_balancer_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers) + promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [LoadBalancer] operation results. # - def get(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [LoadBalancer] operation results. # - def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -207,8 +208,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -232,12 +233,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -318,13 +320,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,8 +381,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -393,8 +396,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -407,7 +410,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def begin_delete_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -415,6 +418,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -461,8 +465,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [LoadBalancer] operation results. # - def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -478,8 +482,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! end # @@ -494,7 +498,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -503,7 +507,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -576,8 +579,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [LoadBalancerListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -591,8 +594,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -605,11 +608,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +667,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [LoadBalancerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +682,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -692,11 +696,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -749,12 +754,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -770,12 +775,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/local_network_gateways.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/local_network_gateways.rb index eb3333fce..90920e3a9 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/local_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/local_network_gateways.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [LocalNetworkGateway] operation results. # - def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [LocalNetworkGateway] operation results. # - def get(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,8 +96,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -119,6 +119,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -187,9 +188,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -226,8 +227,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -239,13 +240,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -303,8 +305,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [LocalNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,8 +323,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -338,7 +340,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -347,7 +349,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -420,8 +421,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -436,8 +437,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -451,7 +452,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -459,6 +460,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -503,8 +505,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [LocalNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -518,8 +520,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -532,11 +534,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -590,12 +593,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [LocalNetworkGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_interfaces.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_interfaces.rb index ad78b5c64..b10add98e 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_interfaces.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_interfaces.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers) + def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -78,6 +78,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers) + def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -149,8 +150,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! end # @@ -164,7 +165,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? api_version = '2016-09-01' @@ -172,6 +173,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -230,8 +232,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkInterface] operation results. # - def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -249,8 +251,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -267,7 +269,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) + def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -277,6 +279,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -329,8 +332,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_interface_name, custom_headers = nil) - response = delete_async(resource_group_name, network_interface_name, custom_headers).value! + def delete(resource_group_name, network_interface_name, custom_headers:nil) + response = delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -343,9 +346,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def delete_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -370,8 +373,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkInterface] operation results. # - def get(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -386,8 +389,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -401,7 +404,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -409,6 +412,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -465,8 +469,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkInterface] operation results. # - def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,9 +485,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -507,8 +511,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -520,8 +524,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -532,12 +536,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -591,8 +596,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -605,8 +610,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -618,13 +623,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -679,8 +685,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [EffectiveRouteListResult] operation results. # - def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) - response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil) + response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -693,9 +699,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) + def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -721,8 +727,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [EffectiveNetworkSecurityGroupListResult] operation results. # - def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) - response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil) + response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -735,9 +741,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) + def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -762,8 +768,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -777,8 +783,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -791,7 +797,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -799,6 +805,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -845,8 +852,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkInterface] operation results. # - def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -862,8 +869,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! end # @@ -878,7 +885,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -887,7 +894,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -960,8 +966,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [EffectiveRouteListResult] operation results. # - def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -975,8 +981,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -989,7 +995,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -997,6 +1003,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1051,8 +1058,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [EffectiveNetworkSecurityGroupListResult] operation results. # - def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1066,8 +1073,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -1080,7 +1087,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1088,6 +1095,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1143,8 +1151,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1159,8 +1167,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1174,11 +1182,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1232,8 +1241,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1247,8 +1256,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1261,11 +1270,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1319,8 +1329,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1334,8 +1344,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1348,11 +1358,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1406,8 +1417,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1421,8 +1432,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1435,11 +1446,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1497,12 +1509,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1520,12 +1532,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1540,12 +1552,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1561,12 +1573,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb index b48c027b0..92c4a37cd 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb @@ -223,8 +223,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [DnsNameAvailabilityResult] operation results. # - def check_dns_name_availability(location, domain_name_label = nil, custom_headers = nil) - response = check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability(location, domain_name_label:nil, custom_headers:nil) + response = check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -239,8 +239,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_dns_name_availability_with_http_info(location, domain_name_label = nil, custom_headers = nil) - check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability_with_http_info(location, domain_name_label:nil, custom_headers:nil) + check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! end # @@ -254,13 +254,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_dns_name_availability_async(location, domain_name_label = nil, custom_headers = nil) + def check_dns_name_availability_async(location, domain_name_label:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_security_groups.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_security_groups.rb index 1436b5161..035f38e15 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_security_groups.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_security_groups.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkSecurityGroup] operation results. # - def get(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -90,8 +90,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -114,6 +114,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -171,8 +172,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkSecurityGroup] operation results. # - def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -227,8 +228,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -239,12 +240,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -312,8 +314,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -325,13 +327,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -386,8 +389,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -402,8 +405,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -417,7 +420,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -425,6 +428,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -472,8 +476,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkSecurityGroup] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -490,8 +494,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! end # @@ -507,7 +511,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -516,7 +520,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -589,8 +592,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -604,8 +607,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -618,11 +621,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -676,8 +680,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -691,8 +695,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -705,11 +709,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -762,12 +767,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -783,12 +788,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_watchers.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_watchers.rb index 4e9f0fafe..f395216c7 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_watchers.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/network_watchers.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkWatcher] operation results. # - def create_or_update(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -75,7 +75,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -148,8 +147,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkWatcher] operation results. # - def get(resource_group_name, network_watcher_name, custom_headers = nil) - response = get_async(resource_group_name, network_watcher_name, custom_headers).value! + def get(resource_group_name, network_watcher_name, custom_headers:nil) + response = get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -163,8 +162,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - get_async(resource_group_name, network_watcher_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -177,7 +176,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_watcher_name, custom_headers = nil) + def get_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -185,6 +184,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -237,8 +237,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_watcher_name, custom_headers = nil) - response = delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def delete(resource_group_name, network_watcher_name, custom_headers:nil) + response = delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! nil end @@ -251,9 +251,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_watcher_name, custom_headers = nil) + def delete_async(resource_group_name, network_watcher_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_watcher_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -276,8 +276,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkWatcherListResult] operation results. # - def list(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -290,8 +290,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -303,13 +303,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -362,8 +363,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NetworkWatcherListResult] operation results. # - def list_all(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -375,8 +376,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -387,12 +388,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -449,8 +451,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Topology] operation results. # - def get_topology(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_topology(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -466,8 +468,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_topology_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_topology_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -482,7 +484,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -491,7 +493,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -557,8 +558,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VerificationIPFlowResult] operation results. # - def verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -573,9 +574,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -603,8 +604,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NextHopResult] operation results. # - def get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -619,9 +620,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -649,8 +650,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [SecurityGroupViewResult] operation results. # - def get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -665,9 +666,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -696,8 +697,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [TroubleshootingResult] operation results. # - def get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -713,9 +714,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -744,8 +745,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [TroubleshootingResult] operation results. # - def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -761,9 +762,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -793,8 +794,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [FlowLogInformation] operation results. # - def set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -811,9 +812,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -843,8 +844,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [FlowLogInformation] operation results. # - def get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -861,9 +862,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -888,8 +889,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_watcher_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def begin_delete(resource_group_name, network_watcher_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! nil end @@ -903,8 +904,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -917,7 +918,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_watcher_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -925,6 +926,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -972,8 +974,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VerificationIPFlowResult] operation results. # - def begin_verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -990,8 +992,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_verify_ipflow_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_verify_ipflow_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1007,7 +1009,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1016,7 +1018,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1091,8 +1092,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [NextHopResult] operation results. # - def begin_get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1108,8 +1109,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_next_hop_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_next_hop_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1124,7 +1125,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1133,7 +1134,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1208,8 +1208,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [SecurityGroupViewResult] operation results. # - def begin_get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1225,8 +1225,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_vmsecurity_rules_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_vmsecurity_rules_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1241,7 +1241,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1250,7 +1250,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1326,8 +1325,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [TroubleshootingResult] operation results. # - def begin_get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1344,8 +1343,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_troubleshooting_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1361,7 +1360,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1370,7 +1369,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1446,8 +1444,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [TroubleshootingResult] operation results. # - def begin_get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1464,8 +1462,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_troubleshooting_result_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_result_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1481,7 +1479,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1490,7 +1488,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1567,8 +1564,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [FlowLogInformation] operation results. # - def begin_set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1586,8 +1583,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_flow_log_configuration_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_set_flow_log_configuration_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1604,7 +1601,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1613,7 +1610,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1690,8 +1686,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [FlowLogInformation] operation results. # - def begin_get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1709,8 +1705,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_flow_log_status_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_flow_log_status_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1727,7 +1723,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1736,7 +1732,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/packet_captures.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/packet_captures.rb index 9a9d7d616..2bd1f9eeb 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/packet_captures.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/packet_captures.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [PacketCaptureResult] operation results. # - def create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) + def create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [PacketCaptureResult] operation results. # - def get(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,8 +96,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -120,6 +120,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -213,8 +214,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -228,9 +229,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -257,8 +258,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [PacketCaptureQueryStatusResult] operation results. # - def get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -274,9 +275,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -303,8 +304,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [PacketCaptureListResult] operation results. # - def list(resource_group_name, network_watcher_name, custom_headers = nil) - response = list_async(resource_group_name, network_watcher_name, custom_headers).value! + def list(resource_group_name, network_watcher_name, custom_headers:nil) + response = list_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -319,8 +320,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - list_async(resource_group_name, network_watcher_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + list_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -334,7 +335,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_watcher_name, custom_headers = nil) + def list_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -342,6 +343,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -399,8 +401,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [PacketCaptureResult] operation results. # - def begin_create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def begin_create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -417,8 +419,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! end # @@ -434,7 +436,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -444,7 +446,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -507,8 +508,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -523,8 +524,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -538,7 +539,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -547,6 +548,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -591,8 +593,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -607,8 +609,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -622,7 +624,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -631,6 +633,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -678,8 +681,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [PacketCaptureQueryStatusResult] operation results. # - def begin_get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -696,8 +699,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_status_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_get_status_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -713,7 +716,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -722,6 +725,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/public_ipaddresses.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/public_ipaddresses.rb index 9901f3438..2edd9ccf1 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/public_ipaddresses.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/public_ipaddresses.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers) + promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [PublicIPAddress] operation results. # - def get(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [PublicIPAddress] operation results. # - def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -207,8 +208,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -232,12 +233,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -318,13 +320,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,8 +381,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -393,8 +396,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers = nil) - begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers:nil) + begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! end # @@ -407,7 +410,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -415,6 +418,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -461,8 +465,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [PublicIPAddress] operation results. # - def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -478,8 +482,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! end # @@ -494,7 +498,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -503,7 +507,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -576,8 +579,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [PublicIPAddressListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -591,8 +594,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -605,11 +608,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +667,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [PublicIPAddressListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +682,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -692,11 +696,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -749,12 +754,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -770,12 +775,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_filter_rules.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_filter_rules.rb index 189500ce9..d0cf75c34 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_filter_rules.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_filter_rules.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - response = delete_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def delete(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + response = delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_filter_name, rule_name, custom_headers = nil) + def delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilterRule] operation results. # - def get(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - response = get_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def get(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + response = get_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - get_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + get_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_filter_name, rule_name, custom_headers = nil) + def get_async(resource_group_name, route_filter_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilterRule] operation results. # - def create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -186,9 +187,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilterRule] operation results. # - def update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -234,9 +235,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers) + promise = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -262,8 +263,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_by_route_filter(resource_group_name, route_filter_name, custom_headers = nil) - first_page = list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers) + def list_by_route_filter(resource_group_name, route_filter_name, custom_headers:nil) + first_page = list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers:custom_headers) first_page.get_all_items end @@ -277,8 +278,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_route_filter_with_http_info(resource_group_name, route_filter_name, custom_headers = nil) - list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers).value! + def list_by_route_filter_with_http_info(resource_group_name, route_filter_name, custom_headers:nil) + list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! end # @@ -291,7 +292,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers = nil) + def list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -299,6 +300,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -353,8 +355,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def begin_delete(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! nil end @@ -369,8 +371,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! end # @@ -384,7 +386,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -393,6 +395,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +443,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilterRule] operation results. # - def begin_create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -458,8 +461,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! end # @@ -475,7 +478,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -485,7 +488,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -561,8 +563,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilterRule] operation results. # - def begin_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -579,8 +581,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! end # @@ -596,7 +598,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -606,7 +608,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -669,8 +670,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilterRuleListResult] operation results. # - def list_by_route_filter_next(next_page_link, custom_headers = nil) - response = list_by_route_filter_next_async(next_page_link, custom_headers).value! + def list_by_route_filter_next(next_page_link, custom_headers:nil) + response = list_by_route_filter_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -684,8 +685,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_route_filter_next_with_http_info(next_page_link, custom_headers = nil) - list_by_route_filter_next_async(next_page_link, custom_headers).value! + def list_by_route_filter_next_with_http_info(next_page_link, custom_headers:nil) + list_by_route_filter_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -698,11 +699,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_route_filter_next_async(next_page_link, custom_headers = nil) + def list_by_route_filter_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -757,12 +759,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [RouteFilterRuleListResult] which provide lazy access to pages of the # response. # - def list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers = nil) - response = list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers).value! + def list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers:nil) + response = list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_route_filter_next_async(next_page_link, custom_headers) + list_by_route_filter_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_filters.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_filters.rb index 6bb96bc5f..be872b1b2 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_filters.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_filters.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_filter_name, custom_headers = nil) - response = delete_async(resource_group_name, route_filter_name, custom_headers).value! + def delete(resource_group_name, route_filter_name, custom_headers:nil) + response = delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_filter_name, custom_headers = nil) + def delete_async(resource_group_name, route_filter_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_filter_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilter] operation results. # - def get(resource_group_name, route_filter_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, route_filter_name, expand, custom_headers).value! + def get(resource_group_name, route_filter_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, route_filter_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_filter_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, route_filter_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, route_filter_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, route_filter_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_filter_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, route_filter_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilter] operation results. # - def create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilter] operation results. # - def update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -230,9 +231,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers) + promise = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -257,8 +258,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -271,8 +272,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -284,13 +285,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -343,8 +345,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -356,8 +358,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -368,12 +370,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -427,8 +430,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_filter_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_filter_name, custom_headers).value! + def begin_delete(resource_group_name, route_filter_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! nil end @@ -442,8 +445,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_filter_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_filter_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_filter_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! end # @@ -456,7 +459,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_filter_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_filter_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -464,6 +467,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -510,8 +514,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilter] operation results. # - def begin_create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -527,8 +531,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! end # @@ -543,7 +547,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'route_filter_parameters is nil' if route_filter_parameters.nil? @@ -552,7 +556,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -627,8 +630,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilter] operation results. # - def begin_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -644,8 +647,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! end # @@ -660,7 +663,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'route_filter_parameters is nil' if route_filter_parameters.nil? @@ -669,7 +672,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -732,8 +734,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilterListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -747,8 +749,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -761,11 +763,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -819,8 +822,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteFilterListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -834,8 +837,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -848,11 +851,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -906,12 +910,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [RouteFilterListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -926,12 +930,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [RouteFilterListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_tables.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_tables.rb index 03fe50a8c..d996a148c 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_tables.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/route_tables.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, custom_headers).value! + def delete(resource_group_name, route_table_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteTable] operation results. # - def get(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, route_table_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteTable] operation results. # - def create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -208,8 +209,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -222,8 +223,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -235,13 +236,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -319,12 +321,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,8 +381,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -393,8 +396,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -407,7 +410,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -415,6 +418,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -461,8 +465,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteTable] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -478,8 +482,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! end # @@ -494,7 +498,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -503,7 +507,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -576,8 +579,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteTableListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -591,8 +594,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -605,11 +608,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +667,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteTableListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +682,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -692,11 +696,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -750,12 +755,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -770,12 +775,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/routes.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/routes.rb index 6303d996d..7f92df601 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/routes.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/routes.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Route] operation results. # - def get(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def get_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -169,8 +170,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Route] operation results. # - def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -186,9 +187,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, route_table_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers) + def list(resource_group_name, route_table_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers:custom_headers) first_page.get_all_items end @@ -229,8 +230,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - list_async(resource_group_name, route_table_name, custom_headers).value! + def list_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -243,7 +244,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, route_table_name, custom_headers = nil) + def list_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -251,6 +252,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -321,8 +323,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -336,7 +338,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -345,6 +347,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +395,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Route] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -410,8 +413,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! end # @@ -427,7 +430,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -437,7 +440,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -510,8 +512,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -525,8 +527,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -539,11 +541,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -597,12 +600,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [RouteListResult] which provide lazy access to pages of the response. # - def list_as_lazy(resource_group_name, route_table_name, custom_headers = nil) - response = list_async(resource_group_name, route_table_name, custom_headers).value! + def list_as_lazy(resource_group_name, route_table_name, custom_headers:nil) + response = list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/security_rules.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/security_rules.rb index 2d8412217..b963196d5 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/security_rules.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/security_rules.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -47,9 +47,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [SecurityRule] operation results. # - def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -92,8 +92,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -108,7 +108,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -117,6 +117,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -175,8 +176,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [SecurityRule] operation results. # - def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -193,9 +194,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -222,8 +223,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, network_security_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers) + def list(resource_group_name, network_security_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -238,8 +239,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -253,7 +254,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_security_group_name, custom_headers = nil) + def list_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -261,6 +262,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -316,8 +318,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -333,8 +335,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -349,7 +351,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -358,6 +360,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -406,8 +409,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [SecurityRule] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -425,8 +428,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! end # @@ -443,7 +446,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -453,7 +456,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -526,8 +528,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [SecurityRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -541,8 +543,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -555,11 +557,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -615,12 +618,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [SecurityRuleListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, network_security_group_name, custom_headers = nil) - response = list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, network_security_group_name, custom_headers:nil) + response = list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/subnets.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/subnets.rb index 51ca5147e..d5996206a 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/subnets.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/subnets.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Subnet] operation results. # - def get(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -90,8 +90,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Subnet] operation results. # - def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -232,8 +233,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -246,7 +247,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -254,6 +255,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -324,8 +326,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! end # @@ -339,7 +341,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -348,6 +350,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Subnet] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -413,8 +416,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! end # @@ -430,7 +433,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -440,7 +443,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -513,8 +515,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [SubnetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -528,8 +530,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -542,11 +544,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -601,12 +604,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [SubnetListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/usages.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/usages.rb index db6b9e904..30cbd0f78 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/usages.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/usages.rb @@ -30,8 +30,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -57,7 +57,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -65,6 +65,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -119,8 +120,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [UsagesListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -148,11 +149,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -206,12 +208,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [UsagesListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb index c265c0efd..9657da13f 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb @@ -35,8 +35,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,9 +52,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -81,8 +81,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -97,8 +97,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -112,7 +112,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -120,6 +120,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ConnectionSharedKey] operation results. # - def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -238,9 +239,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -269,8 +270,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ConnectionSharedKey] operation results. # - def get_shared_key(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_shared_key(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -287,8 +288,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -304,7 +305,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -312,6 +313,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -366,8 +368,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -381,8 +383,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -395,13 +397,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -463,8 +466,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ConnectionResetSharedKey] operation results. # - def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,9 +484,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -513,8 +516,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -532,8 +535,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -550,7 +553,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -559,7 +562,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -632,8 +634,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -648,8 +650,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -663,7 +665,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -671,6 +673,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -721,8 +724,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ConnectionSharedKey] operation results. # - def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -742,8 +745,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -762,7 +765,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -771,7 +774,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -851,8 +853,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [ConnectionResetSharedKey] operation results. # - def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -873,8 +875,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -894,7 +896,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -903,7 +905,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -967,8 +968,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkGatewayConnectionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -983,8 +984,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -998,11 +999,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1057,12 +1059,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [VirtualNetworkGatewayConnectionListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb index a84dbd61c..cba7a0552 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkGateway] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkGateway] operation results. # - def get(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,8 +96,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -119,6 +119,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -187,9 +188,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -226,8 +227,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -239,13 +240,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -304,8 +306,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkGateway] operation results. # - def reset(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - response = reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def reset(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + response = reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,9 +323,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) + def reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) # Send request - promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers) + promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -353,8 +355,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [String] operation results. # - def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -372,8 +374,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -390,7 +392,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -399,7 +401,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -471,8 +472,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [BgpPeerStatusListResult] operation results. # - def get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - response = get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + response = get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -487,9 +488,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) + def get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) # Send request - promise = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers) + promise = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -517,8 +518,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [GatewayRouteListResult] operation results. # - def get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -532,9 +533,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -563,8 +564,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [GatewayRouteListResult] operation results. # - def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -579,9 +580,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) + def get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) # Send request - promise = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers) + promise = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -610,8 +611,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -628,8 +629,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -645,7 +646,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -654,7 +655,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -727,8 +727,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -743,8 +743,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -758,7 +758,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -766,6 +766,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -814,8 +815,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkGateway] operation results. # - def begin_reset(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - response = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def begin_reset(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + response = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -833,8 +834,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! end # @@ -851,7 +852,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) + def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -859,6 +860,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -915,8 +917,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [BgpPeerStatusListResult] operation results. # - def begin_get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - response = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + response = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -932,8 +934,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! end # @@ -948,7 +950,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) + def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -956,6 +958,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1012,8 +1015,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [GatewayRouteListResult] operation results. # - def begin_get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1029,8 +1032,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -1045,7 +1048,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1053,6 +1056,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1110,8 +1114,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [GatewayRouteListResult] operation results. # - def begin_get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - response = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + response = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1128,8 +1132,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_advertised_routes_with_http_info(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_advertised_routes_with_http_info(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! end # @@ -1145,7 +1149,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) + def begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'peer is nil' if peer.nil? @@ -1154,6 +1158,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1208,8 +1213,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1223,8 +1228,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1237,11 +1242,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1295,12 +1301,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [VirtualNetworkGatewayListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_peerings.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_peerings.rb index 7496a7a59..66f3c43ad 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_peerings.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_peerings.rb @@ -31,8 +31,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! nil end @@ -47,9 +47,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkPeering] operation results. # - def get(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def get(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -92,8 +92,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! end # @@ -108,7 +108,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -117,6 +117,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -174,8 +175,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkPeering] operation results. # - def create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -219,8 +220,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -234,8 +235,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -248,7 +249,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -256,6 +257,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,8 +313,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! nil end @@ -328,8 +330,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! end # @@ -344,7 +346,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -353,6 +355,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -400,8 +403,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkPeering] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -418,8 +421,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! end # @@ -435,7 +438,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -445,7 +448,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -518,8 +520,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -533,8 +535,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -547,11 +549,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -606,12 +609,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [VirtualNetworkPeeringListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_networks.rb b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_networks.rb index 73b6e1204..06fb87f22 100644 --- a/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_networks.rb +++ b/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_networks.rb @@ -29,8 +29,8 @@ module Azure::Network::Mgmt::V2016_12_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,8 +70,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetwork] operation results. # - def get(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -86,8 +86,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetwork] operation results. # - def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -207,8 +208,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -232,12 +233,13 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +293,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -305,8 +307,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -318,13 +320,14 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -380,8 +383,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [IPAddressAvailabilityResult] operation results. # - def check_ipaddress_availability(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) - response = check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value! + def check_ipaddress_availability(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) + response = check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:ip_address, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -396,8 +399,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_ipaddress_availability_with_http_info(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) - check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value! + def check_ipaddress_availability_with_http_info(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) + check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:ip_address, custom_headers:custom_headers).value! end # @@ -411,7 +414,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) + def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -419,6 +422,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -472,8 +476,8 @@ module Azure::Network::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -487,8 +491,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -501,7 +505,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -509,6 +513,7 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -555,8 +560,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetwork] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -572,8 +577,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! end # @@ -588,7 +593,7 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -597,7 +602,6 @@ module Azure::Network::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -670,8 +674,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -685,8 +689,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -699,11 +703,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -757,8 +762,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [VirtualNetworkListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -772,8 +777,8 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -786,11 +791,12 @@ module Azure::Network::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -843,12 +849,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -864,12 +870,12 @@ module Azure::Network::Mgmt::V2016_12_01 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/application_gateways.rb index c62516d9f..f35d76a4c 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/application_gateways.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/application_gateways.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ApplicationGateway] operation results. # - def get(resource_group_name, application_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get(resource_group_name, application_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -87,8 +87,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, application_gateway_name, custom_headers = nil) + def get_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ApplicationGateway] operation results. # - def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -208,8 +209,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -222,8 +223,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -235,13 +236,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -319,12 +321,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -377,8 +380,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def start(resource_group_name, application_gateway_name, custom_headers = nil) - response = start_async(resource_group_name, application_gateway_name, custom_headers).value! + def start(resource_group_name, application_gateway_name, custom_headers:nil) + response = start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -391,9 +394,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def start_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -415,8 +418,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -429,9 +432,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def stop_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -458,8 +461,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ApplicationGatewayBackendHealth] operation results. # - def backend_health(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - response = backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + response = backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -474,9 +477,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) + def backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) # Send request - promise = begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers) + promise = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -500,8 +503,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ApplicationGatewayAvailableWafRuleSetsResult] operation results. # - def list_available_waf_rule_sets(custom_headers = nil) - response = list_available_waf_rule_sets_async(custom_headers).value! + def list_available_waf_rule_sets(custom_headers:nil) + response = list_available_waf_rule_sets_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -513,8 +516,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_waf_rule_sets_with_http_info(custom_headers = nil) - list_available_waf_rule_sets_async(custom_headers).value! + def list_available_waf_rule_sets_with_http_info(custom_headers:nil) + list_available_waf_rule_sets_async(custom_headers:custom_headers).value! end # @@ -525,12 +528,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_waf_rule_sets_async(custom_headers = nil) + def list_available_waf_rule_sets_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -584,8 +588,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -599,8 +603,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -613,7 +617,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -621,6 +625,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -667,8 +672,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ApplicationGateway] operation results. # - def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -684,8 +689,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -700,7 +705,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -709,7 +714,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -781,8 +785,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_start(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -796,8 +800,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -810,7 +814,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_start_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -818,6 +822,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -861,8 +866,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -876,8 +881,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -890,7 +895,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_stop_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -898,6 +903,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -945,8 +951,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ApplicationGatewayBackendHealth] operation results. # - def begin_backend_health(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - response = begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def begin_backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + response = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -963,8 +969,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_backend_health_with_http_info(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def begin_backend_health_with_http_info(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! end # @@ -980,7 +986,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) + def begin_backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -988,6 +994,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1042,8 +1049,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ApplicationGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1057,8 +1064,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1071,11 +1078,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1129,8 +1137,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ApplicationGatewayListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1144,8 +1152,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1158,11 +1166,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1216,12 +1225,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1236,12 +1245,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/bgp_service_communities.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/bgp_service_communities.rb index a5d5e6bef..83b9f4143 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/bgp_service_communities.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/bgp_service_communities.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -45,8 +45,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [BgpServiceCommunityListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +133,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -146,11 +147,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -203,12 +205,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [BgpServiceCommunityListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb index 7207f9ed3..f9d85b67d 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def get(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -219,8 +220,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -234,8 +235,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -248,7 +249,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -256,6 +257,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -310,8 +312,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -326,8 +328,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -341,7 +343,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -350,6 +352,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -398,8 +401,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -417,8 +420,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! end # @@ -435,7 +438,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -445,7 +448,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -518,8 +520,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [AuthorizationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -533,8 +535,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -547,11 +549,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -606,12 +609,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [AuthorizationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb index 1d2ae4975..62799c149 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def get(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -232,8 +233,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -246,7 +247,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -254,6 +255,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -324,8 +326,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -339,7 +341,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -348,6 +350,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -413,8 +416,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! end # @@ -430,7 +433,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -440,7 +443,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -513,8 +515,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -528,8 +530,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -542,11 +544,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -601,12 +604,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [ExpressRouteCircuitPeeringListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuits.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuits.rb index 27960ae15..115c67548 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuits.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuits.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, custom_headers).value! + def delete(resource_group_name, circuit_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuit] operation results. # - def get(resource_group_name, circuit_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, custom_headers).value! + def get(resource_group_name, circuit_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -87,8 +87,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuit] operation results. # - def create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -228,9 +229,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -259,8 +260,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -275,9 +276,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -306,8 +307,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -322,9 +323,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -350,8 +351,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitStats] operation results. # - def get_stats(resource_group_name, circuit_name, custom_headers = nil) - response = get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats(resource_group_name, circuit_name, custom_headers:nil) + response = get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -365,8 +366,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -379,7 +380,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_stats_async(resource_group_name, circuit_name, custom_headers = nil) + def get_stats_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -387,6 +388,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -442,8 +444,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitStats] operation results. # - def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -458,8 +460,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -473,7 +475,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -482,6 +484,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -535,8 +538,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -549,8 +552,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -562,13 +565,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -621,8 +625,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -634,8 +638,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -646,12 +650,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -705,8 +710,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -720,8 +725,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -734,7 +739,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -742,6 +747,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -788,8 +794,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuit] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -805,8 +811,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! end # @@ -821,7 +827,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -830,7 +836,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -906,8 +911,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -924,8 +929,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -941,7 +946,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -951,6 +956,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1008,8 +1014,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1026,8 +1032,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1043,7 +1049,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1053,6 +1059,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1110,8 +1117,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1128,8 +1135,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1145,7 +1152,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1155,6 +1162,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1209,8 +1217,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1224,8 +1232,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1238,11 +1246,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1296,8 +1305,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1311,8 +1320,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1325,11 +1334,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1383,12 +1393,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1403,12 +1413,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_service_providers.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_service_providers.rb index cb629e9c0..ac8057630 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_service_providers.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/express_route_service_providers.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -45,8 +45,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ExpressRouteServiceProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +133,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -146,11 +147,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -203,12 +205,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [ExpressRouteServiceProviderListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/load_balancers.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/load_balancers.rb index bdbdad799..6d76e078a 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/load_balancers.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/load_balancers.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def delete_async(resource_group_name, load_balancer_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers) + promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [LoadBalancer] operation results. # - def get(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,8 +89,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [LoadBalancer] operation results. # - def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -235,12 +236,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -321,13 +323,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -381,8 +384,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -396,8 +399,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -410,7 +413,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def begin_delete_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -418,6 +421,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -464,8 +468,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [LoadBalancer] operation results. # - def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,8 +485,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! end # @@ -497,7 +501,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -506,7 +510,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -579,8 +582,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [LoadBalancerListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -594,8 +597,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -608,11 +611,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -666,8 +670,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [LoadBalancerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -681,8 +685,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -695,11 +699,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -752,12 +757,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -773,12 +778,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/local_network_gateways.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/local_network_gateways.rb index 32ef749fe..7dc38c81a 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/local_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/local_network_gateways.rb @@ -37,8 +37,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [LocalNetworkGateway] operation results. # - def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [LocalNetworkGateway] operation results. # - def get(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, "'local_network_gateway_name' should satisfy the constraint - 'MinLength': '1'" if !local_network_gateway_name.nil? && local_network_gateway_name.length < 1 @@ -123,6 +123,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -216,8 +217,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -230,8 +231,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -243,13 +244,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [LocalNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -325,8 +327,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -342,7 +344,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, "'local_network_gateway_name' should satisfy the constraint - 'MinLength': '1'" if !local_network_gateway_name.nil? && local_network_gateway_name.length < 1 @@ -352,7 +354,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -425,8 +426,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -441,8 +442,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -456,7 +457,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, "'local_network_gateway_name' should satisfy the constraint - 'MinLength': '1'" if !local_network_gateway_name.nil? && local_network_gateway_name.length < 1 @@ -465,6 +466,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -509,8 +511,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [LocalNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -524,8 +526,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -538,11 +540,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -596,12 +599,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [LocalNetworkGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_interfaces.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_interfaces.rb index 9e0bce103..23878b07b 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_interfaces.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_interfaces.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_interface_name, custom_headers = nil) - response = delete_async(resource_group_name, network_interface_name, custom_headers).value! + def delete(resource_group_name, network_interface_name, custom_headers:nil) + response = delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def delete_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkInterface] operation results. # - def get(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,8 +89,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkInterface] operation results. # - def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -235,12 +236,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -321,13 +323,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -382,8 +385,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [EffectiveRouteListResult] operation results. # - def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) - response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil) + response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -396,9 +399,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) + def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -424,8 +427,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [EffectiveNetworkSecurityGroupListResult] operation results. # - def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) - response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil) + response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -438,9 +441,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) + def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -465,8 +468,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -480,8 +483,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -494,7 +497,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -502,6 +505,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -548,8 +552,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkInterface] operation results. # - def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -565,8 +569,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! end # @@ -581,7 +585,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -590,7 +594,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -663,8 +666,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [EffectiveRouteListResult] operation results. # - def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +681,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -692,7 +695,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -700,6 +703,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -754,8 +758,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [EffectiveNetworkSecurityGroupListResult] operation results. # - def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -769,8 +773,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -783,7 +787,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -791,6 +795,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -845,8 +850,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -860,8 +865,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -874,11 +879,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -932,8 +938,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -947,8 +953,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -961,11 +967,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1018,12 +1025,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1039,12 +1046,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb index c25ec8748..71061b4b2 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb @@ -223,8 +223,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [DnsNameAvailabilityResult] operation results. # - def check_dns_name_availability(location, domain_name_label = nil, custom_headers = nil) - response = check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability(location, domain_name_label:nil, custom_headers:nil) + response = check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -239,8 +239,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_dns_name_availability_with_http_info(location, domain_name_label = nil, custom_headers = nil) - check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability_with_http_info(location, domain_name_label:nil, custom_headers:nil) + check_dns_name_availability_async(location, domain_name_label:domain_name_label, custom_headers:custom_headers).value! end # @@ -254,13 +254,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_dns_name_availability_async(location, domain_name_label = nil, custom_headers = nil) + def check_dns_name_availability_async(location, domain_name_label:nil, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_security_groups.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_security_groups.rb index 59e587b0b..cf7569618 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_security_groups.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_security_groups.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -76,8 +76,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkSecurityGroup] operation results. # - def get(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -93,8 +93,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! end # @@ -109,7 +109,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -117,6 +117,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -174,8 +175,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkSecurityGroup] operation results. # - def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -230,8 +231,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -242,12 +243,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -301,8 +303,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -315,8 +317,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -328,13 +330,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -389,8 +392,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -405,8 +408,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -420,7 +423,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -428,6 +431,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -475,8 +479,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkSecurityGroup] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -493,8 +497,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! end # @@ -510,7 +514,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -519,7 +523,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -592,8 +595,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -607,8 +610,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -621,11 +624,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -679,8 +683,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -694,8 +698,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -708,11 +712,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -765,12 +770,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -786,12 +791,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_watchers.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_watchers.rb index 849e0db8c..57a9f643b 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_watchers.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/network_watchers.rb @@ -36,8 +36,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkWatcher] operation results. # - def create_or_update(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -78,7 +78,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -151,8 +150,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkWatcher] operation results. # - def get(resource_group_name, network_watcher_name, custom_headers = nil) - response = get_async(resource_group_name, network_watcher_name, custom_headers).value! + def get(resource_group_name, network_watcher_name, custom_headers:nil) + response = get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -166,8 +165,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - get_async(resource_group_name, network_watcher_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -180,7 +179,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_watcher_name, custom_headers = nil) + def get_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -188,6 +187,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -240,8 +240,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_watcher_name, custom_headers = nil) - response = delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def delete(resource_group_name, network_watcher_name, custom_headers:nil) + response = delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! nil end @@ -254,9 +254,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_watcher_name, custom_headers = nil) + def delete_async(resource_group_name, network_watcher_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_watcher_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -279,8 +279,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkWatcherListResult] operation results. # - def list(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -293,8 +293,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -306,13 +306,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -365,8 +366,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NetworkWatcherListResult] operation results. # - def list_all(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -378,8 +379,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -390,12 +391,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -452,8 +454,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Topology] operation results. # - def get_topology(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_topology(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -469,8 +471,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_topology_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_topology_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -485,7 +487,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -494,7 +496,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -560,8 +561,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VerificationIPFlowResult] operation results. # - def verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -576,9 +577,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -606,8 +607,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NextHopResult] operation results. # - def get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -622,9 +623,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -652,8 +653,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [SecurityGroupViewResult] operation results. # - def get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -668,9 +669,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -699,8 +700,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [TroubleshootingResult] operation results. # - def get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -716,9 +717,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -747,8 +748,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [TroubleshootingResult] operation results. # - def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -764,9 +765,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -796,8 +797,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [FlowLogInformation] operation results. # - def set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -814,9 +815,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -846,8 +847,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [FlowLogInformation] operation results. # - def get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -864,9 +865,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -898,8 +899,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ConnectivityInformation] operation results. # - def check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -916,9 +917,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -943,8 +944,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_watcher_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def begin_delete(resource_group_name, network_watcher_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! nil end @@ -958,8 +959,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -972,7 +973,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_watcher_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -980,6 +981,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1027,8 +1029,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VerificationIPFlowResult] operation results. # - def begin_verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1045,8 +1047,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_verify_ipflow_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_verify_ipflow_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1062,7 +1064,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1071,7 +1073,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1146,8 +1147,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [NextHopResult] operation results. # - def begin_get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1163,8 +1164,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_next_hop_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_next_hop_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1179,7 +1180,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1188,7 +1189,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1263,8 +1263,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [SecurityGroupViewResult] operation results. # - def begin_get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1280,8 +1280,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_vmsecurity_rules_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_vmsecurity_rules_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1296,7 +1296,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1305,7 +1305,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1381,8 +1380,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [TroubleshootingResult] operation results. # - def begin_get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1399,8 +1398,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_troubleshooting_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1416,7 +1415,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1425,7 +1424,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1501,8 +1499,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [TroubleshootingResult] operation results. # - def begin_get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1519,8 +1517,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_troubleshooting_result_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_result_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1536,7 +1534,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1545,7 +1543,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1622,8 +1619,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [FlowLogInformation] operation results. # - def begin_set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1641,8 +1638,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_flow_log_configuration_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_set_flow_log_configuration_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1659,7 +1656,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1668,7 +1665,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1745,8 +1741,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [FlowLogInformation] operation results. # - def begin_get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1764,8 +1760,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_flow_log_status_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_flow_log_status_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1782,7 +1778,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1791,7 +1787,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1870,8 +1865,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ConnectivityInformation] operation results. # - def begin_check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1891,8 +1886,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_check_connectivity_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_check_connectivity_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1911,7 +1906,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1920,7 +1915,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/packet_captures.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/packet_captures.rb index 2e1383c86..06fd1c051 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/packet_captures.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/packet_captures.rb @@ -37,8 +37,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [PacketCaptureResult] operation results. # - def create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) + def create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [PacketCaptureResult] operation results. # - def get(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -123,6 +123,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -216,8 +217,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -231,9 +232,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -260,8 +261,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [PacketCaptureQueryStatusResult] operation results. # - def get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -277,9 +278,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -306,8 +307,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [PacketCaptureListResult] operation results. # - def list(resource_group_name, network_watcher_name, custom_headers = nil) - response = list_async(resource_group_name, network_watcher_name, custom_headers).value! + def list(resource_group_name, network_watcher_name, custom_headers:nil) + response = list_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -322,8 +323,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - list_async(resource_group_name, network_watcher_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + list_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -337,7 +338,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_watcher_name, custom_headers = nil) + def list_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -345,6 +346,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -402,8 +404,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [PacketCaptureResult] operation results. # - def begin_create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def begin_create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -420,8 +422,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! end # @@ -437,7 +439,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -447,7 +449,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -510,8 +511,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -526,8 +527,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -541,7 +542,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -550,6 +551,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -594,8 +596,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -610,8 +612,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -625,7 +627,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -634,6 +636,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -681,8 +684,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [PacketCaptureQueryStatusResult] operation results. # - def begin_get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -699,8 +702,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_status_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_get_status_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -716,7 +719,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -725,6 +728,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/public_ipaddresses.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/public_ipaddresses.rb index ea0000edd..edda12ee3 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/public_ipaddresses.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/public_ipaddresses.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers) + promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [PublicIPAddress] operation results. # - def get(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,8 +89,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [PublicIPAddress] operation results. # - def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -235,12 +236,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -321,13 +323,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -381,8 +384,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -396,8 +399,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers = nil) - begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers:nil) + begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! end # @@ -410,7 +413,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -418,6 +421,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -464,8 +468,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [PublicIPAddress] operation results. # - def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,8 +485,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! end # @@ -497,7 +501,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -506,7 +510,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -579,8 +582,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [PublicIPAddressListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -594,8 +597,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -608,11 +611,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -666,8 +670,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [PublicIPAddressListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -681,8 +685,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -695,11 +699,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -752,12 +757,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -773,12 +778,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_filter_rules.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_filter_rules.rb index c03835d0d..83902837f 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_filter_rules.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_filter_rules.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - response = delete_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def delete(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + response = delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_filter_name, rule_name, custom_headers = nil) + def delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilterRule] operation results. # - def get(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - response = get_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def get(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + response = get_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - get_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + get_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_filter_name, rule_name, custom_headers = nil) + def get_async(resource_group_name, route_filter_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilterRule] operation results. # - def create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilterRule] operation results. # - def update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -237,9 +238,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers) + promise = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -265,8 +266,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_by_route_filter(resource_group_name, route_filter_name, custom_headers = nil) - first_page = list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers) + def list_by_route_filter(resource_group_name, route_filter_name, custom_headers:nil) + first_page = list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers:custom_headers) first_page.get_all_items end @@ -280,8 +281,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_route_filter_with_http_info(resource_group_name, route_filter_name, custom_headers = nil) - list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers).value! + def list_by_route_filter_with_http_info(resource_group_name, route_filter_name, custom_headers:nil) + list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! end # @@ -294,7 +295,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers = nil) + def list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -302,6 +303,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -356,8 +358,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def begin_delete(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! nil end @@ -372,8 +374,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! end # @@ -387,7 +389,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -396,6 +398,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -443,8 +446,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilterRule] operation results. # - def begin_create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -461,8 +464,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! end # @@ -478,7 +481,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -488,7 +491,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -564,8 +566,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilterRule] operation results. # - def begin_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -582,8 +584,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! end # @@ -599,7 +601,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -609,7 +611,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -672,8 +673,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilterRuleListResult] operation results. # - def list_by_route_filter_next(next_page_link, custom_headers = nil) - response = list_by_route_filter_next_async(next_page_link, custom_headers).value! + def list_by_route_filter_next(next_page_link, custom_headers:nil) + response = list_by_route_filter_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -687,8 +688,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_route_filter_next_with_http_info(next_page_link, custom_headers = nil) - list_by_route_filter_next_async(next_page_link, custom_headers).value! + def list_by_route_filter_next_with_http_info(next_page_link, custom_headers:nil) + list_by_route_filter_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -701,11 +702,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_route_filter_next_async(next_page_link, custom_headers = nil) + def list_by_route_filter_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -760,12 +762,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [RouteFilterRuleListResult] which provide lazy access to pages of the # response. # - def list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers = nil) - response = list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers).value! + def list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers:nil) + response = list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_route_filter_next_async(next_page_link, custom_headers) + list_by_route_filter_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_filters.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_filters.rb index c04e38f37..87975a334 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_filters.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_filters.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_filter_name, custom_headers = nil) - response = delete_async(resource_group_name, route_filter_name, custom_headers).value! + def delete(resource_group_name, route_filter_name, custom_headers:nil) + response = delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_filter_name, custom_headers = nil) + def delete_async(resource_group_name, route_filter_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_filter_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -74,8 +74,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilter] operation results. # - def get(resource_group_name, route_filter_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, route_filter_name, expand, custom_headers).value! + def get(resource_group_name, route_filter_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, route_filter_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_filter_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, route_filter_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, route_filter_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, route_filter_name, expand:expand, custom_headers:custom_headers).value! end # @@ -107,7 +107,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_filter_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, route_filter_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -171,8 +172,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilter] operation results. # - def create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -187,9 +188,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilter] operation results. # - def update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -233,9 +234,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers) + promise = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -260,8 +261,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -274,8 +275,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -287,13 +288,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -346,8 +348,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -359,8 +361,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -371,12 +373,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -430,8 +433,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_filter_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_filter_name, custom_headers).value! + def begin_delete(resource_group_name, route_filter_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! nil end @@ -445,8 +448,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_filter_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_filter_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_filter_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! end # @@ -459,7 +462,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_filter_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_filter_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -467,6 +470,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -513,8 +517,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilter] operation results. # - def begin_create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -530,8 +534,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! end # @@ -546,7 +550,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'route_filter_parameters is nil' if route_filter_parameters.nil? @@ -555,7 +559,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -630,8 +633,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilter] operation results. # - def begin_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -647,8 +650,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! end # @@ -663,7 +666,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'route_filter_parameters is nil' if route_filter_parameters.nil? @@ -672,7 +675,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -735,8 +737,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilterListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -750,8 +752,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -764,11 +766,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -822,8 +825,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteFilterListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -837,8 +840,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -851,11 +854,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -909,12 +913,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [RouteFilterListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -929,12 +933,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [RouteFilterListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_tables.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_tables.rb index 095503501..2477ddae7 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_tables.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/route_tables.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, custom_headers).value! + def delete(resource_group_name, route_table_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteTable] operation results. # - def get(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,8 +89,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, route_table_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteTable] operation results. # - def create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -211,8 +212,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -225,8 +226,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -238,13 +239,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -297,8 +299,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -310,8 +312,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -322,12 +324,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -381,8 +384,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -396,8 +399,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -410,7 +413,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -418,6 +421,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -464,8 +468,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteTable] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,8 +485,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! end # @@ -497,7 +501,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -506,7 +510,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -579,8 +582,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteTableListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -594,8 +597,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -608,11 +611,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -666,8 +670,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteTableListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -681,8 +685,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -695,11 +699,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -753,12 +758,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -773,12 +778,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/routes.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/routes.rb index 285ca4bbe..26d90407b 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/routes.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/routes.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Route] operation results. # - def get(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def get_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Route] operation results. # - def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, route_table_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers) + def list(resource_group_name, route_table_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers:custom_headers) first_page.get_all_items end @@ -232,8 +233,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - list_async(resource_group_name, route_table_name, custom_headers).value! + def list_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -246,7 +247,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, route_table_name, custom_headers = nil) + def list_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -254,6 +255,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -324,8 +326,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -339,7 +341,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -348,6 +350,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Route] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -413,8 +416,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! end # @@ -430,7 +433,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -440,7 +443,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -513,8 +515,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -528,8 +530,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -542,11 +544,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -600,12 +603,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [RouteListResult] which provide lazy access to pages of the response. # - def list_as_lazy(resource_group_name, route_table_name, custom_headers = nil) - response = list_async(resource_group_name, route_table_name, custom_headers).value! + def list_as_lazy(resource_group_name, route_table_name, custom_headers:nil) + response = list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/security_rules.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/security_rules.rb index 01983083a..012b12668 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/security_rules.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/security_rules.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -50,9 +50,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -78,8 +78,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [SecurityRule] operation results. # - def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -95,8 +95,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -120,6 +120,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -178,8 +179,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [SecurityRule] operation results. # - def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -196,9 +197,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -225,8 +226,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, network_security_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers) + def list(resource_group_name, network_security_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -241,8 +242,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -256,7 +257,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_security_group_name, custom_headers = nil) + def list_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -264,6 +265,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -319,8 +321,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -336,8 +338,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -352,7 +354,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -361,6 +363,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -409,8 +412,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [SecurityRule] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -428,8 +431,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! end # @@ -446,7 +449,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -456,7 +459,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -529,8 +531,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [SecurityRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -544,8 +546,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -558,11 +560,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -618,12 +621,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [SecurityRuleListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, network_security_group_name, custom_headers = nil) - response = list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, network_security_group_name, custom_headers:nil) + response = list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/subnets.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/subnets.rb index 1ada4a249..dcd710a66 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/subnets.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/subnets.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -76,8 +76,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Subnet] operation results. # - def get(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -93,8 +93,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! end # @@ -109,7 +109,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -118,6 +118,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -175,8 +176,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Subnet] operation results. # - def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -192,9 +193,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -235,8 +236,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -249,7 +250,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -257,6 +258,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,8 +313,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -327,8 +329,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! end # @@ -342,7 +344,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -351,6 +353,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -398,8 +401,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Subnet] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -416,8 +419,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! end # @@ -433,7 +436,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -443,7 +446,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -516,8 +518,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [SubnetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -531,8 +533,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -545,11 +547,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -604,12 +607,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [SubnetListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/usages.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/usages.rb index d7bb7a030..86d144a06 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/usages.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/usages.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -47,8 +47,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -68,6 +68,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -122,8 +123,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [UsagesListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -137,8 +138,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -151,11 +152,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -209,12 +211,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [UsagesListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb index f5fdcaebf..5e5464241 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb @@ -38,8 +38,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,9 +55,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -100,8 +100,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -115,7 +115,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -123,6 +123,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ConnectionSharedKey] operation results. # - def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -241,9 +242,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -272,8 +273,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ConnectionSharedKey] operation results. # - def get_shared_key(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_shared_key(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -290,8 +291,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -307,7 +308,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -315,6 +316,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -369,8 +371,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -384,8 +386,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -398,13 +400,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -466,8 +469,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ConnectionResetSharedKey] operation results. # - def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -484,9 +487,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -516,8 +519,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -535,8 +538,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -553,7 +556,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -562,7 +565,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -635,8 +637,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -651,8 +653,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -666,7 +668,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -674,6 +676,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -724,8 +727,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ConnectionSharedKey] operation results. # - def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -745,8 +748,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -765,7 +768,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -774,7 +777,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -854,8 +856,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [ConnectionResetSharedKey] operation results. # - def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -876,8 +878,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -897,7 +899,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -906,7 +908,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -970,8 +971,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkGatewayConnectionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -986,8 +987,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1001,11 +1002,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1060,12 +1062,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [VirtualNetworkGatewayConnectionListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateways.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateways.rb index f3058338e..eb5149149 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateways.rb @@ -37,8 +37,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkGateway] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkGateway] operation results. # - def get(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -122,6 +122,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -175,8 +176,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -190,9 +191,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -215,8 +216,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -229,8 +230,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -242,13 +243,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkGateway] operation results. # - def reset(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - response = reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def reset(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + response = reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -324,9 +326,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) + def reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) # Send request - promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers) + promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -356,8 +358,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [String] operation results. # - def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -375,8 +377,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -393,7 +395,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -402,7 +404,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -474,8 +475,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [BgpPeerStatusListResult] operation results. # - def get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - response = get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + response = get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -490,9 +491,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) + def get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) # Send request - promise = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers) + promise = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -520,8 +521,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [GatewayRouteListResult] operation results. # - def get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -535,9 +536,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -566,8 +567,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [GatewayRouteListResult] operation results. # - def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -582,9 +583,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) + def get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) # Send request - promise = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers) + promise = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -613,8 +614,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -631,8 +632,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -648,7 +649,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -657,7 +658,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -730,8 +730,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -746,8 +746,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -761,7 +761,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -769,6 +769,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -817,8 +818,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkGateway] operation results. # - def begin_reset(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - response = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def begin_reset(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + response = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -836,8 +837,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! end # @@ -854,7 +855,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) + def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -862,6 +863,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -918,8 +920,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [BgpPeerStatusListResult] operation results. # - def begin_get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - response = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + response = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -935,8 +937,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! end # @@ -951,7 +953,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) + def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -959,6 +961,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1015,8 +1018,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [GatewayRouteListResult] operation results. # - def begin_get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1032,8 +1035,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -1048,7 +1051,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1056,6 +1059,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1113,8 +1117,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [GatewayRouteListResult] operation results. # - def begin_get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - response = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + response = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1131,8 +1135,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_advertised_routes_with_http_info(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_advertised_routes_with_http_info(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! end # @@ -1148,7 +1152,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) + def begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'peer is nil' if peer.nil? @@ -1157,6 +1161,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1211,8 +1216,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1226,8 +1231,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1240,11 +1245,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1298,12 +1304,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [VirtualNetworkGatewayListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_peerings.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_peerings.rb index a12620011..c36586581 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_peerings.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_peerings.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! nil end @@ -50,9 +50,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -78,8 +78,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkPeering] operation results. # - def get(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def get(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -95,8 +95,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -120,6 +120,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -177,8 +178,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkPeering] operation results. # - def create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -194,9 +195,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -222,8 +223,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -237,8 +238,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -251,7 +252,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -259,6 +260,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +316,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! nil end @@ -331,8 +333,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! end # @@ -347,7 +349,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -356,6 +358,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -403,8 +406,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkPeering] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -421,8 +424,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! end # @@ -438,7 +441,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -448,7 +451,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -521,8 +523,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -536,8 +538,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -550,11 +552,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -609,12 +612,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [VirtualNetworkPeeringListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_networks.rb b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_networks.rb index fbfb6e4e6..eca1b1a69 100644 --- a/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_networks.rb +++ b/management/azure_mgmt_network/lib/2017-03-01/generated/azure_mgmt_network/virtual_networks.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetwork] operation results. # - def get(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,8 +89,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetwork] operation results. # - def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -235,12 +236,13 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -321,13 +323,14 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -383,8 +386,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [IPAddressAvailabilityResult] operation results. # - def check_ipaddress_availability(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) - response = check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value! + def check_ipaddress_availability(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) + response = check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:ip_address, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -399,8 +402,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_ipaddress_availability_with_http_info(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) - check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value! + def check_ipaddress_availability_with_http_info(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) + check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:ip_address, custom_headers:custom_headers).value! end # @@ -414,7 +417,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) + def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -422,6 +425,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -476,8 +480,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Array] operation results. # - def list_usage(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_usage_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list_usage(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_usage_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -491,8 +495,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usage_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_usage_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_usage_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_usage_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -505,7 +509,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usage_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_usage_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -513,6 +517,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -566,8 +571,8 @@ module Azure::Network::Mgmt::V2017_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -581,8 +586,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -595,7 +600,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -603,6 +608,7 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -649,8 +655,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetwork] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -666,8 +672,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! end # @@ -682,7 +688,7 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -691,7 +697,6 @@ module Azure::Network::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -764,8 +769,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -779,8 +784,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -793,11 +798,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -851,8 +857,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -866,8 +872,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -880,11 +886,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -938,8 +945,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [VirtualNetworkListUsageResult] operation results. # - def list_usage_next(next_page_link, custom_headers = nil) - response = list_usage_next_async(next_page_link, custom_headers).value! + def list_usage_next(next_page_link, custom_headers:nil) + response = list_usage_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -953,8 +960,8 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usage_next_with_http_info(next_page_link, custom_headers = nil) - list_usage_next_async(next_page_link, custom_headers).value! + def list_usage_next_with_http_info(next_page_link, custom_headers:nil) + list_usage_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -967,11 +974,12 @@ module Azure::Network::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usage_next_async(next_page_link, custom_headers = nil) + def list_usage_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1024,12 +1032,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1045,12 +1053,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1067,12 +1075,12 @@ module Azure::Network::Mgmt::V2017_03_01 # @return [VirtualNetworkListUsageResult] which provide lazy access to pages of # the response. # - def list_usage_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_usage_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_usage_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_usage_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_usage_next_async(next_page_link, custom_headers) + list_usage_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-30/generated/azure_mgmt_network/network_interfaces.rb b/management/azure_mgmt_network/lib/2017-03-30/generated/azure_mgmt_network/network_interfaces.rb index 3bde33886..9d7c76133 100644 --- a/management/azure_mgmt_network/lib/2017-03-30/generated/azure_mgmt_network/network_interfaces.rb +++ b/management/azure_mgmt_network/lib/2017-03-30/generated/azure_mgmt_network/network_interfaces.rb @@ -37,8 +37,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers) + def list_virtual_machine_scale_set_vmnetwork_interfaces(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + first_page = list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers) first_page.get_all_items end @@ -55,8 +55,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -81,6 +81,7 @@ module Azure::Network::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -136,8 +137,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers) + def list_virtual_machine_scale_set_network_interfaces(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + first_page = list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -152,8 +153,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! end # @@ -167,7 +168,7 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? api_version = '2017-03-30' @@ -175,6 +176,7 @@ module Azure::Network::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -233,8 +235,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [NetworkInterface] operation results. # - def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + response = get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -252,8 +254,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) - get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_network_interface_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) + get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -270,7 +272,7 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand = nil, custom_headers = nil) + def get_virtual_machine_scale_set_network_interface_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -280,6 +282,7 @@ module Azure::Network::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -335,8 +338,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -351,8 +354,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -366,11 +369,12 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -424,8 +428,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [NetworkInterfaceListResult] operation results. # - def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -439,8 +443,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -453,11 +457,12 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -515,12 +520,12 @@ module Azure::Network::Mgmt::V2017_03_30 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers = nil) - response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers).value! + def list_virtual_machine_scale_set_vmnetwork_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:nil) + response = list_virtual_machine_scale_set_vmnetwork_interfaces_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_vmnetwork_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -538,12 +543,12 @@ module Azure::Network::Mgmt::V2017_03_30 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_network_interfaces_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + response = list_virtual_machine_scale_set_network_interfaces_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_network_interfaces_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-03-30/generated/azure_mgmt_network/public_ipaddresses.rb b/management/azure_mgmt_network/lib/2017-03-30/generated/azure_mgmt_network/public_ipaddresses.rb index 83c030dfc..3d195e1e1 100644 --- a/management/azure_mgmt_network/lib/2017-03-30/generated/azure_mgmt_network/public_ipaddresses.rb +++ b/management/azure_mgmt_network/lib/2017-03-30/generated/azure_mgmt_network/public_ipaddresses.rb @@ -36,8 +36,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_public_ipaddresses(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - first_page = list_virtual_machine_scale_set_public_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers) + def list_virtual_machine_scale_set_public_ipaddresses(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + first_page = list_virtual_machine_scale_set_public_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end @@ -53,8 +53,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_public_ipaddresses_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_public_ipaddresses_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) + def list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? api_version = '2017-03-30' @@ -77,6 +77,7 @@ module Azure::Network::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -136,8 +137,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Array] operation results. # - def list_virtual_machine_scale_set_vmpublic_ipaddresses(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil) - first_page = list_virtual_machine_scale_set_vmpublic_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers) + def list_virtual_machine_scale_set_vmpublic_ipaddresses(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers:nil) + first_page = list_virtual_machine_scale_set_vmpublic_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers:custom_headers) first_page.get_all_items end @@ -156,8 +157,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmpublic_ipaddresses_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil) - list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers).value! + def list_virtual_machine_scale_set_vmpublic_ipaddresses_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers:nil) + list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers:custom_headers).value! end # @@ -175,7 +176,7 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil) + def list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -186,6 +187,7 @@ module Azure::Network::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -246,8 +248,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [PublicIPAddress] operation results. # - def get_virtual_machine_scale_set_public_ipaddress(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand = nil, custom_headers = nil) - response = get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_public_ipaddress(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand:nil, custom_headers:nil) + response = get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -267,8 +269,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_virtual_machine_scale_set_public_ipaddress_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand = nil, custom_headers = nil) - get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand, custom_headers).value! + def get_virtual_machine_scale_set_public_ipaddress_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand:nil, custom_headers:nil) + get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! end # @@ -287,7 +289,7 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand = nil, custom_headers = nil) + def get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil? @@ -299,6 +301,7 @@ module Azure::Network::Mgmt::V2017_03_30 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -354,8 +357,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [PublicIPAddressListResult] operation results. # - def list_virtual_machine_scale_set_public_ipaddresses_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_public_ipaddresses_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -370,8 +373,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_public_ipaddresses_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_public_ipaddresses_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -385,11 +388,12 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -444,8 +448,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [PublicIPAddressListResult] operation results. # - def list_virtual_machine_scale_set_vmpublic_ipaddresses_next(next_page_link, custom_headers = nil) - response = list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmpublic_ipaddresses_next(next_page_link, custom_headers:nil) + response = list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -460,8 +464,8 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_virtual_machine_scale_set_vmpublic_ipaddresses_next_with_http_info(next_page_link, custom_headers = nil) - list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers).value! + def list_virtual_machine_scale_set_vmpublic_ipaddresses_next_with_http_info(next_page_link, custom_headers:nil) + list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -475,11 +479,12 @@ module Azure::Network::Mgmt::V2017_03_30 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers = nil) + def list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -536,12 +541,12 @@ module Azure::Network::Mgmt::V2017_03_30 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_virtual_machine_scale_set_public_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil) - response = list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value! + def list_virtual_machine_scale_set_public_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers:nil) + response = list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -563,12 +568,12 @@ module Azure::Network::Mgmt::V2017_03_30 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_virtual_machine_scale_set_vmpublic_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil) - response = list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers).value! + def list_virtual_machine_scale_set_vmpublic_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers:nil) + response = list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers) + list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/application_gateways.rb index bf87a1cb1..993d4b5ab 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/application_gateways.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/application_gateways.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationGateway] operation results. # - def get(resource_group_name, application_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get(resource_group_name, application_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -87,8 +87,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - get_async(resource_group_name, application_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + get_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, application_gateway_name, custom_headers = nil) + def get_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationGateway] operation results. # - def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -208,8 +209,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -222,8 +223,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -235,13 +236,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -319,12 +321,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -377,8 +380,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def start(resource_group_name, application_gateway_name, custom_headers = nil) - response = start_async(resource_group_name, application_gateway_name, custom_headers).value! + def start(resource_group_name, application_gateway_name, custom_headers:nil) + response = start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -391,9 +394,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def start_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -415,8 +418,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -429,9 +432,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def stop_async(resource_group_name, application_gateway_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers) + promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -458,8 +461,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationGatewayBackendHealth] operation results. # - def backend_health(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - response = backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + response = backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -474,9 +477,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) + def backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) # Send request - promise = begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers) + promise = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -500,8 +503,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationGatewayAvailableWafRuleSetsResult] operation results. # - def list_available_waf_rule_sets(custom_headers = nil) - response = list_available_waf_rule_sets_async(custom_headers).value! + def list_available_waf_rule_sets(custom_headers:nil) + response = list_available_waf_rule_sets_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -513,8 +516,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_waf_rule_sets_with_http_info(custom_headers = nil) - list_available_waf_rule_sets_async(custom_headers).value! + def list_available_waf_rule_sets_with_http_info(custom_headers:nil) + list_available_waf_rule_sets_async(custom_headers:custom_headers).value! end # @@ -525,12 +528,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_waf_rule_sets_async(custom_headers = nil) + def list_available_waf_rule_sets_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -583,8 +587,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationGatewayAvailableSslOptions] operation results. # - def list_available_ssl_options(custom_headers = nil) - response = list_available_ssl_options_async(custom_headers).value! + def list_available_ssl_options(custom_headers:nil) + response = list_available_ssl_options_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -596,8 +600,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_ssl_options_with_http_info(custom_headers = nil) - list_available_ssl_options_async(custom_headers).value! + def list_available_ssl_options_with_http_info(custom_headers:nil) + list_available_ssl_options_async(custom_headers:custom_headers).value! end # @@ -608,12 +612,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_ssl_options_async(custom_headers = nil) + def list_available_ssl_options_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -666,8 +671,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_available_ssl_predefined_policies(custom_headers = nil) - first_page = list_available_ssl_predefined_policies_as_lazy(custom_headers) + def list_available_ssl_predefined_policies(custom_headers:nil) + first_page = list_available_ssl_predefined_policies_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -679,8 +684,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_ssl_predefined_policies_with_http_info(custom_headers = nil) - list_available_ssl_predefined_policies_async(custom_headers).value! + def list_available_ssl_predefined_policies_with_http_info(custom_headers:nil) + list_available_ssl_predefined_policies_async(custom_headers:custom_headers).value! end # @@ -691,12 +696,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_ssl_predefined_policies_async(custom_headers = nil) + def list_available_ssl_predefined_policies_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -750,8 +756,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationGatewaySslPredefinedPolicy] operation results. # - def get_ssl_predefined_policy(predefined_policy_name, custom_headers = nil) - response = get_ssl_predefined_policy_async(predefined_policy_name, custom_headers).value! + def get_ssl_predefined_policy(predefined_policy_name, custom_headers:nil) + response = get_ssl_predefined_policy_async(predefined_policy_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -764,8 +770,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_ssl_predefined_policy_with_http_info(predefined_policy_name, custom_headers = nil) - get_ssl_predefined_policy_async(predefined_policy_name, custom_headers).value! + def get_ssl_predefined_policy_with_http_info(predefined_policy_name, custom_headers:nil) + get_ssl_predefined_policy_async(predefined_policy_name, custom_headers:custom_headers).value! end # @@ -777,13 +783,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_ssl_predefined_policy_async(predefined_policy_name, custom_headers = nil) + def get_ssl_predefined_policy_async(predefined_policy_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'predefined_policy_name is nil' if predefined_policy_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -837,8 +844,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -852,8 +859,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -866,7 +873,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -874,6 +881,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -920,8 +928,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationGateway] operation results. # - def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -937,8 +945,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -953,7 +961,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -962,7 +970,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1034,8 +1041,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_start(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -1049,8 +1056,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_start_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_start_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_start_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -1063,7 +1070,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_start_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1071,6 +1078,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1114,8 +1122,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, application_gateway_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop(resource_group_name, application_gateway_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! nil end @@ -1129,8 +1137,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil) - begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers:nil) + begin_stop_async(resource_group_name, application_gateway_name, custom_headers:custom_headers).value! end # @@ -1143,7 +1151,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil) + def begin_stop_async(resource_group_name, application_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1151,6 +1159,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1198,8 +1207,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationGatewayBackendHealth] operation results. # - def begin_backend_health(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - response = begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def begin_backend_health(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + response = begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1216,8 +1225,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_backend_health_with_http_info(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) - begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value! + def begin_backend_health_with_http_info(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) + begin_backend_health_async(resource_group_name, application_gateway_name, expand:expand, custom_headers:custom_headers).value! end # @@ -1233,7 +1242,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) + def begin_backend_health_async(resource_group_name, application_gateway_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1241,6 +1250,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1295,8 +1305,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1310,8 +1320,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1324,11 +1334,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1382,8 +1393,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationGatewayListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1397,8 +1408,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1411,11 +1422,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1469,8 +1481,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationGatewayAvailableSslPredefinedPolicies] operation results. # - def list_available_ssl_predefined_policies_next(next_page_link, custom_headers = nil) - response = list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers).value! + def list_available_ssl_predefined_policies_next(next_page_link, custom_headers:nil) + response = list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1484,8 +1496,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_available_ssl_predefined_policies_next_with_http_info(next_page_link, custom_headers = nil) - list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers).value! + def list_available_ssl_predefined_policies_next_with_http_info(next_page_link, custom_headers:nil) + list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1498,11 +1510,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers = nil) + def list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1556,12 +1569,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1576,12 +1589,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [ApplicationGatewayListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1596,12 +1609,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [ApplicationGatewayAvailableSslPredefinedPolicies] which provide lazy # access to pages of the response. # - def list_available_ssl_predefined_policies_as_lazy(custom_headers = nil) - response = list_available_ssl_predefined_policies_async(custom_headers).value! + def list_available_ssl_predefined_policies_as_lazy(custom_headers:nil) + response = list_available_ssl_predefined_policies_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers) + list_available_ssl_predefined_policies_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/application_security_groups.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/application_security_groups.rb index 817742a34..846fc6841 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/application_security_groups.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/application_security_groups.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, application_security_group_name, custom_headers = nil) - response = delete_async(resource_group_name, application_security_group_name, custom_headers).value! + def delete(resource_group_name, application_security_group_name, custom_headers:nil) + response = delete_async(resource_group_name, application_security_group_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, application_security_group_name, custom_headers = nil) + def delete_async(resource_group_name, application_security_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, application_security_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, application_security_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationSecurityGroup] operation results. # - def get(resource_group_name, application_security_group_name, custom_headers = nil) - response = get_async(resource_group_name, application_security_group_name, custom_headers).value! + def get(resource_group_name, application_security_group_name, custom_headers:nil) + response = get_async(resource_group_name, application_security_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, application_security_group_name, custom_headers = nil) - get_async(resource_group_name, application_security_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, application_security_group_name, custom_headers:nil) + get_async(resource_group_name, application_security_group_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, application_security_group_name, custom_headers = nil) + def get_async(resource_group_name, application_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_security_group_name is nil' if application_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -114,6 +114,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -171,8 +172,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationSecurityGroup] operation results. # - def create_or_update(resource_group_name, application_security_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, application_security_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -188,9 +189,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -214,8 +215,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -227,8 +228,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -239,12 +240,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -312,8 +314,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -325,13 +327,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -386,8 +389,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, application_security_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, application_security_group_name, custom_headers).value! + def begin_delete(resource_group_name, application_security_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, application_security_group_name, custom_headers:custom_headers).value! nil end @@ -402,8 +405,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, application_security_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, application_security_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, application_security_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, application_security_group_name, custom_headers:custom_headers).value! end # @@ -417,7 +420,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, application_security_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, application_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_security_group_name is nil' if application_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -425,6 +428,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -472,8 +476,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationSecurityGroup] operation results. # - def begin_create_or_update(resource_group_name, application_security_group_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, application_security_group_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -490,8 +494,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, application_security_group_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, application_security_group_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers:custom_headers).value! end # @@ -507,7 +511,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_security_group_name is nil' if application_security_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -516,7 +520,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -589,8 +592,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationSecurityGroupListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -604,8 +607,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -618,11 +621,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -676,8 +680,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ApplicationSecurityGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -691,8 +695,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -705,11 +709,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -762,12 +767,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [ApplicationSecurityGroupListResult] which provide lazy access to # pages of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -783,12 +788,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [ApplicationSecurityGroupListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/available_endpoint_services.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/available_endpoint_services.rb index e10d408e2..9495defb3 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/available_endpoint_services.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/available_endpoint_services.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -47,8 +47,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -60,13 +60,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -121,8 +122,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [EndpointServicesListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -136,8 +137,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -150,11 +151,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -208,12 +210,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [EndpointServicesListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/bgp_service_communities.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/bgp_service_communities.rb index 902c3a732..2f1d732d5 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/bgp_service_communities.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/bgp_service_communities.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -45,8 +45,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [BgpServiceCommunityListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +133,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -146,11 +147,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -203,12 +205,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [BgpServiceCommunityListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/default_security_rules.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/default_security_rules.rb index 57d222c57..63113bb46 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/default_security_rules.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/default_security_rules.rb @@ -35,8 +35,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, network_security_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers) + def list(resource_group_name, network_security_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -51,8 +51,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_security_group_name, custom_headers = nil) + def list_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -74,6 +74,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [SecurityRule] operation results. # - def get(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers).value! + def get(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -149,8 +150,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers:custom_headers).value! end # @@ -166,7 +167,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'default_security_rule_name is nil' if default_security_rule_name.nil? @@ -175,6 +176,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -229,8 +231,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [SecurityRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -244,8 +246,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -258,11 +260,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -318,12 +321,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [SecurityRuleListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, network_security_group_name, custom_headers = nil) - response = list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, network_security_group_name, custom_headers:nil) + response = list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb index e0f75c7df..03e20a1c8 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def get(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -173,8 +174,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -219,8 +220,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -234,8 +235,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -248,7 +249,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -256,6 +257,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -310,8 +312,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! nil end @@ -326,8 +328,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end # @@ -341,7 +343,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -350,6 +352,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -398,8 +401,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitAuthorization] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -417,8 +420,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! end # @@ -435,7 +438,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? @@ -445,7 +448,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -518,8 +520,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [AuthorizationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -533,8 +535,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -547,11 +549,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -606,12 +609,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [AuthorizationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb index 0e62035b4..66d5bc689 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def get(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, circuit_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers) + def list(resource_group_name, circuit_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers:custom_headers) first_page.get_all_items end @@ -232,8 +233,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - list_async(resource_group_name, circuit_name, custom_headers).value! + def list_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -246,7 +247,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, circuit_name, custom_headers = nil) + def list_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -254,6 +255,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! nil end @@ -324,8 +326,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -339,7 +341,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -348,6 +350,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitPeering] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -413,8 +416,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:custom_headers).value! end # @@ -430,7 +433,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -440,7 +443,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -513,8 +515,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -528,8 +530,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -542,11 +544,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -601,12 +604,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [ExpressRouteCircuitPeeringListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil) - response = list_async(resource_group_name, circuit_name, custom_headers).value! + def list_as_lazy(resource_group_name, circuit_name, custom_headers:nil) + response = list_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuits.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuits.rb index 2bff8bfd0..84fdfe0c2 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuits.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuits.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, circuit_name, custom_headers = nil) - response = delete_async(resource_group_name, circuit_name, custom_headers).value! + def delete(resource_group_name, circuit_name, custom_headers:nil) + response = delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, circuit_name, custom_headers = nil) + def delete_async(resource_group_name, circuit_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, circuit_name, custom_headers) + promise = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuit] operation results. # - def get(resource_group_name, circuit_name, custom_headers = nil) - response = get_async(resource_group_name, circuit_name, custom_headers).value! + def get(resource_group_name, circuit_name, custom_headers:nil) + response = get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -87,8 +87,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_async(resource_group_name, circuit_name, custom_headers).value! + def get_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -101,7 +101,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, circuit_name, custom_headers = nil) + def get_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -109,6 +109,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -165,8 +166,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuit] operation results. # - def create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -181,9 +182,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -228,9 +229,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -259,8 +260,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -275,9 +276,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -306,8 +307,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -322,9 +323,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) # Send request - promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers) + promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -350,8 +351,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitStats] operation results. # - def get_stats(resource_group_name, circuit_name, custom_headers = nil) - response = get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats(resource_group_name, circuit_name, custom_headers:nil) + response = get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -365,8 +366,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - get_stats_async(resource_group_name, circuit_name, custom_headers).value! + def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + get_stats_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -379,7 +380,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_stats_async(resource_group_name, circuit_name, custom_headers = nil) + def get_stats_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -387,6 +388,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -442,8 +444,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitStats] operation results. # - def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers = nil) - response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers:nil) + response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -458,8 +460,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers = nil) - get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers).value! + def get_peering_stats_with_http_info(resource_group_name, circuit_name, peering_name, custom_headers:nil) + get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! end # @@ -473,7 +475,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers = nil) + def get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -482,6 +484,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -535,8 +538,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -549,8 +552,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -562,13 +565,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -621,8 +625,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -634,8 +638,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -646,12 +650,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -705,8 +710,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, circuit_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete(resource_group_name, circuit_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! nil end @@ -720,8 +725,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers = nil) - begin_delete_async(resource_group_name, circuit_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, circuit_name, custom_headers:nil) + begin_delete_async(resource_group_name, circuit_name, custom_headers:custom_headers).value! end # @@ -734,7 +739,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil) + def begin_delete_async(resource_group_name, circuit_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -742,6 +747,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -788,8 +794,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuit] operation results. # - def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, circuit_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -805,8 +811,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, circuit_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:custom_headers).value! end # @@ -821,7 +827,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -830,7 +836,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -906,8 +911,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitsArpTableListResult] operation results. # - def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -924,8 +929,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_arp_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -941,7 +946,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -951,6 +956,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1008,8 +1014,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitsRoutesTableListResult] operation results. # - def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1026,8 +1032,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1043,7 +1049,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1053,6 +1059,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1110,8 +1117,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results. # - def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + response = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1128,8 +1135,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) - begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value! + def begin_list_routes_table_summary_with_http_info(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) + begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! end # @@ -1145,7 +1152,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil) + def begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? @@ -1155,6 +1162,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1209,8 +1217,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1224,8 +1232,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1238,11 +1246,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1296,8 +1305,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteCircuitListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1311,8 +1320,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1325,11 +1334,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1383,12 +1393,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1403,12 +1413,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [ExpressRouteCircuitListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_service_providers.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_service_providers.rb index 72e40f72e..9e38f9ff0 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_service_providers.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/express_route_service_providers.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -45,8 +45,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ExpressRouteServiceProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +133,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -146,11 +147,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -203,12 +205,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [ExpressRouteServiceProviderListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/inbound_nat_rules.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/inbound_nat_rules.rb index 280bd43ba..aefcf6baa 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/inbound_nat_rules.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/inbound_nat_rules.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, load_balancer_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers) + def list(resource_group_name, load_balancer_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, load_balancer_name, custom_headers = nil) + def list_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -124,8 +125,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers).value! + def delete(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers:custom_headers).value! nil end @@ -139,9 +140,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers = nil) + def delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -167,8 +168,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [InboundNatRule] operation results. # - def get(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand, custom_headers).value! + def get(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,8 +185,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand:expand, custom_headers:custom_headers).value! end # @@ -200,7 +201,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'inbound_nat_rule_name is nil' if inbound_nat_rule_name.nil? @@ -209,6 +210,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -266,8 +268,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [InboundNatRule] operation results. # - def create_or_update(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -283,9 +285,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -311,8 +313,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers).value! + def begin_delete(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers:custom_headers).value! nil end @@ -327,8 +329,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers:custom_headers).value! end # @@ -342,7 +344,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'inbound_nat_rule_name is nil' if inbound_nat_rule_name.nil? @@ -351,6 +353,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -398,8 +401,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [InboundNatRule] operation results. # - def begin_create_or_update(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -416,8 +419,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers:custom_headers).value! end # @@ -433,7 +436,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'inbound_nat_rule_name is nil' if inbound_nat_rule_name.nil? @@ -443,7 +446,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -516,8 +518,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [InboundNatRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -531,8 +533,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -545,11 +547,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -604,12 +607,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [InboundNatRuleListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil) - response = list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_as_lazy(resource_group_name, load_balancer_name, custom_headers:nil) + response = list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb index b5c7744a1..38e53050b 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, load_balancer_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers) + def list(resource_group_name, load_balancer_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, load_balancer_name, custom_headers = nil) + def list_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [BackendAddressPool] operation results. # - def get(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers).value! + def get(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'backend_address_pool_name is nil' if backend_address_pool_name.nil? @@ -169,6 +170,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -223,8 +225,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LoadBalancerBackendAddressPoolListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -238,8 +240,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -252,11 +254,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,12 +314,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [LoadBalancerBackendAddressPoolListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil) - response = list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_as_lazy(resource_group_name, load_balancer_name, custom_headers:nil) + response = list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb index 4332738e0..9bf360503 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, load_balancer_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers) + def list(resource_group_name, load_balancer_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, load_balancer_name, custom_headers = nil) + def list_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [FrontendIPConfiguration] operation results. # - def get(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers).value! + def get(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'frontend_ipconfiguration_name is nil' if frontend_ipconfiguration_name.nil? @@ -169,6 +170,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -223,8 +225,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LoadBalancerFrontendIPConfigurationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -238,8 +240,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -252,11 +254,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,12 +314,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [LoadBalancerFrontendIPConfigurationListResult] which provide lazy # access to pages of the response. # - def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil) - response = list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_as_lazy(resource_group_name, load_balancer_name, custom_headers:nil) + response = list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb index 784f9c739..ef340d653 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, load_balancer_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers) + def list(resource_group_name, load_balancer_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, load_balancer_name, custom_headers = nil) + def list_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LoadBalancingRule] operation results. # - def get(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers).value! + def get(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -142,8 +143,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers:custom_headers).value! end # @@ -157,7 +158,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'load_balancing_rule_name is nil' if load_balancing_rule_name.nil? @@ -166,6 +167,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -220,8 +222,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LoadBalancerLoadBalancingRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -235,8 +237,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -249,11 +251,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,12 +311,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [LoadBalancerLoadBalancingRuleListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil) - response = list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_as_lazy(resource_group_name, load_balancer_name, custom_headers:nil) + response = list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb index 460f23518..774669254 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, load_balancer_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers) + def list(resource_group_name, load_balancer_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, load_balancer_name, custom_headers = nil) + def list_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -125,8 +126,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -140,8 +141,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -154,11 +155,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -213,12 +215,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil) - response = list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_as_lazy(resource_group_name, load_balancer_name, custom_headers:nil) + response = list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_probes.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_probes.rb index 6cae47156..1ff8a871a 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_probes.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_probes.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, load_balancer_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers) + def list(resource_group_name, load_balancer_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, load_balancer_name, custom_headers = nil) + def list_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Probe] operation results. # - def get(resource_group_name, load_balancer_name, probe_name, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, probe_name, custom_headers).value! + def get(resource_group_name, load_balancer_name, probe_name, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, probe_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -142,8 +143,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, probe_name, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, probe_name, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, probe_name, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, probe_name, custom_headers:custom_headers).value! end # @@ -157,7 +158,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, probe_name, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, probe_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'probe_name is nil' if probe_name.nil? @@ -166,6 +167,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -220,8 +222,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LoadBalancerProbeListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -235,8 +237,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -249,11 +251,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,12 +311,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [LoadBalancerProbeListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil) - response = list_async(resource_group_name, load_balancer_name, custom_headers).value! + def list_as_lazy(resource_group_name, load_balancer_name, custom_headers:nil) + response = list_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancers.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancers.rb index 0e74b0faa..d81afdb3c 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancers.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/load_balancers.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def delete_async(resource_group_name, load_balancer_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers) + promise = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LoadBalancer] operation results. # - def get(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,8 +89,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, load_balancer_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, load_balancer_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, load_balancer_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LoadBalancer] operation results. # - def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -235,12 +236,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -321,13 +323,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -381,8 +384,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, load_balancer_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete(resource_group_name, load_balancer_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! nil end @@ -396,8 +399,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil) - begin_delete_async(resource_group_name, load_balancer_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_headers:nil) + begin_delete_async(resource_group_name, load_balancer_name, custom_headers:custom_headers).value! end # @@ -410,7 +413,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, load_balancer_name, custom_headers = nil) + def begin_delete_async(resource_group_name, load_balancer_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -418,6 +421,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -464,8 +468,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LoadBalancer] operation results. # - def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,8 +485,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:custom_headers).value! end # @@ -497,7 +501,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, load_balancer_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -506,7 +510,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -579,8 +582,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LoadBalancerListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -594,8 +597,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -608,11 +611,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -666,8 +670,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LoadBalancerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -681,8 +685,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -695,11 +699,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -752,12 +757,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -773,12 +778,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [LoadBalancerListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/local_network_gateways.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/local_network_gateways.rb index 2b7436272..27dd34dc7 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/local_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/local_network_gateways.rb @@ -37,8 +37,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LocalNetworkGateway] operation results. # - def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LocalNetworkGateway] operation results. # - def get(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, "'local_network_gateway_name' should satisfy the constraint - 'MinLength': '1'" if !local_network_gateway_name.nil? && local_network_gateway_name.length < 1 @@ -123,6 +123,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -216,8 +217,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -230,8 +231,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -243,13 +244,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +309,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LocalNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -325,8 +327,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -342,7 +344,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, local_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, "'local_network_gateway_name' should satisfy the constraint - 'MinLength': '1'" if !local_network_gateway_name.nil? && local_network_gateway_name.length < 1 @@ -352,7 +354,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -425,8 +426,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, local_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, local_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -441,8 +442,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! end # @@ -456,7 +457,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, "'local_network_gateway_name' should satisfy the constraint - 'MinLength': '1'" if !local_network_gateway_name.nil? && local_network_gateway_name.length < 1 @@ -465,6 +466,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -509,8 +511,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [LocalNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -524,8 +526,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -538,11 +540,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -596,12 +599,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [LocalNetworkGatewayListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb index 19f877669..e4d652b31 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, network_interface_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, network_interface_name, custom_headers) + def list(resource_group_name, network_interface_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, network_interface_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - list_async(resource_group_name, network_interface_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + list_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_interface_name, custom_headers = nil) + def list_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkInterfaceIPConfiguration] operation results. # - def get(resource_group_name, network_interface_name, ip_configuration_name, custom_headers = nil) - response = get_async(resource_group_name, network_interface_name, ip_configuration_name, custom_headers).value! + def get(resource_group_name, network_interface_name, ip_configuration_name, custom_headers:nil) + response = get_async(resource_group_name, network_interface_name, ip_configuration_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -142,8 +143,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_interface_name, ip_configuration_name, custom_headers = nil) - get_async(resource_group_name, network_interface_name, ip_configuration_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_interface_name, ip_configuration_name, custom_headers:nil) + get_async(resource_group_name, network_interface_name, ip_configuration_name, custom_headers:custom_headers).value! end # @@ -157,7 +158,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_interface_name, ip_configuration_name, custom_headers = nil) + def get_async(resource_group_name, network_interface_name, ip_configuration_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, 'ip_configuration_name is nil' if ip_configuration_name.nil? @@ -166,6 +167,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -220,8 +222,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkInterfaceIPConfigurationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -235,8 +237,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -249,11 +251,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,12 +311,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [NetworkInterfaceIPConfigurationListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, network_interface_name, custom_headers = nil) - response = list_async(resource_group_name, network_interface_name, custom_headers).value! + def list_as_lazy(resource_group_name, network_interface_name, custom_headers:nil) + response = list_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interface_load_balancers.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interface_load_balancers.rb index 82330c732..4635730b3 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interface_load_balancers.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interface_load_balancers.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, network_interface_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, network_interface_name, custom_headers) + def list(resource_group_name, network_interface_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, network_interface_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - list_async(resource_group_name, network_interface_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + list_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_interface_name, custom_headers = nil) + def list_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -71,6 +71,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -125,8 +126,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkInterfaceLoadBalancerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -140,8 +141,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -154,11 +155,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -213,12 +215,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [NetworkInterfaceLoadBalancerListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, network_interface_name, custom_headers = nil) - response = list_async(resource_group_name, network_interface_name, custom_headers).value! + def list_as_lazy(resource_group_name, network_interface_name, custom_headers:nil) + response = list_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interfaces.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interfaces.rb index 25b35c81b..de105edb7 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interfaces.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_interfaces.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_interface_name, custom_headers = nil) - response = delete_async(resource_group_name, network_interface_name, custom_headers).value! + def delete(resource_group_name, network_interface_name, custom_headers:nil) + response = delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def delete_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkInterface] operation results. # - def get(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,8 +89,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_interface_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_interface_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkInterface] operation results. # - def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -235,12 +236,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -321,13 +323,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -382,8 +385,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [EffectiveRouteListResult] operation results. # - def get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) - response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil) + response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -396,9 +399,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) + def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -424,8 +427,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [EffectiveNetworkSecurityGroupListResult] operation results. # - def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) - response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil) + response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -438,9 +441,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) + def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil) # Send request - promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers) + promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -465,8 +468,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! nil end @@ -480,8 +483,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -494,7 +497,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -502,6 +505,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -548,8 +552,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkInterface] operation results. # - def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -565,8 +569,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value! end # @@ -581,7 +585,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -590,7 +594,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -663,8 +666,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [EffectiveRouteListResult] operation results. # - def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -678,8 +681,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -692,7 +695,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -700,6 +703,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -754,8 +758,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [EffectiveNetworkSecurityGroupListResult] operation results. # - def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers = nil) - response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil) + response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -769,8 +773,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers = nil) - begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers).value! + def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers:nil) + begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value! end # @@ -783,7 +787,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) + def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -791,6 +795,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -845,8 +850,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -860,8 +865,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -874,11 +879,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -932,8 +938,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkInterfaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -947,8 +953,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -961,11 +967,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1018,12 +1025,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1039,12 +1046,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [NetworkInterfaceListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb index fb425163b..9cd2a9d89 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb @@ -272,8 +272,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [DnsNameAvailabilityResult] operation results. # - def check_dns_name_availability(location, domain_name_label, custom_headers = nil) - response = check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability(location, domain_name_label, custom_headers:nil) + response = check_dns_name_availability_async(location, domain_name_label, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -289,8 +289,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_dns_name_availability_with_http_info(location, domain_name_label, custom_headers = nil) - check_dns_name_availability_async(location, domain_name_label, custom_headers).value! + def check_dns_name_availability_with_http_info(location, domain_name_label, custom_headers:nil) + check_dns_name_availability_async(location, domain_name_label, custom_headers:custom_headers).value! end # @@ -305,7 +305,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_dns_name_availability_async(location, domain_name_label, custom_headers = nil) + def check_dns_name_availability_async(location, domain_name_label, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'domain_name_label is nil' if domain_name_label.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? @@ -313,6 +313,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_security_groups.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_security_groups.rb index 16a4a14dc..902715f18 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_security_groups.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_security_groups.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -76,8 +76,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkSecurityGroup] operation results. # - def get(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -93,8 +93,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, expand:expand, custom_headers:custom_headers).value! end # @@ -109,7 +109,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -117,6 +117,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -174,8 +175,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkSecurityGroup] operation results. # - def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -230,8 +231,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -242,12 +243,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -301,8 +303,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -315,8 +317,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -328,13 +330,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -389,8 +392,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! nil end @@ -405,8 +408,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -420,7 +423,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -428,6 +431,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -475,8 +479,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkSecurityGroup] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -493,8 +497,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:custom_headers).value! end # @@ -510,7 +514,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -519,7 +523,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -592,8 +595,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -607,8 +610,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -621,11 +624,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -679,8 +683,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkSecurityGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -694,8 +698,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -708,11 +712,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -765,12 +770,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -786,12 +791,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [NetworkSecurityGroupListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_watchers.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_watchers.rb index 95efe836f..31a36f7cd 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_watchers.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/network_watchers.rb @@ -36,8 +36,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkWatcher] operation results. # - def create_or_update(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -78,7 +78,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -151,8 +150,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkWatcher] operation results. # - def get(resource_group_name, network_watcher_name, custom_headers = nil) - response = get_async(resource_group_name, network_watcher_name, custom_headers).value! + def get(resource_group_name, network_watcher_name, custom_headers:nil) + response = get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -166,8 +165,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - get_async(resource_group_name, network_watcher_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -180,7 +179,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_watcher_name, custom_headers = nil) + def get_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -188,6 +187,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -240,8 +240,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_watcher_name, custom_headers = nil) - response = delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def delete(resource_group_name, network_watcher_name, custom_headers:nil) + response = delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! nil end @@ -254,9 +254,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_watcher_name, custom_headers = nil) + def delete_async(resource_group_name, network_watcher_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_watcher_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -279,8 +279,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkWatcherListResult] operation results. # - def list(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -293,8 +293,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -306,13 +306,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -365,8 +366,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NetworkWatcherListResult] operation results. # - def list_all(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -378,8 +379,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -390,12 +391,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -452,8 +454,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Topology] operation results. # - def get_topology(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_topology(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -469,8 +471,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_topology_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_topology_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -485,7 +487,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -494,7 +496,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -560,8 +561,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VerificationIPFlowResult] operation results. # - def verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -576,9 +577,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -606,8 +607,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NextHopResult] operation results. # - def get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -622,9 +623,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -652,8 +653,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [SecurityGroupViewResult] operation results. # - def get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -668,9 +669,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -699,8 +700,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [TroubleshootingResult] operation results. # - def get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -716,9 +717,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -747,8 +748,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [TroubleshootingResult] operation results. # - def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -764,9 +765,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -796,8 +797,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [FlowLogInformation] operation results. # - def set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -814,9 +815,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -846,8 +847,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [FlowLogInformation] operation results. # - def get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -864,9 +865,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -898,8 +899,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ConnectivityInformation] operation results. # - def check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -916,9 +917,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -949,8 +950,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [AzureReachabilityReport] operation results. # - def get_azure_reachability_report(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def get_azure_reachability_report(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -967,9 +968,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -999,8 +1000,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [AvailableProvidersList] operation results. # - def list_available_providers(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def list_available_providers(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1017,9 +1018,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) # Send request - promise = begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers) + promise = begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1044,8 +1045,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_watcher_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def begin_delete(resource_group_name, network_watcher_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! nil end @@ -1059,8 +1060,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_watcher_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -1073,7 +1074,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_watcher_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1081,6 +1082,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1128,8 +1130,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VerificationIPFlowResult] operation results. # - def begin_verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1146,8 +1148,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_verify_ipflow_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_verify_ipflow_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1163,7 +1165,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1172,7 +1174,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1247,8 +1248,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [NextHopResult] operation results. # - def begin_get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1264,8 +1265,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_next_hop_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_next_hop_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1280,7 +1281,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1289,7 +1290,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1364,8 +1364,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [SecurityGroupViewResult] operation results. # - def begin_get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1381,8 +1381,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_vmsecurity_rules_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_vmsecurity_rules_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1397,7 +1397,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1406,7 +1406,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1482,8 +1481,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [TroubleshootingResult] operation results. # - def begin_get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1500,8 +1499,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_troubleshooting_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1517,7 +1516,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1526,7 +1525,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1602,8 +1600,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [TroubleshootingResult] operation results. # - def begin_get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1620,8 +1618,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_troubleshooting_result_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_troubleshooting_result_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1637,7 +1635,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1646,7 +1644,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1723,8 +1720,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [FlowLogInformation] operation results. # - def begin_set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1742,8 +1739,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_flow_log_configuration_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_set_flow_log_configuration_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1760,7 +1757,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1769,7 +1766,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1846,8 +1842,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [FlowLogInformation] operation results. # - def begin_get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1865,8 +1861,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_flow_log_status_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_flow_log_status_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -1883,7 +1879,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1892,7 +1888,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1971,8 +1966,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ConnectivityInformation] operation results. # - def begin_check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1992,8 +1987,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_check_connectivity_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_check_connectivity_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -2012,7 +2007,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -2021,7 +2016,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2099,8 +2093,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [AzureReachabilityReport] operation results. # - def begin_get_azure_reachability_report(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_azure_reachability_report(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2119,8 +2113,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_azure_reachability_report_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_get_azure_reachability_report_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -2138,7 +2132,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -2147,7 +2141,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2224,8 +2217,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [AvailableProvidersList] operation results. # - def begin_list_available_providers(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - response = begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_list_available_providers(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + response = begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2243,8 +2236,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_available_providers_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers = nil) - begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers).value! + def begin_list_available_providers_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) + begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end # @@ -2261,7 +2254,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers = nil) + def begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -2270,7 +2263,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/packet_captures.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/packet_captures.rb index 0e5007038..25d196526 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/packet_captures.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/packet_captures.rb @@ -37,8 +37,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [PacketCaptureResult] operation results. # - def create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) + def create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [PacketCaptureResult] operation results. # - def get(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def get_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -123,6 +123,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -216,8 +217,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -231,9 +232,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -260,8 +261,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [PacketCaptureQueryStatusResult] operation results. # - def get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -277,9 +278,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request - promise = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers) + promise = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -306,8 +307,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [PacketCaptureListResult] operation results. # - def list(resource_group_name, network_watcher_name, custom_headers = nil) - response = list_async(resource_group_name, network_watcher_name, custom_headers).value! + def list(resource_group_name, network_watcher_name, custom_headers:nil) + response = list_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -322,8 +323,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_watcher_name, custom_headers = nil) - list_async(resource_group_name, network_watcher_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil) + list_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value! end # @@ -337,7 +338,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_watcher_name, custom_headers = nil) + def list_async(resource_group_name, network_watcher_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -345,6 +346,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -402,8 +404,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [PacketCaptureResult] operation results. # - def begin_create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def begin_create(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -420,8 +422,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:custom_headers).value! end # @@ -437,7 +439,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -447,7 +449,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -510,8 +511,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_delete(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -526,8 +527,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -541,7 +542,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -550,6 +551,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -594,8 +596,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_stop(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! nil end @@ -610,8 +612,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -625,7 +627,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_stop_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -634,6 +636,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -681,8 +684,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [PacketCaptureQueryStatusResult] operation results. # - def begin_get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - response = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_get_status(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + response = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -699,8 +702,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_status_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) - begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers).value! + def begin_get_status_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) + begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end # @@ -716,7 +719,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers = nil) + def begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? @@ -725,6 +728,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/public_ipaddresses.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/public_ipaddresses.rb index 30e76f484..6495d0dc9 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/public_ipaddresses.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/public_ipaddresses.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers) + promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [PublicIPAddress] operation results. # - def get(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,8 +89,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, public_ip_address_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, public_ip_address_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, public_ip_address_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [PublicIPAddress] operation results. # - def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -235,12 +236,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -321,13 +323,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -381,8 +384,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, public_ip_address_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete(resource_group_name, public_ip_address_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! nil end @@ -396,8 +399,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers = nil) - begin_delete_async(resource_group_name, public_ip_address_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, public_ip_address_name, custom_headers:nil) + begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:custom_headers).value! end # @@ -410,7 +413,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) + def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -418,6 +421,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -464,8 +468,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [PublicIPAddress] operation results. # - def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,8 +485,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:custom_headers).value! end # @@ -497,7 +501,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, public_ip_address_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -506,7 +510,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -579,8 +582,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [PublicIPAddressListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -594,8 +597,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -608,11 +611,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -666,8 +670,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [PublicIPAddressListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -681,8 +685,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -695,11 +699,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -752,12 +757,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -773,12 +778,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [PublicIPAddressListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_filter_rules.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_filter_rules.rb index a4075eb2f..1daf28914 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_filter_rules.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_filter_rules.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - response = delete_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def delete(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + response = delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_filter_name, rule_name, custom_headers = nil) + def delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilterRule] operation results. # - def get(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - response = get_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def get(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + response = get_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - get_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + get_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_filter_name, rule_name, custom_headers = nil) + def get_async(resource_group_name, route_filter_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilterRule] operation results. # - def create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilterRule] operation results. # - def update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -237,9 +238,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers) + promise = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -265,8 +266,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_by_route_filter(resource_group_name, route_filter_name, custom_headers = nil) - first_page = list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers) + def list_by_route_filter(resource_group_name, route_filter_name, custom_headers:nil) + first_page = list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers:custom_headers) first_page.get_all_items end @@ -280,8 +281,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_route_filter_with_http_info(resource_group_name, route_filter_name, custom_headers = nil) - list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers).value! + def list_by_route_filter_with_http_info(resource_group_name, route_filter_name, custom_headers:nil) + list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! end # @@ -294,7 +295,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers = nil) + def list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -302,6 +303,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -356,8 +358,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def begin_delete(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! nil end @@ -372,8 +374,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_filter_name, rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:custom_headers).value! end # @@ -387,7 +389,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_filter_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -396,6 +398,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -443,8 +446,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilterRule] operation results. # - def begin_create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -461,8 +464,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! end # @@ -478,7 +481,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -488,7 +491,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -564,8 +566,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilterRule] operation results. # - def begin_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_update(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -582,8 +584,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) - begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) + begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:custom_headers).value! end # @@ -599,7 +601,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -609,7 +611,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -672,8 +673,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilterRuleListResult] operation results. # - def list_by_route_filter_next(next_page_link, custom_headers = nil) - response = list_by_route_filter_next_async(next_page_link, custom_headers).value! + def list_by_route_filter_next(next_page_link, custom_headers:nil) + response = list_by_route_filter_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -687,8 +688,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_route_filter_next_with_http_info(next_page_link, custom_headers = nil) - list_by_route_filter_next_async(next_page_link, custom_headers).value! + def list_by_route_filter_next_with_http_info(next_page_link, custom_headers:nil) + list_by_route_filter_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -701,11 +702,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_route_filter_next_async(next_page_link, custom_headers = nil) + def list_by_route_filter_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -760,12 +762,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [RouteFilterRuleListResult] which provide lazy access to pages of the # response. # - def list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers = nil) - response = list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers).value! + def list_by_route_filter_as_lazy(resource_group_name, route_filter_name, custom_headers:nil) + response = list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_route_filter_next_async(next_page_link, custom_headers) + list_by_route_filter_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_filters.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_filters.rb index 3c438629a..a10e6719b 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_filters.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_filters.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_filter_name, custom_headers = nil) - response = delete_async(resource_group_name, route_filter_name, custom_headers).value! + def delete(resource_group_name, route_filter_name, custom_headers:nil) + response = delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_filter_name, custom_headers = nil) + def delete_async(resource_group_name, route_filter_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_filter_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -74,8 +74,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilter] operation results. # - def get(resource_group_name, route_filter_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, route_filter_name, expand, custom_headers).value! + def get(resource_group_name, route_filter_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, route_filter_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_filter_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, route_filter_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, route_filter_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, route_filter_name, expand:expand, custom_headers:custom_headers).value! end # @@ -107,7 +107,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_filter_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, route_filter_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -171,8 +172,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilter] operation results. # - def create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -187,9 +188,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilter] operation results. # - def update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -233,9 +234,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers) + promise = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -260,8 +261,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -274,8 +275,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -287,13 +288,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -346,8 +348,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -359,8 +361,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -371,12 +373,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -430,8 +433,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_filter_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_filter_name, custom_headers).value! + def begin_delete(resource_group_name, route_filter_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! nil end @@ -445,8 +448,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_filter_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_filter_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_filter_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! end # @@ -459,7 +462,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_filter_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_filter_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -467,6 +470,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -513,8 +517,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilter] operation results. # - def begin_create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -530,8 +534,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! end # @@ -546,7 +550,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'route_filter_parameters is nil' if route_filter_parameters.nil? @@ -555,7 +559,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -630,8 +633,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilter] operation results. # - def begin_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -647,8 +650,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) - begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) + begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! end # @@ -663,7 +666,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers = nil) + def begin_update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'route_filter_parameters is nil' if route_filter_parameters.nil? @@ -672,7 +675,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -735,8 +737,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilterListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -750,8 +752,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -764,11 +766,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -822,8 +825,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteFilterListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -837,8 +840,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -851,11 +854,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -909,12 +913,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [RouteFilterListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -929,12 +933,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [RouteFilterListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_tables.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_tables.rb index bc224d5a8..a4f56f3e0 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_tables.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/route_tables.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, custom_headers).value! + def delete(resource_group_name, route_table_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteTable] operation results. # - def get(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,8 +89,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, route_table_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, route_table_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, route_table_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteTable] operation results. # - def create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -211,8 +212,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -225,8 +226,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -238,13 +239,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -297,8 +299,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -310,8 +312,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -322,12 +324,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -381,8 +384,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! nil end @@ -396,8 +399,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -410,7 +413,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -418,6 +421,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -464,8 +468,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteTable] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,8 +485,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:custom_headers).value! end # @@ -497,7 +501,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -506,7 +510,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -579,8 +582,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteTableListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -594,8 +597,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -608,11 +611,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -666,8 +670,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteTableListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -681,8 +685,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -695,11 +699,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -753,12 +758,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -773,12 +778,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [RouteTableListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/routes.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/routes.rb index 1613f0932..c1ebc64da 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/routes.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/routes.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers) + promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -75,8 +75,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Route] operation results. # - def get(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -91,8 +91,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - get_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def get_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + get_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -106,7 +106,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def get_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -115,6 +115,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -172,8 +173,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Route] operation results. # - def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -189,9 +190,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,8 +218,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, route_table_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers) + def list(resource_group_name, route_table_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers:custom_headers) first_page.get_all_items end @@ -232,8 +233,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, route_table_name, custom_headers = nil) - list_async(resource_group_name, route_table_name, custom_headers).value! + def list_with_http_info(resource_group_name, route_table_name, custom_headers:nil) + list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! end # @@ -246,7 +247,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, route_table_name, custom_headers = nil) + def list_async(resource_group_name, route_table_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -254,6 +255,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, route_table_name, route_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete(resource_group_name, route_table_name, route_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! nil end @@ -324,8 +326,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers = nil) - begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, route_table_name, route_name, custom_headers:nil) + begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:custom_headers).value! end # @@ -339,7 +341,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil) + def begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -348,6 +350,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +398,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Route] operation results. # - def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -413,8 +416,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:custom_headers).value! end # @@ -430,7 +433,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? @@ -440,7 +443,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -513,8 +515,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -528,8 +530,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -542,11 +544,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -600,12 +603,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [RouteListResult] which provide lazy access to pages of the response. # - def list_as_lazy(resource_group_name, route_table_name, custom_headers = nil) - response = list_async(resource_group_name, route_table_name, custom_headers).value! + def list_as_lazy(resource_group_name, route_table_name, custom_headers:nil) + response = list_async(resource_group_name, route_table_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/security_rules.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/security_rules.rb index c2a8e8b52..acdff925e 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/security_rules.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/security_rules.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -50,9 +50,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -78,8 +78,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [SecurityRule] operation results. # - def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -95,8 +95,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def get_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -120,6 +120,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -178,8 +179,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [SecurityRule] operation results. # - def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -196,9 +197,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -225,8 +226,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, network_security_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers) + def list(resource_group_name, network_security_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -241,8 +242,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil) - list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, network_security_group_name, custom_headers:nil) + list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! end # @@ -256,7 +257,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, network_security_group_name, custom_headers = nil) + def list_async(resource_group_name, network_security_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -264,6 +265,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -319,8 +321,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! nil end @@ -336,8 +338,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end # @@ -352,7 +354,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -361,6 +363,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -409,8 +412,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [SecurityRule] operation results. # - def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -428,8 +431,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:custom_headers).value! end # @@ -446,7 +449,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? @@ -456,7 +459,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -529,8 +531,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [SecurityRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -544,8 +546,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -558,11 +560,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -618,12 +621,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [SecurityRuleListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, network_security_group_name, custom_headers = nil) - response = list_async(resource_group_name, network_security_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, network_security_group_name, custom_headers:nil) + response = list_async(resource_group_name, network_security_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/subnets.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/subnets.rb index 3fbf2edfb..fa1293b1c 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/subnets.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/subnets.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -48,9 +48,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -76,8 +76,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Subnet] operation results. # - def get(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -93,8 +93,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, subnet_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, subnet_name, expand:expand, custom_headers:custom_headers).value! end # @@ -109,7 +109,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, subnet_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, subnet_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -118,6 +118,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -175,8 +176,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Subnet] operation results. # - def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -192,9 +193,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -235,8 +236,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -249,7 +250,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -257,6 +258,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -311,8 +313,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! nil end @@ -327,8 +329,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value! end # @@ -342,7 +344,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -351,6 +353,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -398,8 +401,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Subnet] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -416,8 +419,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:custom_headers).value! end # @@ -433,7 +436,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? @@ -443,7 +446,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -516,8 +518,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [SubnetListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -531,8 +533,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -545,11 +547,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -604,12 +607,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [SubnetListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/usages.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/usages.rb index 6f679a543..531d78596 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/usages.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/usages.rb @@ -33,8 +33,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -47,8 +47,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._ ]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._ ]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -68,6 +68,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -122,8 +123,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [UsagesListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -137,8 +138,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -151,11 +152,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -209,12 +211,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [UsagesListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb index 3c28c5b78..b391c6926 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb @@ -38,8 +38,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,9 +55,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -84,8 +84,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -100,8 +100,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -115,7 +115,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -123,6 +123,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -176,8 +177,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -191,9 +192,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ConnectionSharedKey] operation results. # - def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -241,9 +242,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -272,8 +273,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ConnectionSharedKey] operation results. # - def get_shared_key(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_shared_key(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -290,8 +291,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -307,7 +308,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -315,6 +316,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -369,8 +371,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -384,8 +386,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -398,13 +400,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -466,8 +469,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ConnectionResetSharedKey] operation results. # - def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -484,9 +487,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request - promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers) + promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -516,8 +519,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkGatewayConnection] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -535,8 +538,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -553,7 +556,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -562,7 +565,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -635,8 +637,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end @@ -651,8 +653,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! end # @@ -666,7 +668,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -674,6 +676,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -724,8 +727,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ConnectionSharedKey] operation results. # - def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -745,8 +748,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_set_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -765,7 +768,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -774,7 +777,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -854,8 +856,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [ConnectionResetSharedKey] operation results. # - def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -876,8 +878,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def begin_reset_shared_key_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -897,7 +899,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -906,7 +908,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -970,8 +971,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkGatewayConnectionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -986,8 +987,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1001,11 +1002,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1060,12 +1062,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [VirtualNetworkGatewayConnectionListResult] which provide lazy access # to pages of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb index aacd1ffbf..0dff4708d 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb @@ -37,8 +37,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkGateway] operation results. # - def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,9 +54,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkGateway] operation results. # - def get(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -122,6 +122,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -175,8 +176,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -190,9 +191,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -215,8 +216,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -229,8 +230,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -242,13 +243,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -304,8 +306,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_connections(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - first_page = list_connections_as_lazy(resource_group_name, virtual_network_gateway_name, custom_headers) + def list_connections(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + first_page = list_connections_as_lazy(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) first_page.get_all_items end @@ -320,8 +322,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_connections_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def list_connections_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -335,7 +337,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -343,6 +345,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -401,8 +404,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkGateway] operation results. # - def reset(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - response = reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def reset(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + response = reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -418,9 +421,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) + def reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) # Send request - promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers) + promise = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -450,8 +453,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [String] operation results. # - def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -467,9 +470,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -506,8 +509,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [String] operation results. # - def generate_vpn_profile(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def generate_vpn_profile(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -523,9 +526,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) # Send request - promise = begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers) + promise = begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -561,8 +564,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [String] operation results. # - def get_vpn_profile_package_url(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_vpn_profile_package_url(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -576,9 +579,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -613,8 +616,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [BgpPeerStatusListResult] operation results. # - def get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - response = get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + response = get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -629,9 +632,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) + def get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) # Send request - promise = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers) + promise = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -658,8 +661,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [String] operation results. # - def supported_vpn_devices(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = supported_vpn_devices_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def supported_vpn_devices(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = supported_vpn_devices_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -674,8 +677,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def supported_vpn_devices_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - supported_vpn_devices_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def supported_vpn_devices_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + supported_vpn_devices_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -689,7 +692,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def supported_vpn_devices_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def supported_vpn_devices_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -697,6 +700,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -760,8 +764,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [GatewayRouteListResult] operation results. # - def get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -775,9 +779,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) # Send request - promise = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers) + promise = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -806,8 +810,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [GatewayRouteListResult] operation results. # - def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -822,9 +826,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) + def get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) # Send request - promise = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers) + promise = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -854,8 +858,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [String] operation results. # - def vpn_device_configuration_script(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - response = vpn_device_configuration_script_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def vpn_device_configuration_script(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + response = vpn_device_configuration_script_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -873,8 +877,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def vpn_device_configuration_script_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) - vpn_device_configuration_script_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers).value! + def vpn_device_configuration_script_with_http_info(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) + vpn_device_configuration_script_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -891,7 +895,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def vpn_device_configuration_script_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers = nil) + def vpn_device_configuration_script_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -900,7 +904,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -973,8 +976,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkGateway] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -991,8 +994,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -1008,7 +1011,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1017,7 +1020,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1090,8 +1092,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! nil end @@ -1106,8 +1108,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -1121,7 +1123,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1129,6 +1131,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1177,8 +1180,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkGateway] operation results. # - def begin_reset(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - response = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def begin_reset(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + response = begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1196,8 +1199,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) - begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip, custom_headers).value! + def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) + begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! end # @@ -1214,7 +1217,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) + def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1222,6 +1225,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1280,8 +1284,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [String] operation results. # - def begin_generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1299,8 +1303,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_generatevpnclientpackage_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -1317,7 +1321,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1326,7 +1330,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1400,8 +1403,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [String] operation results. # - def begin_generate_vpn_profile(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - response = begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_generate_vpn_profile(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + response = begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1419,8 +1422,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_generate_vpn_profile_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) - begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers).value! + def begin_generate_vpn_profile_with_http_info(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) + begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! end # @@ -1437,7 +1440,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers = nil) + def begin_generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1446,7 +1449,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1519,8 +1521,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [String] operation results. # - def begin_get_vpn_profile_package_url(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_get_vpn_profile_package_url(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1537,8 +1539,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_vpn_profile_package_url_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_get_vpn_profile_package_url_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -1554,7 +1556,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1562,6 +1564,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1625,8 +1628,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [BgpPeerStatusListResult] operation results. # - def begin_get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - response = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_bgp_peer_status(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + response = begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1642,8 +1645,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) - begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) + begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:peer, custom_headers:custom_headers).value! end # @@ -1658,7 +1661,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) + def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1666,6 +1669,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1722,8 +1726,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [GatewayRouteListResult] operation results. # - def begin_get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_get_learned_routes(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1739,8 +1743,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! end # @@ -1755,7 +1759,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) + def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1763,6 +1767,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1820,8 +1825,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [GatewayRouteListResult] operation results. # - def begin_get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - response = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + response = begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1838,8 +1843,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_advertised_routes_with_http_info(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) - begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers).value! + def begin_get_advertised_routes_with_http_info(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) + begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! end # @@ -1855,7 +1860,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers = nil) + def begin_get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'peer is nil' if peer.nil? @@ -1864,6 +1869,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1918,8 +1924,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkGatewayListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1933,8 +1939,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1947,11 +1953,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2005,8 +2012,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkGatewayListConnectionsResult] operation results. # - def list_connections_next(next_page_link, custom_headers = nil) - response = list_connections_next_async(next_page_link, custom_headers).value! + def list_connections_next(next_page_link, custom_headers:nil) + response = list_connections_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2020,8 +2027,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_connections_next_with_http_info(next_page_link, custom_headers = nil) - list_connections_next_async(next_page_link, custom_headers).value! + def list_connections_next_with_http_info(next_page_link, custom_headers:nil) + list_connections_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2034,11 +2041,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_connections_next_async(next_page_link, custom_headers = nil) + def list_connections_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2092,12 +2100,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [VirtualNetworkGatewayListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2115,12 +2123,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [VirtualNetworkGatewayListConnectionsResult] which provide lazy # access to pages of the response. # - def list_connections_as_lazy(resource_group_name, virtual_network_gateway_name, custom_headers = nil) - response = list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers).value! + def list_connections_as_lazy(resource_group_name, virtual_network_gateway_name, custom_headers:nil) + response = list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_connections_next_async(next_page_link, custom_headers) + list_connections_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_peerings.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_peerings.rb index da3d0fb0e..11c1f3e4c 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_peerings.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_peerings.rb @@ -34,8 +34,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! nil end @@ -50,9 +50,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -78,8 +78,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkPeering] operation results. # - def get(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def get(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -95,8 +95,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -120,6 +120,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -177,8 +178,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkPeering] operation results. # - def create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -194,9 +195,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -222,8 +223,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -237,8 +238,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -251,7 +252,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -259,6 +260,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +316,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! nil end @@ -331,8 +333,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:custom_headers).value! end # @@ -347,7 +349,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -356,6 +358,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -403,8 +406,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkPeering] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -421,8 +424,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:custom_headers).value! end # @@ -438,7 +441,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? @@ -448,7 +451,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -521,8 +523,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkPeeringListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -536,8 +538,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -550,11 +552,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -609,12 +612,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [VirtualNetworkPeeringListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_networks.rb b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_networks.rb index 3fd28a86d..219d018fa 100644 --- a/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_networks.rb +++ b/management/azure_mgmt_network/lib/2017-09-01/generated/azure_mgmt_network/virtual_networks.rb @@ -32,8 +32,8 @@ module Azure::Network::Mgmt::V2017_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -46,9 +46,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def delete_async(resource_group_name, virtual_network_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers) + promise = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -73,8 +73,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetwork] operation results. # - def get(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,8 +89,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, virtual_network_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, virtual_network_name, expand:expand, custom_headers:custom_headers).value! end # @@ -104,7 +104,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, virtual_network_name, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -112,6 +112,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetwork] operation results. # - def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -184,9 +185,9 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -223,8 +224,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -235,12 +236,13 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +296,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -308,8 +310,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -321,13 +323,14 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -383,8 +386,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [IPAddressAvailabilityResult] operation results. # - def check_ipaddress_availability(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) - response = check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value! + def check_ipaddress_availability(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) + response = check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:ip_address, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -399,8 +402,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_ipaddress_availability_with_http_info(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) - check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address, custom_headers).value! + def check_ipaddress_availability_with_http_info(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) + check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:ip_address, custom_headers:custom_headers).value! end # @@ -414,7 +417,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) + def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -422,6 +425,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -476,8 +480,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Array] operation results. # - def list_usage(resource_group_name, virtual_network_name, custom_headers = nil) - first_page = list_usage_as_lazy(resource_group_name, virtual_network_name, custom_headers) + def list_usage(resource_group_name, virtual_network_name, custom_headers:nil) + first_page = list_usage_as_lazy(resource_group_name, virtual_network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -491,8 +495,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usage_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - list_usage_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_usage_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + list_usage_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -505,7 +509,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usage_async(resource_group_name, virtual_network_name, custom_headers = nil) + def list_usage_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -513,6 +517,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -566,8 +571,8 @@ module Azure::Network::Mgmt::V2017_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_network_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete(resource_group_name, virtual_network_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! nil end @@ -581,8 +586,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_network_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, virtual_network_name, custom_headers:nil) + begin_delete_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! end # @@ -595,7 +600,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_network_name, custom_headers = nil) + def begin_delete_async(resource_group_name, virtual_network_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -603,6 +608,7 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -649,8 +655,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetwork] operation results. # - def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -666,8 +672,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, virtual_network_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:custom_headers).value! end # @@ -682,7 +688,7 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, virtual_network_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -691,7 +697,6 @@ module Azure::Network::Mgmt::V2017_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -764,8 +769,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -779,8 +784,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -793,11 +798,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -851,8 +857,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -866,8 +872,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -880,11 +886,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -938,8 +945,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [VirtualNetworkListUsageResult] operation results. # - def list_usage_next(next_page_link, custom_headers = nil) - response = list_usage_next_async(next_page_link, custom_headers).value! + def list_usage_next(next_page_link, custom_headers:nil) + response = list_usage_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -953,8 +960,8 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usage_next_with_http_info(next_page_link, custom_headers = nil) - list_usage_next_async(next_page_link, custom_headers).value! + def list_usage_next_with_http_info(next_page_link, custom_headers:nil) + list_usage_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -967,11 +974,12 @@ module Azure::Network::Mgmt::V2017_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usage_next_async(next_page_link, custom_headers = nil) + def list_usage_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1024,12 +1032,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1045,12 +1053,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [VirtualNetworkListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1067,12 +1075,12 @@ module Azure::Network::Mgmt::V2017_09_01 # @return [VirtualNetworkListUsageResult] which provide lazy access to pages of # the response. # - def list_usage_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil) - response = list_usage_async(resource_group_name, virtual_network_name, custom_headers).value! + def list_usage_as_lazy(resource_group_name, virtual_network_name, custom_headers:nil) + response = list_usage_async(resource_group_name, virtual_network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_usage_next_async(next_page_link, custom_headers) + list_usage_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_network/lib/profiles/latest/modules/network_profile_module.rb b/management/azure_mgmt_network/lib/profiles/latest/modules/network_profile_module.rb index 1e073b013..27fc53e15 100644 --- a/management/azure_mgmt_network/lib/profiles/latest/modules/network_profile_module.rb +++ b/management/azure_mgmt_network/lib/profiles/latest/modules/network_profile_module.rb @@ -330,46 +330,46 @@ module Azure::Network::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Network::Mgmt::V2017_09_01::NetworkManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Network::Mgmt::V2017_09_01::NetworkManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @application_gateways = client_0.application_gateways - @application_security_groups = client_0.application_security_groups - @available_endpoint_services = client_0.available_endpoint_services - @express_route_circuit_authorizations = client_0.express_route_circuit_authorizations - @express_route_circuit_peerings = client_0.express_route_circuit_peerings - @express_route_circuits = client_0.express_route_circuits - @express_route_service_providers = client_0.express_route_service_providers - @load_balancers = client_0.load_balancers - @load_balancer_backend_address_pools = client_0.load_balancer_backend_address_pools - @load_balancer_frontend_ipconfigurations = client_0.load_balancer_frontend_ipconfigurations - @inbound_nat_rules = client_0.inbound_nat_rules - @load_balancer_load_balancing_rules = client_0.load_balancer_load_balancing_rules - @load_balancer_network_interfaces = client_0.load_balancer_network_interfaces - @load_balancer_probes = client_0.load_balancer_probes - @network_interfaces = client_0.network_interfaces - @network_interface_ipconfigurations = client_0.network_interface_ipconfigurations - @network_interface_load_balancers = client_0.network_interface_load_balancers - @network_security_groups = client_0.network_security_groups - @security_rules = client_0.security_rules - @default_security_rules = client_0.default_security_rules - @network_watchers = client_0.network_watchers - @packet_captures = client_0.packet_captures - @public_ipaddresses = client_0.public_ipaddresses - @route_filters = client_0.route_filters - @route_filter_rules = client_0.route_filter_rules - @bgp_service_communities = client_0.bgp_service_communities - @route_tables = client_0.route_tables - @routes = client_0.routes - @usages = client_0.usages - @virtual_networks = client_0.virtual_networks - @subnets = client_0.subnets - @virtual_network_peerings = client_0.virtual_network_peerings - @virtual_network_gateways = client_0.virtual_network_gateways - @virtual_network_gateway_connections = client_0.virtual_network_gateway_connections - @local_network_gateways = client_0.local_network_gateways + add_telemetry(@client_0) + @application_gateways = @client_0.application_gateways + @application_security_groups = @client_0.application_security_groups + @available_endpoint_services = @client_0.available_endpoint_services + @express_route_circuit_authorizations = @client_0.express_route_circuit_authorizations + @express_route_circuit_peerings = @client_0.express_route_circuit_peerings + @express_route_circuits = @client_0.express_route_circuits + @express_route_service_providers = @client_0.express_route_service_providers + @load_balancers = @client_0.load_balancers + @load_balancer_backend_address_pools = @client_0.load_balancer_backend_address_pools + @load_balancer_frontend_ipconfigurations = @client_0.load_balancer_frontend_ipconfigurations + @inbound_nat_rules = @client_0.inbound_nat_rules + @load_balancer_load_balancing_rules = @client_0.load_balancer_load_balancing_rules + @load_balancer_network_interfaces = @client_0.load_balancer_network_interfaces + @load_balancer_probes = @client_0.load_balancer_probes + @network_interfaces = @client_0.network_interfaces + @network_interface_ipconfigurations = @client_0.network_interface_ipconfigurations + @network_interface_load_balancers = @client_0.network_interface_load_balancers + @network_security_groups = @client_0.network_security_groups + @security_rules = @client_0.security_rules + @default_security_rules = @client_0.default_security_rules + @network_watchers = @client_0.network_watchers + @packet_captures = @client_0.packet_captures + @public_ipaddresses = @client_0.public_ipaddresses + @route_filters = @client_0.route_filters + @route_filter_rules = @client_0.route_filter_rules + @bgp_service_communities = @client_0.bgp_service_communities + @route_tables = @client_0.route_tables + @routes = @client_0.routes + @usages = @client_0.usages + @virtual_networks = @client_0.virtual_networks + @subnets = @client_0.subnets + @virtual_network_peerings = @client_0.virtual_network_peerings + @virtual_network_gateways = @client_0.virtual_network_gateways + @virtual_network_gateway_connections = @client_0.virtual_network_gateway_connections + @local_network_gateways = @client_0.local_network_gateways @model_classes = ModelClasses.new end @@ -379,6 +379,14 @@ module Azure::Network::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_network/lib/profiles/v2017_03_09/modules/network_profile_module.rb b/management/azure_mgmt_network/lib/profiles/v2017_03_09/modules/network_profile_module.rb index 559e93dfb..22665b207 100644 --- a/management/azure_mgmt_network/lib/profiles/v2017_03_09/modules/network_profile_module.rb +++ b/management/azure_mgmt_network/lib/profiles/v2017_03_09/modules/network_profile_module.rb @@ -165,29 +165,29 @@ module Azure::Network::Profiles::V2017_03_09 @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Network::Mgmt::V2015_06_15::NetworkManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Network::Mgmt::V2015_06_15::NetworkManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @application_gateways = client_0.application_gateways - @express_route_circuit_authorizations = client_0.express_route_circuit_authorizations - @express_route_circuit_peerings = client_0.express_route_circuit_peerings - @express_route_circuits = client_0.express_route_circuits - @express_route_service_providers = client_0.express_route_service_providers - @load_balancers = client_0.load_balancers - @network_interfaces = client_0.network_interfaces - @network_security_groups = client_0.network_security_groups - @security_rules = client_0.security_rules - @public_ipaddresses = client_0.public_ipaddresses - @route_tables = client_0.route_tables - @routes = client_0.routes - @usages = client_0.usages - @virtual_networks = client_0.virtual_networks - @subnets = client_0.subnets - @virtual_network_gateways = client_0.virtual_network_gateways - @virtual_network_gateway_connections = client_0.virtual_network_gateway_connections - @local_network_gateways = client_0.local_network_gateways + add_telemetry(@client_0) + @application_gateways = @client_0.application_gateways + @express_route_circuit_authorizations = @client_0.express_route_circuit_authorizations + @express_route_circuit_peerings = @client_0.express_route_circuit_peerings + @express_route_circuits = @client_0.express_route_circuits + @express_route_service_providers = @client_0.express_route_service_providers + @load_balancers = @client_0.load_balancers + @network_interfaces = @client_0.network_interfaces + @network_security_groups = @client_0.network_security_groups + @security_rules = @client_0.security_rules + @public_ipaddresses = @client_0.public_ipaddresses + @route_tables = @client_0.route_tables + @routes = @client_0.routes + @usages = @client_0.usages + @virtual_networks = @client_0.virtual_networks + @subnets = @client_0.subnets + @virtual_network_gateways = @client_0.virtual_network_gateways + @virtual_network_gateway_connections = @client_0.virtual_network_gateway_connections + @local_network_gateways = @client_0.local_network_gateways @model_classes = ModelClasses.new end @@ -197,6 +197,14 @@ module Azure::Network::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb b/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb index 28a2227c1..2d494c889 100644 --- a/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb +++ b/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb @@ -33,8 +33,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [CheckNameAvailabilityResponse] operation results. # - def check_availability(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = check_availability_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def check_availability(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = check_availability_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_availability_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - check_availability_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def check_availability_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + check_availability_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_availability_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def check_availability_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -75,7 +75,6 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/name.rb b/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/name.rb index 9804204cd..346c24502 100644 --- a/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/name.rb +++ b/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/name.rb @@ -33,8 +33,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [CheckNameAvailabilityResponse] operation results. # - def check_availability(parameters, custom_headers = nil) - response = check_availability_async(parameters, custom_headers).value! + def check_availability(parameters, custom_headers:nil) + response = check_availability_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_availability_with_http_info(parameters, custom_headers = nil) - check_availability_async(parameters, custom_headers).value! + def check_availability_with_http_info(parameters, custom_headers:nil) + check_availability_async(parameters, custom_headers:custom_headers).value! end # @@ -66,14 +66,13 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_availability_async(parameters, custom_headers = nil) + def check_availability_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb b/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb index 6f95aba4f..703adf038 100644 --- a/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb +++ b/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb @@ -32,8 +32,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [CheckAvailabilityResult] operation results. # - def check_availability(parameters, custom_headers = nil) - response = check_availability_async(parameters, custom_headers).value! + def check_availability(parameters, custom_headers:nil) + response = check_availability_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_availability_with_http_info(parameters, custom_headers = nil) - check_availability_async(parameters, custom_headers).value! + def check_availability_with_http_info(parameters, custom_headers:nil) + check_availability_async(parameters, custom_headers:custom_headers).value! end # @@ -63,14 +63,13 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_availability_async(parameters, custom_headers = nil) + def check_availability_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -136,8 +135,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [NamespaceResource] operation results. # - def create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -154,8 +153,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -171,7 +170,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -180,7 +179,6 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -255,8 +253,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [NamespaceResource] operation results. # - def patch(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = patch_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def patch(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = patch_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -272,8 +270,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def patch_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - patch_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def patch_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + patch_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -288,7 +286,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def patch_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def patch_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -297,7 +295,6 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -359,8 +356,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, namespace_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, custom_headers).value! + def delete(resource_group_name, namespace_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -373,9 +370,9 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, namespace_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, namespace_name, custom_headers) + promise = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -399,8 +396,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [NamespaceResource] operation results. # - def get(resource_group_name, namespace_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, custom_headers).value! + def get(resource_group_name, namespace_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -414,8 +411,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -428,7 +425,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -436,6 +433,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -493,8 +491,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -511,8 +509,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -528,7 +526,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil? @@ -538,7 +536,6 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -601,8 +598,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -617,8 +614,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -632,7 +629,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil? @@ -641,6 +638,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -686,8 +684,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -702,8 +700,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -717,7 +715,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil? @@ -726,6 +724,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -781,8 +780,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list(resource_group_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, custom_headers) + def list(resource_group_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -797,8 +796,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, custom_headers = nil) - list_async(resource_group_name, custom_headers).value! + def list_with_http_info(resource_group_name, custom_headers:nil) + list_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -812,13 +811,14 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, custom_headers = nil) + def list_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -872,8 +872,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_all(custom_headers = nil) - first_page = list_all_as_lazy(custom_headers) + def list_all(custom_headers:nil) + first_page = list_all_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -886,8 +886,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -899,12 +899,13 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -959,8 +960,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -974,8 +975,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -988,7 +989,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -996,6 +997,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1052,8 +1054,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [ResourceListKeys] operation results. # - def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1069,8 +1071,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -1085,7 +1087,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil? @@ -1094,6 +1096,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1152,8 +1155,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [ResourceListKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1171,8 +1174,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1189,7 +1192,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'authorization_rule_name is nil' if authorization_rule_name.nil? @@ -1199,7 +1202,6 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1262,8 +1264,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, namespace_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete(resource_group_name, namespace_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -1278,8 +1280,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -1293,7 +1295,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil) + def begin_delete_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1301,6 +1303,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1345,8 +1348,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [NamespaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1360,8 +1363,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1374,11 +1377,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1433,8 +1437,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [NamespaceListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1449,8 +1453,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1464,11 +1468,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1522,8 +1527,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [SharedAccessAuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1537,8 +1542,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1551,11 +1556,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1611,12 +1617,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # @return [NamespaceListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, custom_headers = nil) - response = list_async(resource_group_name, custom_headers).value! + def list_as_lazy(resource_group_name, custom_headers:nil) + response = list_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1632,12 +1638,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # @return [NamespaceListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all_as_lazy(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1654,12 +1660,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access # to pages of the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb b/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb index 196b60317..7685ab3a5 100644 --- a/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb +++ b/management/azure_mgmt_notification_hubs/lib/2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb @@ -32,8 +32,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [CheckAvailabilityResult] operation results. # - def check_availability(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = check_availability_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def check_availability(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = check_availability_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_availability_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - check_availability_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def check_availability_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + check_availability_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_availability_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def check_availability_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -72,7 +72,6 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -138,8 +137,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [NotificationHubResource] operation results. # - def create_or_update(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -156,8 +155,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers:custom_headers).value! end # @@ -173,7 +172,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, notification_hub_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil? @@ -183,7 +182,6 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -256,8 +254,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value! + def delete(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value! nil end @@ -272,8 +270,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value! end # @@ -287,7 +285,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil? @@ -296,6 +294,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -341,8 +340,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [NotificationHubResource] operation results. # - def get(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value! + def get(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -357,8 +356,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value! end # @@ -372,7 +371,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil? @@ -381,6 +380,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -439,8 +439,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -458,8 +458,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -476,7 +476,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil? @@ -487,7 +487,6 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -551,8 +550,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -568,8 +567,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -584,7 +583,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil? @@ -594,6 +593,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -640,8 +640,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -657,8 +657,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -673,7 +673,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil? @@ -683,6 +683,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -737,8 +738,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, namespace_name, custom_headers) + def list(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -752,8 +753,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_async(resource_group_name, namespace_name, custom_headers).value! + def list_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -766,7 +767,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, namespace_name, custom_headers = nil) + def list_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -774,6 +775,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -829,8 +831,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers) first_page.get_all_items end @@ -845,8 +847,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value! end # @@ -860,7 +862,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil? @@ -869,6 +871,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -926,8 +929,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [ResourceListKeys] operation results. # - def list_keys(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -944,8 +947,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -961,7 +964,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil? @@ -971,6 +974,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1031,8 +1035,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [ResourceListKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1052,8 +1056,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1072,7 +1076,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, notification_hub_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil? @@ -1083,7 +1087,6 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1147,8 +1150,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [PnsCredentialsResource] operation results. # - def get_pns_credentials(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) - response = get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value! + def get_pns_credentials(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) + response = get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1163,8 +1166,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_pns_credentials_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) - get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value! + def get_pns_credentials_with_http_info(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) + get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value! end # @@ -1178,7 +1181,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) + def get_pns_credentials_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'namespace_name is nil' if namespace_name.nil? fail ArgumentError, 'notification_hub_name is nil' if notification_hub_name.nil? @@ -1187,6 +1190,7 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1241,8 +1245,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [NotificationHubListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1256,8 +1260,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1270,11 +1274,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1328,8 +1333,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [SharedAccessAuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1343,8 +1348,8 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1357,11 +1362,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1416,12 +1422,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # @return [NotificationHubListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_async(resource_group_name, namespace_name, custom_headers).value! + def list_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1439,12 +1445,12 @@ module Azure::NotificationHubs::Mgmt::V2017_04_01 # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access # to pages of the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, notification_hub_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, notification_hub_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_notification_hubs/lib/profiles/latest/modules/notificationhubs_profile_module.rb b/management/azure_mgmt_notification_hubs/lib/profiles/latest/modules/notificationhubs_profile_module.rb index 13e202bb0..f45b6c21d 100644 --- a/management/azure_mgmt_notification_hubs/lib/profiles/latest/modules/notificationhubs_profile_module.rb +++ b/management/azure_mgmt_notification_hubs/lib/profiles/latest/modules/notificationhubs_profile_module.rb @@ -63,15 +63,15 @@ module Azure::NotificationHubs::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubsManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubsManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @namespaces = client_0.namespaces - @name = client_0.name - @notification_hubs = client_0.notification_hubs - @hubs = client_0.hubs + add_telemetry(@client_0) + @namespaces = @client_0.namespaces + @name = @client_0.name + @notification_hubs = @client_0.notification_hubs + @hubs = @client_0.hubs @model_classes = ModelClasses.new end @@ -81,6 +81,14 @@ module Azure::NotificationHubs::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/saved_searches.rb b/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/saved_searches.rb index 21a825f75..75ec75673 100644 --- a/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/saved_searches.rb +++ b/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/saved_searches.rb @@ -32,8 +32,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # will be added to the HTTP request. # # - def delete(resource_group_name, workspace_name, saved_search_name, custom_headers = nil) - response = delete_async(resource_group_name, workspace_name, saved_search_name, custom_headers).value! + def delete(resource_group_name, workspace_name, saved_search_name, custom_headers:nil) + response = delete_async(resource_group_name, workspace_name, saved_search_name, custom_headers:custom_headers).value! nil end @@ -49,8 +49,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, workspace_name, saved_search_name, custom_headers = nil) - delete_async(resource_group_name, workspace_name, saved_search_name, custom_headers).value! + def delete_with_http_info(resource_group_name, workspace_name, saved_search_name, custom_headers:nil) + delete_async(resource_group_name, workspace_name, saved_search_name, custom_headers:custom_headers).value! end # @@ -65,7 +65,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, workspace_name, saved_search_name, custom_headers = nil) + def delete_async(resource_group_name, workspace_name, saved_search_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -77,6 +77,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -124,8 +125,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [SavedSearch] operation results. # - def create_or_update(resource_group_name, workspace_name, saved_search_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, workspace_name, saved_search_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, workspace_name, saved_search_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, workspace_name, saved_search_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -142,8 +143,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, workspace_name, saved_search_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, workspace_name, saved_search_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, workspace_name, saved_search_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, workspace_name, saved_search_name, parameters, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, workspace_name, saved_search_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, workspace_name, saved_search_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -172,7 +173,6 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -237,8 +237,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [SavedSearch] operation results. # - def get(resource_group_name, workspace_name, saved_search_name, custom_headers = nil) - response = get_async(resource_group_name, workspace_name, saved_search_name, custom_headers).value! + def get(resource_group_name, workspace_name, saved_search_name, custom_headers:nil) + response = get_async(resource_group_name, workspace_name, saved_search_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -254,8 +254,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workspace_name, saved_search_name, custom_headers = nil) - get_async(resource_group_name, workspace_name, saved_search_name, custom_headers).value! + def get_with_http_info(resource_group_name, workspace_name, saved_search_name, custom_headers:nil) + get_async(resource_group_name, workspace_name, saved_search_name, custom_headers:custom_headers).value! end # @@ -270,7 +270,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workspace_name, saved_search_name, custom_headers = nil) + def get_async(resource_group_name, workspace_name, saved_search_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -282,6 +282,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -337,8 +338,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [SavedSearchesListResult] operation results. # - def list_by_workspace(resource_group_name, workspace_name, custom_headers = nil) - response = list_by_workspace_async(resource_group_name, workspace_name, custom_headers).value! + def list_by_workspace(resource_group_name, workspace_name, custom_headers:nil) + response = list_by_workspace_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -353,8 +354,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_workspace_with_http_info(resource_group_name, workspace_name, custom_headers = nil) - list_by_workspace_async(resource_group_name, workspace_name, custom_headers).value! + def list_by_workspace_with_http_info(resource_group_name, workspace_name, custom_headers:nil) + list_by_workspace_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! end # @@ -368,7 +369,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_workspace_async(resource_group_name, workspace_name, custom_headers = nil) + def list_by_workspace_async(resource_group_name, workspace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -379,6 +380,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -435,8 +437,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [SearchResultsResponse] operation results. # - def get_results(resource_group_name, workspace_name, saved_search_name, custom_headers = nil) - response = get_results_async(resource_group_name, workspace_name, saved_search_name, custom_headers).value! + def get_results(resource_group_name, workspace_name, saved_search_name, custom_headers:nil) + response = get_results_async(resource_group_name, workspace_name, saved_search_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -452,8 +454,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_results_with_http_info(resource_group_name, workspace_name, saved_search_name, custom_headers = nil) - get_results_async(resource_group_name, workspace_name, saved_search_name, custom_headers).value! + def get_results_with_http_info(resource_group_name, workspace_name, saved_search_name, custom_headers:nil) + get_results_async(resource_group_name, workspace_name, saved_search_name, custom_headers:custom_headers).value! end # @@ -468,7 +470,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_results_async(resource_group_name, workspace_name, saved_search_name, custom_headers = nil) + def get_results_async(resource_group_name, workspace_name, saved_search_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -480,6 +482,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/storage_insights.rb b/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/storage_insights.rb index e46b1425d..83f9c0987 100644 --- a/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/storage_insights.rb +++ b/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/storage_insights.rb @@ -37,8 +37,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [StorageInsight] operation results. # - def create_or_update(resource_group_name, workspace_name, storage_insight_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, workspace_name, storage_insight_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, workspace_name, storage_insight_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, workspace_name, storage_insight_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -58,8 +58,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, workspace_name, storage_insight_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, workspace_name, storage_insight_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, workspace_name, storage_insight_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, workspace_name, storage_insight_name, parameters, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, workspace_name, storage_insight_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, workspace_name, storage_insight_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -91,7 +91,6 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -168,8 +167,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [StorageInsight] operation results. # - def get(resource_group_name, workspace_name, storage_insight_name, custom_headers = nil) - response = get_async(resource_group_name, workspace_name, storage_insight_name, custom_headers).value! + def get(resource_group_name, workspace_name, storage_insight_name, custom_headers:nil) + response = get_async(resource_group_name, workspace_name, storage_insight_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -187,8 +186,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workspace_name, storage_insight_name, custom_headers = nil) - get_async(resource_group_name, workspace_name, storage_insight_name, custom_headers).value! + def get_with_http_info(resource_group_name, workspace_name, storage_insight_name, custom_headers:nil) + get_async(resource_group_name, workspace_name, storage_insight_name, custom_headers:custom_headers).value! end # @@ -205,7 +204,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workspace_name, storage_insight_name, custom_headers = nil) + def get_async(resource_group_name, workspace_name, storage_insight_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -217,6 +216,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -274,8 +274,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # will be added to the HTTP request. # # - def delete(resource_group_name, workspace_name, storage_insight_name, custom_headers = nil) - response = delete_async(resource_group_name, workspace_name, storage_insight_name, custom_headers).value! + def delete(resource_group_name, workspace_name, storage_insight_name, custom_headers:nil) + response = delete_async(resource_group_name, workspace_name, storage_insight_name, custom_headers:custom_headers).value! nil end @@ -293,8 +293,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, workspace_name, storage_insight_name, custom_headers = nil) - delete_async(resource_group_name, workspace_name, storage_insight_name, custom_headers).value! + def delete_with_http_info(resource_group_name, workspace_name, storage_insight_name, custom_headers:nil) + delete_async(resource_group_name, workspace_name, storage_insight_name, custom_headers:custom_headers).value! end # @@ -311,7 +311,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, workspace_name, storage_insight_name, custom_headers = nil) + def delete_async(resource_group_name, workspace_name, storage_insight_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -323,6 +323,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -369,8 +370,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Array] operation results. # - def list_by_workspace(resource_group_name, workspace_name, custom_headers = nil) - first_page = list_by_workspace_as_lazy(resource_group_name, workspace_name, custom_headers) + def list_by_workspace(resource_group_name, workspace_name, custom_headers:nil) + first_page = list_by_workspace_as_lazy(resource_group_name, workspace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -386,8 +387,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_workspace_with_http_info(resource_group_name, workspace_name, custom_headers = nil) - list_by_workspace_async(resource_group_name, workspace_name, custom_headers).value! + def list_by_workspace_with_http_info(resource_group_name, workspace_name, custom_headers:nil) + list_by_workspace_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! end # @@ -402,7 +403,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_workspace_async(resource_group_name, workspace_name, custom_headers = nil) + def list_by_workspace_async(resource_group_name, workspace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -413,6 +414,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -467,8 +469,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [StorageInsightListResult] operation results. # - def list_by_workspace_next(next_page_link, custom_headers = nil) - response = list_by_workspace_next_async(next_page_link, custom_headers).value! + def list_by_workspace_next(next_page_link, custom_headers:nil) + response = list_by_workspace_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -482,8 +484,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_workspace_next_with_http_info(next_page_link, custom_headers = nil) - list_by_workspace_next_async(next_page_link, custom_headers).value! + def list_by_workspace_next_with_http_info(next_page_link, custom_headers:nil) + list_by_workspace_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -496,11 +498,12 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_workspace_next_async(next_page_link, custom_headers = nil) + def list_by_workspace_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -557,12 +560,12 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # @return [StorageInsightListResult] which provide lazy access to pages of the # response. # - def list_by_workspace_as_lazy(resource_group_name, workspace_name, custom_headers = nil) - response = list_by_workspace_async(resource_group_name, workspace_name, custom_headers).value! + def list_by_workspace_as_lazy(resource_group_name, workspace_name, custom_headers:nil) + response = list_by_workspace_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_workspace_next_async(next_page_link, custom_headers) + list_by_workspace_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb b/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb index f1060f56e..7962b4828 100644 --- a/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb +++ b/management/azure_mgmt_operational_insights/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb @@ -31,8 +31,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Array] operation results. # - def list_link_targets(custom_headers = nil) - response = list_link_targets_async(custom_headers).value! + def list_link_targets(custom_headers:nil) + response = list_link_targets_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_link_targets_with_http_info(custom_headers = nil) - list_link_targets_async(custom_headers).value! + def list_link_targets_with_http_info(custom_headers:nil) + list_link_targets_async(custom_headers:custom_headers).value! end # @@ -60,12 +60,13 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_link_targets_async(custom_headers = nil) + def list_link_targets_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -137,8 +138,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [SearchGetSchemaResponse] operation results. # - def get_schema(resource_group_name, workspace_name, custom_headers = nil) - response = get_schema_async(resource_group_name, workspace_name, custom_headers).value! + def get_schema(resource_group_name, workspace_name, custom_headers:nil) + response = get_schema_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +154,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_schema_with_http_info(resource_group_name, workspace_name, custom_headers = nil) - get_schema_async(resource_group_name, workspace_name, custom_headers).value! + def get_schema_with_http_info(resource_group_name, workspace_name, custom_headers:nil) + get_schema_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! end # @@ -168,7 +169,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_schema_async(resource_group_name, workspace_name, custom_headers = nil) + def get_schema_async(resource_group_name, workspace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -179,6 +180,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -238,8 +240,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [SearchResultsResponse] operation results. # - def get_search_results(resource_group_name, workspace_name, parameters, custom_headers = nil) - response = get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers).value! + def get_search_results(resource_group_name, workspace_name, parameters, custom_headers:nil) + response = get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -255,9 +257,9 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers = nil) + def get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:nil) # Send request - promise = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers) + promise = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -286,8 +288,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [SearchResultsResponse] operation results. # - def update_search_results(resource_group_name, workspace_name, id, custom_headers = nil) - response = update_search_results_async(resource_group_name, workspace_name, id, custom_headers).value! + def update_search_results(resource_group_name, workspace_name, id, custom_headers:nil) + response = update_search_results_async(resource_group_name, workspace_name, id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -304,8 +306,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_search_results_with_http_info(resource_group_name, workspace_name, id, custom_headers = nil) - update_search_results_async(resource_group_name, workspace_name, id, custom_headers).value! + def update_search_results_with_http_info(resource_group_name, workspace_name, id, custom_headers:nil) + update_search_results_async(resource_group_name, workspace_name, id, custom_headers:custom_headers).value! end # @@ -321,7 +323,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_search_results_async(resource_group_name, workspace_name, id, custom_headers = nil) + def update_search_results_async(resource_group_name, workspace_name, id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -333,6 +335,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +395,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [SearchResultsResponse] operation results. # - def begin_get_search_results(resource_group_name, workspace_name, parameters, custom_headers = nil) - response = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers).value! + def begin_get_search_results(resource_group_name, workspace_name, parameters, custom_headers:nil) + response = begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -412,8 +415,8 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_search_results_with_http_info(resource_group_name, workspace_name, parameters, custom_headers = nil) - begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers).value! + def begin_get_search_results_with_http_info(resource_group_name, workspace_name, parameters, custom_headers:nil) + begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value! end # @@ -431,7 +434,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers = nil) + def begin_get_search_results_async(resource_group_name, workspace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -443,7 +446,6 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb b/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb index f3e597446..4c9d9f8d8 100644 --- a/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb +++ b/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb @@ -36,8 +36,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [DataSource] operation results. # - def create_or_update(resource_group_name, workspace_name, data_source_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, workspace_name, data_source_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -56,8 +56,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, workspace_name, data_source_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, workspace_name, data_source_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, workspace_name, data_source_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -88,7 +88,6 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -163,8 +162,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # will be added to the HTTP request. # # - def delete(resource_group_name, workspace_name, data_source_name, custom_headers = nil) - response = delete_async(resource_group_name, workspace_name, data_source_name, custom_headers).value! + def delete(resource_group_name, workspace_name, data_source_name, custom_headers:nil) + response = delete_async(resource_group_name, workspace_name, data_source_name, custom_headers:custom_headers).value! nil end @@ -181,8 +180,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, workspace_name, data_source_name, custom_headers = nil) - delete_async(resource_group_name, workspace_name, data_source_name, custom_headers).value! + def delete_with_http_info(resource_group_name, workspace_name, data_source_name, custom_headers:nil) + delete_async(resource_group_name, workspace_name, data_source_name, custom_headers:custom_headers).value! end # @@ -198,7 +197,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, workspace_name, data_source_name, custom_headers = nil) + def delete_async(resource_group_name, workspace_name, data_source_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -210,6 +209,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -257,8 +257,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [DataSource] operation results. # - def get(resource_group_name, workspace_name, data_source_name, custom_headers = nil) - response = get_async(resource_group_name, workspace_name, data_source_name, custom_headers).value! + def get(resource_group_name, workspace_name, data_source_name, custom_headers:nil) + response = get_async(resource_group_name, workspace_name, data_source_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -275,8 +275,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workspace_name, data_source_name, custom_headers = nil) - get_async(resource_group_name, workspace_name, data_source_name, custom_headers).value! + def get_with_http_info(resource_group_name, workspace_name, data_source_name, custom_headers:nil) + get_async(resource_group_name, workspace_name, data_source_name, custom_headers:custom_headers).value! end # @@ -292,7 +292,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workspace_name, data_source_name, custom_headers = nil) + def get_async(resource_group_name, workspace_name, data_source_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -304,6 +304,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -363,8 +364,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Array] operation results. # - def list_by_workspace(resource_group_name, workspace_name, filter, skiptoken = nil, custom_headers = nil) - first_page = list_by_workspace_as_lazy(resource_group_name, workspace_name, filter, skiptoken, custom_headers) + def list_by_workspace(resource_group_name, workspace_name, filter, skiptoken:nil, custom_headers:nil) + first_page = list_by_workspace_as_lazy(resource_group_name, workspace_name, filter, skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end @@ -383,8 +384,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_workspace_with_http_info(resource_group_name, workspace_name, filter, skiptoken = nil, custom_headers = nil) - list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken, custom_headers).value! + def list_by_workspace_with_http_info(resource_group_name, workspace_name, filter, skiptoken:nil, custom_headers:nil) + list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken:skiptoken, custom_headers:custom_headers).value! end # @@ -402,7 +403,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken = nil, custom_headers = nil) + def list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -414,6 +415,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -469,8 +471,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [DataSourceListResult] operation results. # - def list_by_workspace_next(next_page_link, custom_headers = nil) - response = list_by_workspace_next_async(next_page_link, custom_headers).value! + def list_by_workspace_next(next_page_link, custom_headers:nil) + response = list_by_workspace_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -485,8 +487,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_workspace_next_with_http_info(next_page_link, custom_headers = nil) - list_by_workspace_next_async(next_page_link, custom_headers).value! + def list_by_workspace_next_with_http_info(next_page_link, custom_headers:nil) + list_by_workspace_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -500,11 +502,12 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_workspace_next_async(next_page_link, custom_headers = nil) + def list_by_workspace_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -564,12 +567,12 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # @return [DataSourceListResult] which provide lazy access to pages of the # response. # - def list_by_workspace_as_lazy(resource_group_name, workspace_name, filter, skiptoken = nil, custom_headers = nil) - response = list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken, custom_headers).value! + def list_by_workspace_as_lazy(resource_group_name, workspace_name, filter, skiptoken:nil, custom_headers:nil) + response = list_by_workspace_async(resource_group_name, workspace_name, filter, skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_workspace_next_async(next_page_link, custom_headers) + list_by_workspace_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb b/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb index 0814d6b18..e9610bb8c 100644 --- a/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb +++ b/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb @@ -36,8 +36,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [LinkedService] operation results. # - def create_or_update(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -56,8 +56,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, workspace_name, linked_service_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -88,7 +88,6 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -163,8 +162,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # will be added to the HTTP request. # # - def delete(resource_group_name, workspace_name, linked_service_name, custom_headers = nil) - response = delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers).value! + def delete(resource_group_name, workspace_name, linked_service_name, custom_headers:nil) + response = delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers:custom_headers).value! nil end @@ -181,8 +180,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, workspace_name, linked_service_name, custom_headers = nil) - delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers).value! + def delete_with_http_info(resource_group_name, workspace_name, linked_service_name, custom_headers:nil) + delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers:custom_headers).value! end # @@ -198,7 +197,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers = nil) + def delete_async(resource_group_name, workspace_name, linked_service_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -210,6 +209,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -257,8 +257,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [LinkedService] operation results. # - def get(resource_group_name, workspace_name, linked_service_name, custom_headers = nil) - response = get_async(resource_group_name, workspace_name, linked_service_name, custom_headers).value! + def get(resource_group_name, workspace_name, linked_service_name, custom_headers:nil) + response = get_async(resource_group_name, workspace_name, linked_service_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -275,8 +275,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workspace_name, linked_service_name, custom_headers = nil) - get_async(resource_group_name, workspace_name, linked_service_name, custom_headers).value! + def get_with_http_info(resource_group_name, workspace_name, linked_service_name, custom_headers:nil) + get_async(resource_group_name, workspace_name, linked_service_name, custom_headers:custom_headers).value! end # @@ -292,7 +292,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workspace_name, linked_service_name, custom_headers = nil) + def get_async(resource_group_name, workspace_name, linked_service_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -304,6 +304,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -360,8 +361,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [LinkedServiceListResult] operation results. # - def list_by_workspace(resource_group_name, workspace_name, custom_headers = nil) - response = list_by_workspace_async(resource_group_name, workspace_name, custom_headers).value! + def list_by_workspace(resource_group_name, workspace_name, custom_headers:nil) + response = list_by_workspace_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -377,8 +378,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_workspace_with_http_info(resource_group_name, workspace_name, custom_headers = nil) - list_by_workspace_async(resource_group_name, workspace_name, custom_headers).value! + def list_by_workspace_with_http_info(resource_group_name, workspace_name, custom_headers:nil) + list_by_workspace_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! end # @@ -393,7 +394,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_workspace_async(resource_group_name, workspace_name, custom_headers = nil) + def list_by_workspace_async(resource_group_name, workspace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -404,6 +405,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb b/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb index ccac63a78..2f86ea698 100644 --- a/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb +++ b/management/azure_mgmt_operational_insights/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb @@ -33,8 +33,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # will be added to the HTTP request. # # - def disable_intelligence_pack(resource_group_name, workspace_name, intelligence_pack_name, custom_headers = nil) - response = disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers).value! + def disable_intelligence_pack(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil) + response = disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value! nil end @@ -51,8 +51,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def disable_intelligence_pack_with_http_info(resource_group_name, workspace_name, intelligence_pack_name, custom_headers = nil) - disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers).value! + def disable_intelligence_pack_with_http_info(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil) + disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value! end # @@ -68,7 +68,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers = nil) + def disable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -80,6 +80,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # will be added to the HTTP request. # # - def enable_intelligence_pack(resource_group_name, workspace_name, intelligence_pack_name, custom_headers = nil) - response = enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers).value! + def enable_intelligence_pack(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil) + response = enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value! nil end @@ -144,8 +145,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def enable_intelligence_pack_with_http_info(resource_group_name, workspace_name, intelligence_pack_name, custom_headers = nil) - enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers).value! + def enable_intelligence_pack_with_http_info(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil) + enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:custom_headers).value! end # @@ -161,7 +162,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers = nil) + def enable_intelligence_pack_async(resource_group_name, workspace_name, intelligence_pack_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -173,6 +174,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -219,8 +221,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Array] operation results. # - def list_intelligence_packs(resource_group_name, workspace_name, custom_headers = nil) - response = list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers).value! + def list_intelligence_packs(resource_group_name, workspace_name, custom_headers:nil) + response = list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -236,8 +238,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_intelligence_packs_with_http_info(resource_group_name, workspace_name, custom_headers = nil) - list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers).value! + def list_intelligence_packs_with_http_info(resource_group_name, workspace_name, custom_headers:nil) + list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! end # @@ -252,7 +254,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers = nil) + def list_intelligence_packs_async(resource_group_name, workspace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -263,6 +265,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -334,8 +337,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [SharedKeys] operation results. # - def get_shared_keys(resource_group_name, workspace_name, custom_headers = nil) - response = get_shared_keys_async(resource_group_name, workspace_name, custom_headers).value! + def get_shared_keys(resource_group_name, workspace_name, custom_headers:nil) + response = get_shared_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -350,8 +353,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_shared_keys_with_http_info(resource_group_name, workspace_name, custom_headers = nil) - get_shared_keys_async(resource_group_name, workspace_name, custom_headers).value! + def get_shared_keys_with_http_info(resource_group_name, workspace_name, custom_headers:nil) + get_shared_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! end # @@ -365,7 +368,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_shared_keys_async(resource_group_name, workspace_name, custom_headers = nil) + def get_shared_keys_async(resource_group_name, workspace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -376,6 +379,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -431,8 +435,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [WorkspaceListUsagesResult] operation results. # - def list_usages(resource_group_name, workspace_name, custom_headers = nil) - response = list_usages_async(resource_group_name, workspace_name, custom_headers).value! + def list_usages(resource_group_name, workspace_name, custom_headers:nil) + response = list_usages_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -447,8 +451,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usages_with_http_info(resource_group_name, workspace_name, custom_headers = nil) - list_usages_async(resource_group_name, workspace_name, custom_headers).value! + def list_usages_with_http_info(resource_group_name, workspace_name, custom_headers:nil) + list_usages_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! end # @@ -462,7 +466,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usages_async(resource_group_name, workspace_name, custom_headers = nil) + def list_usages_async(resource_group_name, workspace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -473,6 +477,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -528,8 +533,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [WorkspaceListManagementGroupsResult] operation results. # - def list_management_groups(resource_group_name, workspace_name, custom_headers = nil) - response = list_management_groups_async(resource_group_name, workspace_name, custom_headers).value! + def list_management_groups(resource_group_name, workspace_name, custom_headers:nil) + response = list_management_groups_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -544,8 +549,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_management_groups_with_http_info(resource_group_name, workspace_name, custom_headers = nil) - list_management_groups_async(resource_group_name, workspace_name, custom_headers).value! + def list_management_groups_with_http_info(resource_group_name, workspace_name, custom_headers:nil) + list_management_groups_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! end # @@ -559,7 +564,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_management_groups_async(resource_group_name, workspace_name, custom_headers = nil) + def list_management_groups_async(resource_group_name, workspace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -570,6 +575,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -624,8 +630,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [WorkspaceListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -639,8 +645,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -653,7 +659,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -663,6 +669,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -715,8 +722,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [WorkspaceListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -728,8 +735,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -740,12 +747,13 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -802,8 +810,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Workspace] operation results. # - def create_or_update(resource_group_name, workspace_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, workspace_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -818,9 +826,9 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -845,8 +853,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # will be added to the HTTP request. # # - def delete(resource_group_name, workspace_name, custom_headers = nil) - response = delete_async(resource_group_name, workspace_name, custom_headers).value! + def delete(resource_group_name, workspace_name, custom_headers:nil) + response = delete_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! nil end @@ -860,8 +868,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, workspace_name, custom_headers = nil) - delete_async(resource_group_name, workspace_name, custom_headers).value! + def delete_with_http_info(resource_group_name, workspace_name, custom_headers:nil) + delete_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! end # @@ -874,7 +882,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, workspace_name, custom_headers = nil) + def delete_async(resource_group_name, workspace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workspace_name is nil' if workspace_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -882,6 +890,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -926,8 +935,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Workspace] operation results. # - def get(resource_group_name, workspace_name, custom_headers = nil) - response = get_async(resource_group_name, workspace_name, custom_headers).value! + def get(resource_group_name, workspace_name, custom_headers:nil) + response = get_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -941,8 +950,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, workspace_name, custom_headers = nil) - get_async(resource_group_name, workspace_name, custom_headers).value! + def get_with_http_info(resource_group_name, workspace_name, custom_headers:nil) + get_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! end # @@ -955,7 +964,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, workspace_name, custom_headers = nil) + def get_async(resource_group_name, workspace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workspace_name is nil' if workspace_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -963,6 +972,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1019,8 +1029,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Workspace] operation results. # - def begin_create_or_update(resource_group_name, workspace_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, workspace_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1036,8 +1046,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, workspace_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, workspace_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:custom_headers).value! end # @@ -1052,7 +1062,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, workspace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workspace_name is nil' if workspace_name.nil? fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '63'" if !workspace_name.nil? && workspace_name.length > 63 @@ -1064,7 +1074,6 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_operational_insights/lib/profiles/latest/modules/operationalinsights_profile_module.rb b/management/azure_mgmt_operational_insights/lib/profiles/latest/modules/operationalinsights_profile_module.rb index 583ed1970..7fddd2cc3 100644 --- a/management/azure_mgmt_operational_insights/lib/profiles/latest/modules/operationalinsights_profile_module.rb +++ b/management/azure_mgmt_operational_insights/lib/profiles/latest/modules/operationalinsights_profile_module.rb @@ -74,22 +74,22 @@ module Azure::OperationalInsights::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::OperationalInsights::Mgmt::V2015_03_20::OperationalInsightsManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::OperationalInsights::Mgmt::V2015_03_20::OperationalInsightsManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @storage_insights = client_0.storage_insights - @saved_searches = client_0.saved_searches + add_telemetry(@client_0) + @storage_insights = @client_0.storage_insights + @saved_searches = @client_0.saved_searches - client_1 = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::AzureLogAnalytics.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::OperationalInsights::Mgmt::V2015_11_01_preview::AzureLogAnalytics.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @linked_services = client_1.linked_services - @data_sources = client_1.data_sources - @workspaces = client_1.workspaces + add_telemetry(@client_1) + @linked_services = @client_1.linked_services + @data_sources = @client_1.data_sources + @workspaces = @client_1.workspaces @model_classes = ModelClasses.new end @@ -99,6 +99,16 @@ module Azure::OperationalInsights::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_policy/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb b/management/azure_mgmt_policy/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb index 686293662..465fe5606 100644 --- a/management/azure_mgmt_policy/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +++ b/management/azure_mgmt_policy/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_assignments.rb @@ -33,8 +33,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyAssignment] operation results. # - def delete(scope, policy_assignment_name, custom_headers = nil) - response = delete_async(scope, policy_assignment_name, custom_headers).value! + def delete(scope, policy_assignment_name, custom_headers:nil) + response = delete_async(scope, policy_assignment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -49,8 +49,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(scope, policy_assignment_name, custom_headers = nil) - delete_async(scope, policy_assignment_name, custom_headers).value! + def delete_with_http_info(scope, policy_assignment_name, custom_headers:nil) + delete_async(scope, policy_assignment_name, custom_headers:custom_headers).value! end # @@ -64,13 +64,14 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(scope, policy_assignment_name, custom_headers = nil) + def delete_async(scope, policy_assignment_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyAssignment] operation results. # - def create(scope, policy_assignment_name, parameters, custom_headers = nil) - response = create_async(scope, policy_assignment_name, parameters, custom_headers).value! + def create(scope, policy_assignment_name, parameters, custom_headers:nil) + response = create_async(scope, policy_assignment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(scope, policy_assignment_name, parameters, custom_headers = nil) - create_async(scope, policy_assignment_name, parameters, custom_headers).value! + def create_with_http_info(scope, policy_assignment_name, parameters, custom_headers:nil) + create_async(scope, policy_assignment_name, parameters, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(scope, policy_assignment_name, parameters, custom_headers = nil) + def create_async(scope, policy_assignment_name, parameters, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -178,7 +179,6 @@ module Azure::Policy::Mgmt::V2015_10_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -243,8 +243,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyAssignment] operation results. # - def get(scope, policy_assignment_name, custom_headers = nil) - response = get_async(scope, policy_assignment_name, custom_headers).value! + def get(scope, policy_assignment_name, custom_headers:nil) + response = get_async(scope, policy_assignment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -259,8 +259,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(scope, policy_assignment_name, custom_headers = nil) - get_async(scope, policy_assignment_name, custom_headers).value! + def get_with_http_info(scope, policy_assignment_name, custom_headers:nil) + get_async(scope, policy_assignment_name, custom_headers:custom_headers).value! end # @@ -274,13 +274,14 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(scope, policy_assignment_name, custom_headers = nil) + def get_async(scope, policy_assignment_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -337,8 +338,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list_for_resource_group(resource_group_name, filter = nil, custom_headers = nil) - first_page = list_for_resource_group_as_lazy(resource_group_name, filter, custom_headers) + def list_for_resource_group(resource_group_name, filter:nil, custom_headers:nil) + first_page = list_for_resource_group_as_lazy(resource_group_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -353,8 +354,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_with_http_info(resource_group_name, filter = nil, custom_headers = nil) - list_for_resource_group_async(resource_group_name, filter, custom_headers).value! + def list_for_resource_group_with_http_info(resource_group_name, filter:nil, custom_headers:nil) + list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -368,7 +369,7 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_async(resource_group_name, filter = nil, custom_headers = nil) + def list_for_resource_group_async(resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -378,6 +379,7 @@ module Azure::Policy::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +442,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers) + def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -462,8 +464,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! end # @@ -483,7 +485,7 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) + def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -497,6 +499,7 @@ module Azure::Policy::Mgmt::V2015_10_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -551,8 +554,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -565,8 +568,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -578,12 +581,13 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -646,8 +650,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyAssignment] operation results. # - def delete_by_id(policy_assignment_id, custom_headers = nil) - response = delete_by_id_async(policy_assignment_id, custom_headers).value! + def delete_by_id(policy_assignment_id, custom_headers:nil) + response = delete_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -669,8 +673,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_by_id_with_http_info(policy_assignment_id, custom_headers = nil) - delete_by_id_async(policy_assignment_id, custom_headers).value! + def delete_by_id_with_http_info(policy_assignment_id, custom_headers:nil) + delete_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! end # @@ -691,12 +695,13 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_by_id_async(policy_assignment_id, custom_headers = nil) + def delete_by_id_async(policy_assignment_id, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -762,8 +767,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyAssignment] operation results. # - def create_by_id(policy_assignment_id, parameters, custom_headers = nil) - response = create_by_id_async(policy_assignment_id, parameters, custom_headers).value! + def create_by_id(policy_assignment_id, parameters, custom_headers:nil) + response = create_by_id_async(policy_assignment_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -788,8 +793,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_by_id_with_http_info(policy_assignment_id, parameters, custom_headers = nil) - create_by_id_async(policy_assignment_id, parameters, custom_headers).value! + def create_by_id_with_http_info(policy_assignment_id, parameters, custom_headers:nil) + create_by_id_async(policy_assignment_id, parameters, custom_headers:custom_headers).value! end # @@ -813,14 +818,13 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_by_id_async(policy_assignment_id, parameters, custom_headers = nil) + def create_by_id_async(policy_assignment_id, parameters, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -891,8 +895,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyAssignment] operation results. # - def get_by_id(policy_assignment_id, custom_headers = nil) - response = get_by_id_async(policy_assignment_id, custom_headers).value! + def get_by_id(policy_assignment_id, custom_headers:nil) + response = get_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -914,8 +918,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_id_with_http_info(policy_assignment_id, custom_headers = nil) - get_by_id_async(policy_assignment_id, custom_headers).value! + def get_by_id_with_http_info(policy_assignment_id, custom_headers:nil) + get_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! end # @@ -936,12 +940,13 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_id_async(policy_assignment_id, custom_headers = nil) + def get_by_id_async(policy_assignment_id, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -996,8 +1001,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyAssignmentListResult] operation results. # - def list_for_resource_group_next(next_page_link, custom_headers = nil) - response = list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next(next_page_link, custom_headers:nil) + response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1011,8 +1016,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1025,11 +1030,12 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_next_async(next_page_link, custom_headers = nil) + def list_for_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1083,8 +1089,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyAssignmentListResult] operation results. # - def list_for_resource_next(next_page_link, custom_headers = nil) - response = list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next(next_page_link, custom_headers:nil) + response = list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1098,8 +1104,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1112,11 +1118,12 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_next_async(next_page_link, custom_headers = nil) + def list_for_resource_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1170,8 +1177,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyAssignmentListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1185,8 +1192,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1199,11 +1206,12 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1259,12 +1267,12 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_for_resource_group_as_lazy(resource_group_name, filter = nil, custom_headers = nil) - response = list_for_resource_group_async(resource_group_name, filter, custom_headers).value! + def list_for_resource_group_as_lazy(resource_group_name, filter:nil, custom_headers:nil) + response = list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_group_next_async(next_page_link, custom_headers) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1288,12 +1296,12 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_next_async(next_page_link, custom_headers) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1309,12 +1317,12 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_policy/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb b/management/azure_mgmt_policy/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb index e722b94ee..206311c54 100644 --- a/management/azure_mgmt_policy/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb +++ b/management/azure_mgmt_policy/lib/2015-10-01-preview/generated/azure_mgmt_policy/policy_definitions.rb @@ -33,8 +33,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyDefinition] operation results. # - def create_or_update(policy_definition_name, parameters, custom_headers = nil) - response = create_or_update_async(policy_definition_name, parameters, custom_headers).value! + def create_or_update(policy_definition_name, parameters, custom_headers:nil) + response = create_or_update_async(policy_definition_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -49,8 +49,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(policy_definition_name, parameters, custom_headers = nil) - create_or_update_async(policy_definition_name, parameters, custom_headers).value! + def create_or_update_with_http_info(policy_definition_name, parameters, custom_headers:nil) + create_or_update_async(policy_definition_name, parameters, custom_headers:custom_headers).value! end # @@ -64,7 +64,7 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(policy_definition_name, parameters, custom_headers = nil) + def create_or_update_async(policy_definition_name, parameters, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -72,7 +72,6 @@ module Azure::Policy::Mgmt::V2015_10_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -134,8 +133,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # will be added to the HTTP request. # # - def delete(policy_definition_name, custom_headers = nil) - response = delete_async(policy_definition_name, custom_headers).value! + def delete(policy_definition_name, custom_headers:nil) + response = delete_async(policy_definition_name, custom_headers:custom_headers).value! nil end @@ -149,8 +148,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(policy_definition_name, custom_headers = nil) - delete_async(policy_definition_name, custom_headers).value! + def delete_with_http_info(policy_definition_name, custom_headers:nil) + delete_async(policy_definition_name, custom_headers:custom_headers).value! end # @@ -163,13 +162,14 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(policy_definition_name, custom_headers = nil) + def delete_async(policy_definition_name, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -214,8 +214,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyDefinition] operation results. # - def get(policy_definition_name, custom_headers = nil) - response = get_async(policy_definition_name, custom_headers).value! + def get(policy_definition_name, custom_headers:nil) + response = get_async(policy_definition_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -229,8 +229,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(policy_definition_name, custom_headers = nil) - get_async(policy_definition_name, custom_headers).value! + def get_with_http_info(policy_definition_name, custom_headers:nil) + get_async(policy_definition_name, custom_headers:custom_headers).value! end # @@ -243,13 +243,14 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(policy_definition_name, custom_headers = nil) + def get_async(policy_definition_name, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -303,8 +304,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -317,8 +318,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -330,12 +331,13 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -390,8 +392,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [PolicyDefinitionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -405,8 +407,8 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -419,11 +421,12 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -477,12 +480,12 @@ module Azure::Policy::Mgmt::V2015_10_01_preview # @return [PolicyDefinitionListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_policy/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb b/management/azure_mgmt_policy/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb index bcd279407..de85db9da 100644 --- a/management/azure_mgmt_policy/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb +++ b/management/azure_mgmt_policy/lib/2016-04-01/generated/azure_mgmt_policy/policy_assignments.rb @@ -33,8 +33,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyAssignment] operation results. # - def delete(scope, policy_assignment_name, custom_headers = nil) - response = delete_async(scope, policy_assignment_name, custom_headers).value! + def delete(scope, policy_assignment_name, custom_headers:nil) + response = delete_async(scope, policy_assignment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -49,8 +49,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(scope, policy_assignment_name, custom_headers = nil) - delete_async(scope, policy_assignment_name, custom_headers).value! + def delete_with_http_info(scope, policy_assignment_name, custom_headers:nil) + delete_async(scope, policy_assignment_name, custom_headers:custom_headers).value! end # @@ -64,13 +64,14 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(scope, policy_assignment_name, custom_headers = nil) + def delete_async(scope, policy_assignment_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyAssignment] operation results. # - def create(scope, policy_assignment_name, parameters, custom_headers = nil) - response = create_async(scope, policy_assignment_name, parameters, custom_headers).value! + def create(scope, policy_assignment_name, parameters, custom_headers:nil) + response = create_async(scope, policy_assignment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(scope, policy_assignment_name, parameters, custom_headers = nil) - create_async(scope, policy_assignment_name, parameters, custom_headers).value! + def create_with_http_info(scope, policy_assignment_name, parameters, custom_headers:nil) + create_async(scope, policy_assignment_name, parameters, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(scope, policy_assignment_name, parameters, custom_headers = nil) + def create_async(scope, policy_assignment_name, parameters, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -178,7 +179,6 @@ module Azure::Policy::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -243,8 +243,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyAssignment] operation results. # - def get(scope, policy_assignment_name, custom_headers = nil) - response = get_async(scope, policy_assignment_name, custom_headers).value! + def get(scope, policy_assignment_name, custom_headers:nil) + response = get_async(scope, policy_assignment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -259,8 +259,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(scope, policy_assignment_name, custom_headers = nil) - get_async(scope, policy_assignment_name, custom_headers).value! + def get_with_http_info(scope, policy_assignment_name, custom_headers:nil) + get_async(scope, policy_assignment_name, custom_headers:custom_headers).value! end # @@ -274,13 +274,14 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(scope, policy_assignment_name, custom_headers = nil) + def get_async(scope, policy_assignment_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -337,8 +338,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list_for_resource_group(resource_group_name, filter = nil, custom_headers = nil) - first_page = list_for_resource_group_as_lazy(resource_group_name, filter, custom_headers) + def list_for_resource_group(resource_group_name, filter:nil, custom_headers:nil) + first_page = list_for_resource_group_as_lazy(resource_group_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -353,8 +354,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_with_http_info(resource_group_name, filter = nil, custom_headers = nil) - list_for_resource_group_async(resource_group_name, filter, custom_headers).value! + def list_for_resource_group_with_http_info(resource_group_name, filter:nil, custom_headers:nil) + list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -368,7 +369,7 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_async(resource_group_name, filter = nil, custom_headers = nil) + def list_for_resource_group_async(resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -378,6 +379,7 @@ module Azure::Policy::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +442,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers) + def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -462,8 +464,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! end # @@ -483,7 +485,7 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) + def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -497,6 +499,7 @@ module Azure::Policy::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -551,8 +554,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -565,8 +568,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -578,12 +581,13 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -646,8 +650,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyAssignment] operation results. # - def delete_by_id(policy_assignment_id, custom_headers = nil) - response = delete_by_id_async(policy_assignment_id, custom_headers).value! + def delete_by_id(policy_assignment_id, custom_headers:nil) + response = delete_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -669,8 +673,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_by_id_with_http_info(policy_assignment_id, custom_headers = nil) - delete_by_id_async(policy_assignment_id, custom_headers).value! + def delete_by_id_with_http_info(policy_assignment_id, custom_headers:nil) + delete_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! end # @@ -691,12 +695,13 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_by_id_async(policy_assignment_id, custom_headers = nil) + def delete_by_id_async(policy_assignment_id, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -762,8 +767,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyAssignment] operation results. # - def create_by_id(policy_assignment_id, parameters, custom_headers = nil) - response = create_by_id_async(policy_assignment_id, parameters, custom_headers).value! + def create_by_id(policy_assignment_id, parameters, custom_headers:nil) + response = create_by_id_async(policy_assignment_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -788,8 +793,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_by_id_with_http_info(policy_assignment_id, parameters, custom_headers = nil) - create_by_id_async(policy_assignment_id, parameters, custom_headers).value! + def create_by_id_with_http_info(policy_assignment_id, parameters, custom_headers:nil) + create_by_id_async(policy_assignment_id, parameters, custom_headers:custom_headers).value! end # @@ -813,14 +818,13 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_by_id_async(policy_assignment_id, parameters, custom_headers = nil) + def create_by_id_async(policy_assignment_id, parameters, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -891,8 +895,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyAssignment] operation results. # - def get_by_id(policy_assignment_id, custom_headers = nil) - response = get_by_id_async(policy_assignment_id, custom_headers).value! + def get_by_id(policy_assignment_id, custom_headers:nil) + response = get_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -914,8 +918,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_id_with_http_info(policy_assignment_id, custom_headers = nil) - get_by_id_async(policy_assignment_id, custom_headers).value! + def get_by_id_with_http_info(policy_assignment_id, custom_headers:nil) + get_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! end # @@ -936,12 +940,13 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_id_async(policy_assignment_id, custom_headers = nil) + def get_by_id_async(policy_assignment_id, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -996,8 +1001,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyAssignmentListResult] operation results. # - def list_for_resource_group_next(next_page_link, custom_headers = nil) - response = list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next(next_page_link, custom_headers:nil) + response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1011,8 +1016,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1025,11 +1030,12 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_next_async(next_page_link, custom_headers = nil) + def list_for_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1083,8 +1089,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyAssignmentListResult] operation results. # - def list_for_resource_next(next_page_link, custom_headers = nil) - response = list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next(next_page_link, custom_headers:nil) + response = list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1098,8 +1104,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1112,11 +1118,12 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_next_async(next_page_link, custom_headers = nil) + def list_for_resource_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1170,8 +1177,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyAssignmentListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1185,8 +1192,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1199,11 +1206,12 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1259,12 +1267,12 @@ module Azure::Policy::Mgmt::V2016_04_01 # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_for_resource_group_as_lazy(resource_group_name, filter = nil, custom_headers = nil) - response = list_for_resource_group_async(resource_group_name, filter, custom_headers).value! + def list_for_resource_group_as_lazy(resource_group_name, filter:nil, custom_headers:nil) + response = list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_group_next_async(next_page_link, custom_headers) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1288,12 +1296,12 @@ module Azure::Policy::Mgmt::V2016_04_01 # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_next_async(next_page_link, custom_headers) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1309,12 +1317,12 @@ module Azure::Policy::Mgmt::V2016_04_01 # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_policy/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb b/management/azure_mgmt_policy/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb index 6a387e4dc..149c9e714 100644 --- a/management/azure_mgmt_policy/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb +++ b/management/azure_mgmt_policy/lib/2016-04-01/generated/azure_mgmt_policy/policy_definitions.rb @@ -33,8 +33,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyDefinition] operation results. # - def create_or_update(policy_definition_name, parameters, custom_headers = nil) - response = create_or_update_async(policy_definition_name, parameters, custom_headers).value! + def create_or_update(policy_definition_name, parameters, custom_headers:nil) + response = create_or_update_async(policy_definition_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -49,8 +49,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(policy_definition_name, parameters, custom_headers = nil) - create_or_update_async(policy_definition_name, parameters, custom_headers).value! + def create_or_update_with_http_info(policy_definition_name, parameters, custom_headers:nil) + create_or_update_async(policy_definition_name, parameters, custom_headers:custom_headers).value! end # @@ -64,7 +64,7 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(policy_definition_name, parameters, custom_headers = nil) + def create_or_update_async(policy_definition_name, parameters, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -72,7 +72,6 @@ module Azure::Policy::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -134,8 +133,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # will be added to the HTTP request. # # - def delete(policy_definition_name, custom_headers = nil) - response = delete_async(policy_definition_name, custom_headers).value! + def delete(policy_definition_name, custom_headers:nil) + response = delete_async(policy_definition_name, custom_headers:custom_headers).value! nil end @@ -149,8 +148,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(policy_definition_name, custom_headers = nil) - delete_async(policy_definition_name, custom_headers).value! + def delete_with_http_info(policy_definition_name, custom_headers:nil) + delete_async(policy_definition_name, custom_headers:custom_headers).value! end # @@ -163,13 +162,14 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(policy_definition_name, custom_headers = nil) + def delete_async(policy_definition_name, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -214,8 +214,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyDefinition] operation results. # - def get(policy_definition_name, custom_headers = nil) - response = get_async(policy_definition_name, custom_headers).value! + def get(policy_definition_name, custom_headers:nil) + response = get_async(policy_definition_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -229,8 +229,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(policy_definition_name, custom_headers = nil) - get_async(policy_definition_name, custom_headers).value! + def get_with_http_info(policy_definition_name, custom_headers:nil) + get_async(policy_definition_name, custom_headers:custom_headers).value! end # @@ -243,13 +243,14 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(policy_definition_name, custom_headers = nil) + def get_async(policy_definition_name, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -303,8 +304,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -317,8 +318,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -330,12 +331,13 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -390,8 +392,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [PolicyDefinitionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -405,8 +407,8 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -419,11 +421,12 @@ module Azure::Policy::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -477,12 +480,12 @@ module Azure::Policy::Mgmt::V2016_04_01 # @return [PolicyDefinitionListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_policy/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb b/management/azure_mgmt_policy/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb index 237197cbe..8c26284ea 100644 --- a/management/azure_mgmt_policy/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb +++ b/management/azure_mgmt_policy/lib/2016-12-01/generated/azure_mgmt_policy/policy_assignments.rb @@ -33,8 +33,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyAssignment] operation results. # - def delete(scope, policy_assignment_name, custom_headers = nil) - response = delete_async(scope, policy_assignment_name, custom_headers).value! + def delete(scope, policy_assignment_name, custom_headers:nil) + response = delete_async(scope, policy_assignment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -49,8 +49,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(scope, policy_assignment_name, custom_headers = nil) - delete_async(scope, policy_assignment_name, custom_headers).value! + def delete_with_http_info(scope, policy_assignment_name, custom_headers:nil) + delete_async(scope, policy_assignment_name, custom_headers:custom_headers).value! end # @@ -64,13 +64,14 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(scope, policy_assignment_name, custom_headers = nil) + def delete_async(scope, policy_assignment_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyAssignment] operation results. # - def create(scope, policy_assignment_name, parameters, custom_headers = nil) - response = create_async(scope, policy_assignment_name, parameters, custom_headers).value! + def create(scope, policy_assignment_name, parameters, custom_headers:nil) + response = create_async(scope, policy_assignment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(scope, policy_assignment_name, parameters, custom_headers = nil) - create_async(scope, policy_assignment_name, parameters, custom_headers).value! + def create_with_http_info(scope, policy_assignment_name, parameters, custom_headers:nil) + create_async(scope, policy_assignment_name, parameters, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(scope, policy_assignment_name, parameters, custom_headers = nil) + def create_async(scope, policy_assignment_name, parameters, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -178,7 +179,6 @@ module Azure::Policy::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -243,8 +243,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyAssignment] operation results. # - def get(scope, policy_assignment_name, custom_headers = nil) - response = get_async(scope, policy_assignment_name, custom_headers).value! + def get(scope, policy_assignment_name, custom_headers:nil) + response = get_async(scope, policy_assignment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -259,8 +259,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(scope, policy_assignment_name, custom_headers = nil) - get_async(scope, policy_assignment_name, custom_headers).value! + def get_with_http_info(scope, policy_assignment_name, custom_headers:nil) + get_async(scope, policy_assignment_name, custom_headers:custom_headers).value! end # @@ -274,13 +274,14 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(scope, policy_assignment_name, custom_headers = nil) + def get_async(scope, policy_assignment_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -337,8 +338,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_for_resource_group(resource_group_name, filter = nil, custom_headers = nil) - first_page = list_for_resource_group_as_lazy(resource_group_name, filter, custom_headers) + def list_for_resource_group(resource_group_name, filter:nil, custom_headers:nil) + first_page = list_for_resource_group_as_lazy(resource_group_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -353,8 +354,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_with_http_info(resource_group_name, filter = nil, custom_headers = nil) - list_for_resource_group_async(resource_group_name, filter, custom_headers).value! + def list_for_resource_group_with_http_info(resource_group_name, filter:nil, custom_headers:nil) + list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -368,7 +369,7 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_async(resource_group_name, filter = nil, custom_headers = nil) + def list_for_resource_group_async(resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -378,6 +379,7 @@ module Azure::Policy::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +442,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers) + def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -462,8 +464,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! end # @@ -483,7 +485,7 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) + def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -497,6 +499,7 @@ module Azure::Policy::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -551,8 +554,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -565,8 +568,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -578,12 +581,13 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -646,8 +650,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyAssignment] operation results. # - def delete_by_id(policy_assignment_id, custom_headers = nil) - response = delete_by_id_async(policy_assignment_id, custom_headers).value! + def delete_by_id(policy_assignment_id, custom_headers:nil) + response = delete_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -669,8 +673,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_by_id_with_http_info(policy_assignment_id, custom_headers = nil) - delete_by_id_async(policy_assignment_id, custom_headers).value! + def delete_by_id_with_http_info(policy_assignment_id, custom_headers:nil) + delete_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! end # @@ -691,12 +695,13 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_by_id_async(policy_assignment_id, custom_headers = nil) + def delete_by_id_async(policy_assignment_id, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -762,8 +767,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyAssignment] operation results. # - def create_by_id(policy_assignment_id, parameters, custom_headers = nil) - response = create_by_id_async(policy_assignment_id, parameters, custom_headers).value! + def create_by_id(policy_assignment_id, parameters, custom_headers:nil) + response = create_by_id_async(policy_assignment_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -788,8 +793,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_by_id_with_http_info(policy_assignment_id, parameters, custom_headers = nil) - create_by_id_async(policy_assignment_id, parameters, custom_headers).value! + def create_by_id_with_http_info(policy_assignment_id, parameters, custom_headers:nil) + create_by_id_async(policy_assignment_id, parameters, custom_headers:custom_headers).value! end # @@ -813,14 +818,13 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_by_id_async(policy_assignment_id, parameters, custom_headers = nil) + def create_by_id_async(policy_assignment_id, parameters, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -891,8 +895,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyAssignment] operation results. # - def get_by_id(policy_assignment_id, custom_headers = nil) - response = get_by_id_async(policy_assignment_id, custom_headers).value! + def get_by_id(policy_assignment_id, custom_headers:nil) + response = get_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -914,8 +918,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_id_with_http_info(policy_assignment_id, custom_headers = nil) - get_by_id_async(policy_assignment_id, custom_headers).value! + def get_by_id_with_http_info(policy_assignment_id, custom_headers:nil) + get_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! end # @@ -936,12 +940,13 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_id_async(policy_assignment_id, custom_headers = nil) + def get_by_id_async(policy_assignment_id, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -996,8 +1001,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyAssignmentListResult] operation results. # - def list_for_resource_group_next(next_page_link, custom_headers = nil) - response = list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next(next_page_link, custom_headers:nil) + response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1011,8 +1016,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1025,11 +1030,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_next_async(next_page_link, custom_headers = nil) + def list_for_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1083,8 +1089,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyAssignmentListResult] operation results. # - def list_for_resource_next(next_page_link, custom_headers = nil) - response = list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next(next_page_link, custom_headers:nil) + response = list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1098,8 +1104,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1112,11 +1118,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_next_async(next_page_link, custom_headers = nil) + def list_for_resource_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1170,8 +1177,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyAssignmentListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1185,8 +1192,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1199,11 +1206,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1259,12 +1267,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_for_resource_group_as_lazy(resource_group_name, filter = nil, custom_headers = nil) - response = list_for_resource_group_async(resource_group_name, filter, custom_headers).value! + def list_for_resource_group_as_lazy(resource_group_name, filter:nil, custom_headers:nil) + response = list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_group_next_async(next_page_link, custom_headers) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1288,12 +1296,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_next_async(next_page_link, custom_headers) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1309,12 +1317,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_policy/lib/2016-12-01/generated/azure_mgmt_policy/policy_definitions.rb b/management/azure_mgmt_policy/lib/2016-12-01/generated/azure_mgmt_policy/policy_definitions.rb index a6d1cab5c..7c5f00942 100644 --- a/management/azure_mgmt_policy/lib/2016-12-01/generated/azure_mgmt_policy/policy_definitions.rb +++ b/management/azure_mgmt_policy/lib/2016-12-01/generated/azure_mgmt_policy/policy_definitions.rb @@ -33,8 +33,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyDefinition] operation results. # - def create_or_update(policy_definition_name, parameters, custom_headers = nil) - response = create_or_update_async(policy_definition_name, parameters, custom_headers).value! + def create_or_update(policy_definition_name, parameters, custom_headers:nil) + response = create_or_update_async(policy_definition_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -49,8 +49,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(policy_definition_name, parameters, custom_headers = nil) - create_or_update_async(policy_definition_name, parameters, custom_headers).value! + def create_or_update_with_http_info(policy_definition_name, parameters, custom_headers:nil) + create_or_update_async(policy_definition_name, parameters, custom_headers:custom_headers).value! end # @@ -64,7 +64,7 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(policy_definition_name, parameters, custom_headers = nil) + def create_or_update_async(policy_definition_name, parameters, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -72,7 +72,6 @@ module Azure::Policy::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -134,8 +133,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def delete(policy_definition_name, custom_headers = nil) - response = delete_async(policy_definition_name, custom_headers).value! + def delete(policy_definition_name, custom_headers:nil) + response = delete_async(policy_definition_name, custom_headers:custom_headers).value! nil end @@ -149,8 +148,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(policy_definition_name, custom_headers = nil) - delete_async(policy_definition_name, custom_headers).value! + def delete_with_http_info(policy_definition_name, custom_headers:nil) + delete_async(policy_definition_name, custom_headers:custom_headers).value! end # @@ -163,13 +162,14 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(policy_definition_name, custom_headers = nil) + def delete_async(policy_definition_name, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -214,8 +214,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyDefinition] operation results. # - def get(policy_definition_name, custom_headers = nil) - response = get_async(policy_definition_name, custom_headers).value! + def get(policy_definition_name, custom_headers:nil) + response = get_async(policy_definition_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -229,8 +229,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(policy_definition_name, custom_headers = nil) - get_async(policy_definition_name, custom_headers).value! + def get_with_http_info(policy_definition_name, custom_headers:nil) + get_async(policy_definition_name, custom_headers:custom_headers).value! end # @@ -243,13 +243,14 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(policy_definition_name, custom_headers = nil) + def get_async(policy_definition_name, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -304,8 +305,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyDefinition] operation results. # - def get_built_in(policy_definition_name, custom_headers = nil) - response = get_built_in_async(policy_definition_name, custom_headers).value! + def get_built_in(policy_definition_name, custom_headers:nil) + response = get_built_in_async(policy_definition_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -319,8 +320,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_built_in_with_http_info(policy_definition_name, custom_headers = nil) - get_built_in_async(policy_definition_name, custom_headers).value! + def get_built_in_with_http_info(policy_definition_name, custom_headers:nil) + get_built_in_async(policy_definition_name, custom_headers:custom_headers).value! end # @@ -333,12 +334,13 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_built_in_async(policy_definition_name, custom_headers = nil) + def get_built_in_async(policy_definition_name, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -395,8 +397,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyDefinition] operation results. # - def create_or_update_at_management_group(policy_definition_name, parameters, management_group_id, custom_headers = nil) - response = create_or_update_at_management_group_async(policy_definition_name, parameters, management_group_id, custom_headers).value! + def create_or_update_at_management_group(policy_definition_name, parameters, management_group_id, custom_headers:nil) + response = create_or_update_at_management_group_async(policy_definition_name, parameters, management_group_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -412,8 +414,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_at_management_group_with_http_info(policy_definition_name, parameters, management_group_id, custom_headers = nil) - create_or_update_at_management_group_async(policy_definition_name, parameters, management_group_id, custom_headers).value! + def create_or_update_at_management_group_with_http_info(policy_definition_name, parameters, management_group_id, custom_headers:nil) + create_or_update_at_management_group_async(policy_definition_name, parameters, management_group_id, custom_headers:custom_headers).value! end # @@ -428,7 +430,7 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_at_management_group_async(policy_definition_name, parameters, management_group_id, custom_headers = nil) + def create_or_update_at_management_group_async(policy_definition_name, parameters, management_group_id, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -436,7 +438,6 @@ module Azure::Policy::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -499,8 +500,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def delete_at_management_group(policy_definition_name, management_group_id, custom_headers = nil) - response = delete_at_management_group_async(policy_definition_name, management_group_id, custom_headers).value! + def delete_at_management_group(policy_definition_name, management_group_id, custom_headers:nil) + response = delete_at_management_group_async(policy_definition_name, management_group_id, custom_headers:custom_headers).value! nil end @@ -515,8 +516,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_at_management_group_with_http_info(policy_definition_name, management_group_id, custom_headers = nil) - delete_at_management_group_async(policy_definition_name, management_group_id, custom_headers).value! + def delete_at_management_group_with_http_info(policy_definition_name, management_group_id, custom_headers:nil) + delete_at_management_group_async(policy_definition_name, management_group_id, custom_headers:custom_headers).value! end # @@ -530,13 +531,14 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_at_management_group_async(policy_definition_name, management_group_id, custom_headers = nil) + def delete_at_management_group_async(policy_definition_name, management_group_id, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'management_group_id is nil' if management_group_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -582,8 +584,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyDefinition] operation results. # - def get_at_management_group(policy_definition_name, management_group_id, custom_headers = nil) - response = get_at_management_group_async(policy_definition_name, management_group_id, custom_headers).value! + def get_at_management_group(policy_definition_name, management_group_id, custom_headers:nil) + response = get_at_management_group_async(policy_definition_name, management_group_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -598,8 +600,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_at_management_group_with_http_info(policy_definition_name, management_group_id, custom_headers = nil) - get_at_management_group_async(policy_definition_name, management_group_id, custom_headers).value! + def get_at_management_group_with_http_info(policy_definition_name, management_group_id, custom_headers:nil) + get_at_management_group_async(policy_definition_name, management_group_id, custom_headers:custom_headers).value! end # @@ -613,13 +615,14 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_at_management_group_async(policy_definition_name, management_group_id, custom_headers = nil) + def get_at_management_group_async(policy_definition_name, management_group_id, custom_headers:nil) fail ArgumentError, 'policy_definition_name is nil' if policy_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'management_group_id is nil' if management_group_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -672,8 +675,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -685,8 +688,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -697,12 +700,13 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -755,8 +759,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_built_in(custom_headers = nil) - first_page = list_built_in_as_lazy(custom_headers) + def list_built_in(custom_headers:nil) + first_page = list_built_in_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -768,8 +772,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_built_in_with_http_info(custom_headers = nil) - list_built_in_async(custom_headers).value! + def list_built_in_with_http_info(custom_headers:nil) + list_built_in_async(custom_headers:custom_headers).value! end # @@ -780,11 +784,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_built_in_async(custom_headers = nil) + def list_built_in_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -837,8 +842,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list_by_management_group(management_group_id, custom_headers = nil) - first_page = list_by_management_group_as_lazy(management_group_id, custom_headers) + def list_by_management_group(management_group_id, custom_headers:nil) + first_page = list_by_management_group_as_lazy(management_group_id, custom_headers:custom_headers) first_page.get_all_items end @@ -851,8 +856,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_management_group_with_http_info(management_group_id, custom_headers = nil) - list_by_management_group_async(management_group_id, custom_headers).value! + def list_by_management_group_with_http_info(management_group_id, custom_headers:nil) + list_by_management_group_async(management_group_id, custom_headers:custom_headers).value! end # @@ -864,12 +869,13 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_management_group_async(management_group_id, custom_headers = nil) + def list_by_management_group_async(management_group_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'management_group_id is nil' if management_group_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -924,8 +930,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyDefinitionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -939,8 +945,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -953,11 +959,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1011,8 +1018,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyDefinitionListResult] operation results. # - def list_built_in_next(next_page_link, custom_headers = nil) - response = list_built_in_next_async(next_page_link, custom_headers).value! + def list_built_in_next(next_page_link, custom_headers:nil) + response = list_built_in_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1026,8 +1033,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_built_in_next_with_http_info(next_page_link, custom_headers = nil) - list_built_in_next_async(next_page_link, custom_headers).value! + def list_built_in_next_with_http_info(next_page_link, custom_headers:nil) + list_built_in_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1040,11 +1047,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_built_in_next_async(next_page_link, custom_headers = nil) + def list_built_in_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1098,8 +1106,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [PolicyDefinitionListResult] operation results. # - def list_by_management_group_next(next_page_link, custom_headers = nil) - response = list_by_management_group_next_async(next_page_link, custom_headers).value! + def list_by_management_group_next(next_page_link, custom_headers:nil) + response = list_by_management_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1113,8 +1121,8 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_management_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_management_group_next_async(next_page_link, custom_headers).value! + def list_by_management_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_management_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1127,11 +1135,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_management_group_next_async(next_page_link, custom_headers = nil) + def list_by_management_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1184,12 +1193,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # @return [PolicyDefinitionListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1204,12 +1213,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # @return [PolicyDefinitionListResult] which provide lazy access to pages of # the response. # - def list_built_in_as_lazy(custom_headers = nil) - response = list_built_in_async(custom_headers).value! + def list_built_in_as_lazy(custom_headers:nil) + response = list_built_in_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_built_in_next_async(next_page_link, custom_headers) + list_built_in_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1225,12 +1234,12 @@ module Azure::Policy::Mgmt::V2016_12_01 # @return [PolicyDefinitionListResult] which provide lazy access to pages of # the response. # - def list_by_management_group_as_lazy(management_group_id, custom_headers = nil) - response = list_by_management_group_async(management_group_id, custom_headers).value! + def list_by_management_group_as_lazy(management_group_id, custom_headers:nil) + response = list_by_management_group_async(management_group_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_management_group_next_async(next_page_link, custom_headers) + list_by_management_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_policy/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb b/management/azure_mgmt_policy/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb index a238a67f5..a6808beea 100644 --- a/management/azure_mgmt_policy/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb +++ b/management/azure_mgmt_policy/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_assignments.rb @@ -33,8 +33,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicyAssignment] operation results. # - def delete(scope, policy_assignment_name, custom_headers = nil) - response = delete_async(scope, policy_assignment_name, custom_headers).value! + def delete(scope, policy_assignment_name, custom_headers:nil) + response = delete_async(scope, policy_assignment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -49,8 +49,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(scope, policy_assignment_name, custom_headers = nil) - delete_async(scope, policy_assignment_name, custom_headers).value! + def delete_with_http_info(scope, policy_assignment_name, custom_headers:nil) + delete_async(scope, policy_assignment_name, custom_headers:custom_headers).value! end # @@ -64,13 +64,14 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(scope, policy_assignment_name, custom_headers = nil) + def delete_async(scope, policy_assignment_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicyAssignment] operation results. # - def create(scope, policy_assignment_name, parameters, custom_headers = nil) - response = create_async(scope, policy_assignment_name, parameters, custom_headers).value! + def create(scope, policy_assignment_name, parameters, custom_headers:nil) + response = create_async(scope, policy_assignment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(scope, policy_assignment_name, parameters, custom_headers = nil) - create_async(scope, policy_assignment_name, parameters, custom_headers).value! + def create_with_http_info(scope, policy_assignment_name, parameters, custom_headers:nil) + create_async(scope, policy_assignment_name, parameters, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(scope, policy_assignment_name, parameters, custom_headers = nil) + def create_async(scope, policy_assignment_name, parameters, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -178,7 +179,6 @@ module Azure::Policy::Mgmt::V2017_06_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -243,8 +243,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicyAssignment] operation results. # - def get(scope, policy_assignment_name, custom_headers = nil) - response = get_async(scope, policy_assignment_name, custom_headers).value! + def get(scope, policy_assignment_name, custom_headers:nil) + response = get_async(scope, policy_assignment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -259,8 +259,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(scope, policy_assignment_name, custom_headers = nil) - get_async(scope, policy_assignment_name, custom_headers).value! + def get_with_http_info(scope, policy_assignment_name, custom_headers:nil) + get_async(scope, policy_assignment_name, custom_headers:custom_headers).value! end # @@ -274,13 +274,14 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(scope, policy_assignment_name, custom_headers = nil) + def get_async(scope, policy_assignment_name, custom_headers:nil) fail ArgumentError, 'scope is nil' if scope.nil? fail ArgumentError, 'policy_assignment_name is nil' if policy_assignment_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -337,8 +338,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list_for_resource_group(resource_group_name, filter = nil, custom_headers = nil) - first_page = list_for_resource_group_as_lazy(resource_group_name, filter, custom_headers) + def list_for_resource_group(resource_group_name, filter:nil, custom_headers:nil) + first_page = list_for_resource_group_as_lazy(resource_group_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -353,8 +354,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_with_http_info(resource_group_name, filter = nil, custom_headers = nil) - list_for_resource_group_async(resource_group_name, filter, custom_headers).value! + def list_for_resource_group_with_http_info(resource_group_name, filter:nil, custom_headers:nil) + list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -368,7 +369,7 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_async(resource_group_name, filter = nil, custom_headers = nil) + def list_for_resource_group_async(resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -378,6 +379,7 @@ module Azure::Policy::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +442,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers) + def list_for_resource(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + first_page = list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -462,8 +464,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_for_resource_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! end # @@ -483,7 +485,7 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) + def list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -497,6 +499,7 @@ module Azure::Policy::Mgmt::V2017_06_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -551,8 +554,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -565,8 +568,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -578,12 +581,13 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -646,8 +650,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicyAssignment] operation results. # - def delete_by_id(policy_assignment_id, custom_headers = nil) - response = delete_by_id_async(policy_assignment_id, custom_headers).value! + def delete_by_id(policy_assignment_id, custom_headers:nil) + response = delete_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -669,8 +673,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_by_id_with_http_info(policy_assignment_id, custom_headers = nil) - delete_by_id_async(policy_assignment_id, custom_headers).value! + def delete_by_id_with_http_info(policy_assignment_id, custom_headers:nil) + delete_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! end # @@ -691,12 +695,13 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_by_id_async(policy_assignment_id, custom_headers = nil) + def delete_by_id_async(policy_assignment_id, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -762,8 +767,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicyAssignment] operation results. # - def create_by_id(policy_assignment_id, parameters, custom_headers = nil) - response = create_by_id_async(policy_assignment_id, parameters, custom_headers).value! + def create_by_id(policy_assignment_id, parameters, custom_headers:nil) + response = create_by_id_async(policy_assignment_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -788,8 +793,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_by_id_with_http_info(policy_assignment_id, parameters, custom_headers = nil) - create_by_id_async(policy_assignment_id, parameters, custom_headers).value! + def create_by_id_with_http_info(policy_assignment_id, parameters, custom_headers:nil) + create_by_id_async(policy_assignment_id, parameters, custom_headers:custom_headers).value! end # @@ -813,14 +818,13 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_by_id_async(policy_assignment_id, parameters, custom_headers = nil) + def create_by_id_async(policy_assignment_id, parameters, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -891,8 +895,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicyAssignment] operation results. # - def get_by_id(policy_assignment_id, custom_headers = nil) - response = get_by_id_async(policy_assignment_id, custom_headers).value! + def get_by_id(policy_assignment_id, custom_headers:nil) + response = get_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -914,8 +918,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_id_with_http_info(policy_assignment_id, custom_headers = nil) - get_by_id_async(policy_assignment_id, custom_headers).value! + def get_by_id_with_http_info(policy_assignment_id, custom_headers:nil) + get_by_id_async(policy_assignment_id, custom_headers:custom_headers).value! end # @@ -936,12 +940,13 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_id_async(policy_assignment_id, custom_headers = nil) + def get_by_id_async(policy_assignment_id, custom_headers:nil) fail ArgumentError, 'policy_assignment_id is nil' if policy_assignment_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -996,8 +1001,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicyAssignmentListResult] operation results. # - def list_for_resource_group_next(next_page_link, custom_headers = nil) - response = list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next(next_page_link, custom_headers:nil) + response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1011,8 +1016,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1025,11 +1030,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_next_async(next_page_link, custom_headers = nil) + def list_for_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1083,8 +1089,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicyAssignmentListResult] operation results. # - def list_for_resource_next(next_page_link, custom_headers = nil) - response = list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next(next_page_link, custom_headers:nil) + response = list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1098,8 +1104,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_next_async(next_page_link, custom_headers).value! + def list_for_resource_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1112,11 +1118,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_next_async(next_page_link, custom_headers = nil) + def list_for_resource_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1170,8 +1177,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicyAssignmentListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1185,8 +1192,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1199,11 +1206,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1259,12 +1267,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_for_resource_group_as_lazy(resource_group_name, filter = nil, custom_headers = nil) - response = list_for_resource_group_async(resource_group_name, filter, custom_headers).value! + def list_for_resource_group_as_lazy(resource_group_name, filter:nil, custom_headers:nil) + response = list_for_resource_group_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_group_next_async(next_page_link, custom_headers) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1288,12 +1296,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter = nil, custom_headers = nil) - response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter, custom_headers).value! + def list_for_resource_as_lazy(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:nil, custom_headers:nil) + response = list_for_resource_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_next_async(next_page_link, custom_headers) + list_for_resource_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1309,12 +1317,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # @return [PolicyAssignmentListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_policy/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb b/management/azure_mgmt_policy/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb index 6123c71b4..f715a1222 100644 --- a/management/azure_mgmt_policy/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb +++ b/management/azure_mgmt_policy/lib/2017-06-01-preview/generated/azure_mgmt_policy/policy_set_definitions.rb @@ -33,8 +33,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicySetDefinition] operation results. # - def create_or_update(policy_set_definition_name, parameters, custom_headers = nil) - response = create_or_update_async(policy_set_definition_name, parameters, custom_headers).value! + def create_or_update(policy_set_definition_name, parameters, custom_headers:nil) + response = create_or_update_async(policy_set_definition_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -49,8 +49,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(policy_set_definition_name, parameters, custom_headers = nil) - create_or_update_async(policy_set_definition_name, parameters, custom_headers).value! + def create_or_update_with_http_info(policy_set_definition_name, parameters, custom_headers:nil) + create_or_update_async(policy_set_definition_name, parameters, custom_headers:custom_headers).value! end # @@ -64,7 +64,7 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(policy_set_definition_name, parameters, custom_headers = nil) + def create_or_update_async(policy_set_definition_name, parameters, custom_headers:nil) fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -72,7 +72,6 @@ module Azure::Policy::Mgmt::V2017_06_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -144,8 +143,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # will be added to the HTTP request. # # - def delete(policy_set_definition_name, custom_headers = nil) - response = delete_async(policy_set_definition_name, custom_headers).value! + def delete(policy_set_definition_name, custom_headers:nil) + response = delete_async(policy_set_definition_name, custom_headers:custom_headers).value! nil end @@ -159,8 +158,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(policy_set_definition_name, custom_headers = nil) - delete_async(policy_set_definition_name, custom_headers).value! + def delete_with_http_info(policy_set_definition_name, custom_headers:nil) + delete_async(policy_set_definition_name, custom_headers:custom_headers).value! end # @@ -173,13 +172,14 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(policy_set_definition_name, custom_headers = nil) + def delete_async(policy_set_definition_name, custom_headers:nil) fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -224,8 +224,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicySetDefinition] operation results. # - def get(policy_set_definition_name, custom_headers = nil) - response = get_async(policy_set_definition_name, custom_headers).value! + def get(policy_set_definition_name, custom_headers:nil) + response = get_async(policy_set_definition_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -239,8 +239,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(policy_set_definition_name, custom_headers = nil) - get_async(policy_set_definition_name, custom_headers).value! + def get_with_http_info(policy_set_definition_name, custom_headers:nil) + get_async(policy_set_definition_name, custom_headers:custom_headers).value! end # @@ -253,13 +253,14 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(policy_set_definition_name, custom_headers = nil) + def get_async(policy_set_definition_name, custom_headers:nil) fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +315,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicySetDefinition] operation results. # - def get_built_in(policy_set_definition_name, custom_headers = nil) - response = get_built_in_async(policy_set_definition_name, custom_headers).value! + def get_built_in(policy_set_definition_name, custom_headers:nil) + response = get_built_in_async(policy_set_definition_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -329,8 +330,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_built_in_with_http_info(policy_set_definition_name, custom_headers = nil) - get_built_in_async(policy_set_definition_name, custom_headers).value! + def get_built_in_with_http_info(policy_set_definition_name, custom_headers:nil) + get_built_in_async(policy_set_definition_name, custom_headers:custom_headers).value! end # @@ -343,12 +344,13 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_built_in_async(policy_set_definition_name, custom_headers = nil) + def get_built_in_async(policy_set_definition_name, custom_headers:nil) fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -401,8 +403,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -414,8 +416,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -426,12 +428,13 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -484,8 +487,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list_built_in(custom_headers = nil) - first_page = list_built_in_as_lazy(custom_headers) + def list_built_in(custom_headers:nil) + first_page = list_built_in_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -497,8 +500,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_built_in_with_http_info(custom_headers = nil) - list_built_in_async(custom_headers).value! + def list_built_in_with_http_info(custom_headers:nil) + list_built_in_async(custom_headers:custom_headers).value! end # @@ -509,11 +512,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_built_in_async(custom_headers = nil) + def list_built_in_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -569,8 +573,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicySetDefinition] operation results. # - def create_or_update_at_management_group(policy_set_definition_name, parameters, management_group_id, custom_headers = nil) - response = create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers).value! + def create_or_update_at_management_group(policy_set_definition_name, parameters, management_group_id, custom_headers:nil) + response = create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -586,8 +590,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_at_management_group_with_http_info(policy_set_definition_name, parameters, management_group_id, custom_headers = nil) - create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers).value! + def create_or_update_at_management_group_with_http_info(policy_set_definition_name, parameters, management_group_id, custom_headers:nil) + create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers:custom_headers).value! end # @@ -602,7 +606,7 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers = nil) + def create_or_update_at_management_group_async(policy_set_definition_name, parameters, management_group_id, custom_headers:nil) fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -610,7 +614,6 @@ module Azure::Policy::Mgmt::V2017_06_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -683,8 +686,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # will be added to the HTTP request. # # - def delete_at_management_group(policy_set_definition_name, management_group_id, custom_headers = nil) - response = delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers).value! + def delete_at_management_group(policy_set_definition_name, management_group_id, custom_headers:nil) + response = delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:custom_headers).value! nil end @@ -699,8 +702,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_at_management_group_with_http_info(policy_set_definition_name, management_group_id, custom_headers = nil) - delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers).value! + def delete_at_management_group_with_http_info(policy_set_definition_name, management_group_id, custom_headers:nil) + delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:custom_headers).value! end # @@ -714,13 +717,14 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers = nil) + def delete_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:nil) fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'management_group_id is nil' if management_group_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -766,8 +770,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicySetDefinition] operation results. # - def get_at_management_group(policy_set_definition_name, management_group_id, custom_headers = nil) - response = get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers).value! + def get_at_management_group(policy_set_definition_name, management_group_id, custom_headers:nil) + response = get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -782,8 +786,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_at_management_group_with_http_info(policy_set_definition_name, management_group_id, custom_headers = nil) - get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers).value! + def get_at_management_group_with_http_info(policy_set_definition_name, management_group_id, custom_headers:nil) + get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:custom_headers).value! end # @@ -797,13 +801,14 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers = nil) + def get_at_management_group_async(policy_set_definition_name, management_group_id, custom_headers:nil) fail ArgumentError, 'policy_set_definition_name is nil' if policy_set_definition_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'management_group_id is nil' if management_group_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -857,8 +862,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Array] operation results. # - def list_by_management_group(management_group_id, custom_headers = nil) - first_page = list_by_management_group_as_lazy(management_group_id, custom_headers) + def list_by_management_group(management_group_id, custom_headers:nil) + first_page = list_by_management_group_as_lazy(management_group_id, custom_headers:custom_headers) first_page.get_all_items end @@ -871,8 +876,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_management_group_with_http_info(management_group_id, custom_headers = nil) - list_by_management_group_async(management_group_id, custom_headers).value! + def list_by_management_group_with_http_info(management_group_id, custom_headers:nil) + list_by_management_group_async(management_group_id, custom_headers:custom_headers).value! end # @@ -884,12 +889,13 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_management_group_async(management_group_id, custom_headers = nil) + def list_by_management_group_async(management_group_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'management_group_id is nil' if management_group_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -944,8 +950,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicySetDefinitionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -959,8 +965,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -973,11 +979,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1031,8 +1038,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicySetDefinitionListResult] operation results. # - def list_built_in_next(next_page_link, custom_headers = nil) - response = list_built_in_next_async(next_page_link, custom_headers).value! + def list_built_in_next(next_page_link, custom_headers:nil) + response = list_built_in_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1046,8 +1053,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_built_in_next_with_http_info(next_page_link, custom_headers = nil) - list_built_in_next_async(next_page_link, custom_headers).value! + def list_built_in_next_with_http_info(next_page_link, custom_headers:nil) + list_built_in_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1060,11 +1067,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_built_in_next_async(next_page_link, custom_headers = nil) + def list_built_in_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1118,8 +1126,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [PolicySetDefinitionListResult] operation results. # - def list_by_management_group_next(next_page_link, custom_headers = nil) - response = list_by_management_group_next_async(next_page_link, custom_headers).value! + def list_by_management_group_next(next_page_link, custom_headers:nil) + response = list_by_management_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1133,8 +1141,8 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_management_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_management_group_next_async(next_page_link, custom_headers).value! + def list_by_management_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_management_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1147,11 +1155,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_management_group_next_async(next_page_link, custom_headers = nil) + def list_by_management_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1204,12 +1213,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # @return [PolicySetDefinitionListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1224,12 +1233,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # @return [PolicySetDefinitionListResult] which provide lazy access to pages of # the response. # - def list_built_in_as_lazy(custom_headers = nil) - response = list_built_in_async(custom_headers).value! + def list_built_in_as_lazy(custom_headers:nil) + response = list_built_in_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_built_in_next_async(next_page_link, custom_headers) + list_built_in_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1245,12 +1254,12 @@ module Azure::Policy::Mgmt::V2017_06_01_preview # @return [PolicySetDefinitionListResult] which provide lazy access to pages of # the response. # - def list_by_management_group_as_lazy(management_group_id, custom_headers = nil) - response = list_by_management_group_async(management_group_id, custom_headers).value! + def list_by_management_group_as_lazy(management_group_id, custom_headers:nil) + response = list_by_management_group_async(management_group_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_management_group_next_async(next_page_link, custom_headers) + list_by_management_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_policy/lib/profiles/latest/modules/policy_profile_module.rb b/management/azure_mgmt_policy/lib/profiles/latest/modules/policy_profile_module.rb index 3161bbe4f..81e2fc483 100644 --- a/management/azure_mgmt_policy/lib/profiles/latest/modules/policy_profile_module.rb +++ b/management/azure_mgmt_policy/lib/profiles/latest/modules/policy_profile_module.rb @@ -43,20 +43,20 @@ module Azure::Policy::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Policy::Mgmt::V2016_12_01::PolicyClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Policy::Mgmt::V2016_12_01::PolicyClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @policy_definitions = client_0.policy_definitions + add_telemetry(@client_0) + @policy_definitions = @client_0.policy_definitions - client_1 = Azure::Policy::Mgmt::V2017_06_01_preview::PolicyClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::Policy::Mgmt::V2017_06_01_preview::PolicyClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @policy_assignments = client_1.policy_assignments - @policy_set_definitions = client_1.policy_set_definitions + add_telemetry(@client_1) + @policy_assignments = @client_1.policy_assignments + @policy_set_definitions = @client_1.policy_set_definitions @model_classes = ModelClasses.new end @@ -66,6 +66,16 @@ module Azure::Policy::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_policy/lib/profiles/v2017_03_09/modules/policy_profile_module.rb b/management/azure_mgmt_policy/lib/profiles/v2017_03_09/modules/policy_profile_module.rb index 91db6eb85..771f28e8a 100644 --- a/management/azure_mgmt_policy/lib/profiles/v2017_03_09/modules/policy_profile_module.rb +++ b/management/azure_mgmt_policy/lib/profiles/v2017_03_09/modules/policy_profile_module.rb @@ -36,13 +36,13 @@ module Azure::Policy::Profiles::V2017_03_09 @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Policy::Mgmt::V2015_10_01_preview::PolicyClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @policy_assignments = client_0.policy_assignments - @policy_definitions = client_0.policy_definitions + add_telemetry(@client_0) + @policy_assignments = @client_0.policy_assignments + @policy_definitions = @client_0.policy_definitions @model_classes = ModelClasses.new end @@ -52,6 +52,14 @@ module Azure::Policy::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/power_biembedded_management_client.rb b/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/power_biembedded_management_client.rb index 53170ef85..6bc7dffe0 100644 --- a/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/power_biembedded_management_client.rb +++ b/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/power_biembedded_management_client.rb @@ -131,8 +131,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [OperationList] operation results. # - def get_available_operations(custom_headers = nil) - response = get_available_operations_async(custom_headers).value! + def get_available_operations(custom_headers:nil) + response = get_available_operations_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +145,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_available_operations_with_http_info(custom_headers = nil) - get_available_operations_async(custom_headers).value! + def get_available_operations_with_http_info(custom_headers:nil) + get_available_operations_async(custom_headers:custom_headers).value! end # @@ -158,11 +158,12 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_available_operations_async(custom_headers = nil) + def get_available_operations_async(custom_headers:nil) fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/workspace_collections.rb b/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/workspace_collections.rb index cd3121f16..91328c254 100644 --- a/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/workspace_collections.rb +++ b/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/workspace_collections.rb @@ -33,8 +33,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [WorkspaceCollection] operation results. # - def get_by_name(resource_group_name, workspace_collection_name, custom_headers = nil) - response = get_by_name_async(resource_group_name, workspace_collection_name, custom_headers).value! + def get_by_name(resource_group_name, workspace_collection_name, custom_headers:nil) + response = get_by_name_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -49,8 +49,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_name_with_http_info(resource_group_name, workspace_collection_name, custom_headers = nil) - get_by_name_async(resource_group_name, workspace_collection_name, custom_headers).value! + def get_by_name_with_http_info(resource_group_name, workspace_collection_name, custom_headers:nil) + get_by_name_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value! end # @@ -64,7 +64,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_name_async(resource_group_name, workspace_collection_name, custom_headers = nil) + def get_by_name_async(resource_group_name, workspace_collection_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil? @@ -72,6 +72,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [WorkspaceCollection] operation results. # - def create(resource_group_name, workspace_collection_name, body, custom_headers = nil) - response = create_async(resource_group_name, workspace_collection_name, body, custom_headers).value! + def create(resource_group_name, workspace_collection_name, body, custom_headers:nil) + response = create_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers = nil) - create_async(resource_group_name, workspace_collection_name, body, custom_headers).value! + def create_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers:nil) + create_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, workspace_collection_name, body, custom_headers = nil) + def create_async(resource_group_name, workspace_collection_name, body, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil? @@ -179,7 +180,6 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -246,8 +246,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [WorkspaceCollection] operation results. # - def update(resource_group_name, workspace_collection_name, body, custom_headers = nil) - response = update_async(resource_group_name, workspace_collection_name, body, custom_headers).value! + def update(resource_group_name, workspace_collection_name, body, custom_headers:nil) + response = update_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -265,8 +265,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers = nil) - update_async(resource_group_name, workspace_collection_name, body, custom_headers).value! + def update_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers:nil) + update_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value! end # @@ -283,7 +283,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, workspace_collection_name, body, custom_headers = nil) + def update_async(resource_group_name, workspace_collection_name, body, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil? @@ -292,7 +292,6 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -354,8 +353,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, workspace_collection_name, custom_headers = nil) - response = delete_async(resource_group_name, workspace_collection_name, custom_headers).value! + def delete(resource_group_name, workspace_collection_name, custom_headers:nil) + response = delete_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value! nil end @@ -369,9 +368,9 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, workspace_collection_name, custom_headers = nil) + def delete_async(resource_group_name, workspace_collection_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, workspace_collection_name, custom_headers) + promise = begin_delete_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -396,8 +395,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [CheckNameResponse] operation results. # - def check_name_availability(location, body, custom_headers = nil) - response = check_name_availability_async(location, body, custom_headers).value! + def check_name_availability(location, body, custom_headers:nil) + response = check_name_availability_async(location, body, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -412,8 +411,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(location, body, custom_headers = nil) - check_name_availability_async(location, body, custom_headers).value! + def check_name_availability_with_http_info(location, body, custom_headers:nil) + check_name_availability_async(location, body, custom_headers:custom_headers).value! end # @@ -427,7 +426,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(location, body, custom_headers = nil) + def check_name_availability_async(location, body, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -435,7 +434,6 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -498,8 +496,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [WorkspaceCollectionList] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -513,8 +511,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -527,13 +525,14 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -587,8 +586,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [WorkspaceCollectionList] operation results. # - def list_by_subscription(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -601,8 +600,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -614,12 +613,13 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -676,8 +676,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [WorkspaceCollectionAccessKeys] operation results. # - def get_access_keys(resource_group_name, workspace_collection_name, custom_headers = nil) - response = get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers).value! + def get_access_keys(resource_group_name, workspace_collection_name, custom_headers:nil) + response = get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -693,8 +693,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_access_keys_with_http_info(resource_group_name, workspace_collection_name, custom_headers = nil) - get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers).value! + def get_access_keys_with_http_info(resource_group_name, workspace_collection_name, custom_headers:nil) + get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value! end # @@ -709,7 +709,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers = nil) + def get_access_keys_async(resource_group_name, workspace_collection_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil? @@ -717,6 +717,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -774,8 +775,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [WorkspaceCollectionAccessKeys] operation results. # - def regenerate_key(resource_group_name, workspace_collection_name, body, custom_headers = nil) - response = regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers).value! + def regenerate_key(resource_group_name, workspace_collection_name, body, custom_headers:nil) + response = regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -792,8 +793,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers = nil) - regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, workspace_collection_name, body, custom_headers:nil) + regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers:custom_headers).value! end # @@ -809,7 +810,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers = nil) + def regenerate_key_async(resource_group_name, workspace_collection_name, body, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil? @@ -818,7 +819,6 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -881,8 +881,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # will be added to the HTTP request. # # - def migrate(resource_group_name, body, custom_headers = nil) - response = migrate_async(resource_group_name, body, custom_headers).value! + def migrate(resource_group_name, body, custom_headers:nil) + response = migrate_async(resource_group_name, body, custom_headers:custom_headers).value! nil end @@ -897,8 +897,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def migrate_with_http_info(resource_group_name, body, custom_headers = nil) - migrate_async(resource_group_name, body, custom_headers).value! + def migrate_with_http_info(resource_group_name, body, custom_headers:nil) + migrate_async(resource_group_name, body, custom_headers:custom_headers).value! end # @@ -912,7 +912,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def migrate_async(resource_group_name, body, custom_headers = nil) + def migrate_async(resource_group_name, body, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -920,7 +920,6 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -973,8 +972,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, workspace_collection_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, workspace_collection_name, custom_headers).value! + def begin_delete(resource_group_name, workspace_collection_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value! nil end @@ -989,8 +988,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, workspace_collection_name, custom_headers = nil) - begin_delete_async(resource_group_name, workspace_collection_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, workspace_collection_name, custom_headers:nil) + begin_delete_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value! end # @@ -1004,7 +1003,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, workspace_collection_name, custom_headers = nil) + def begin_delete_async(resource_group_name, workspace_collection_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil? @@ -1012,6 +1011,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/workspaces.rb b/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/workspaces.rb index 49fab99b0..f207a6480 100644 --- a/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/workspaces.rb +++ b/management/azure_mgmt_powerbi_embedded/lib/2016-01-29/generated/azure_mgmt_powerbi_embedded/workspaces.rb @@ -34,8 +34,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [WorkspaceList] operation results. # - def list(resource_group_name, workspace_collection_name, custom_headers = nil) - response = list_async(resource_group_name, workspace_collection_name, custom_headers).value! + def list(resource_group_name, workspace_collection_name, custom_headers:nil) + response = list_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,8 +51,8 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, workspace_collection_name, custom_headers = nil) - list_async(resource_group_name, workspace_collection_name, custom_headers).value! + def list_with_http_info(resource_group_name, workspace_collection_name, custom_headers:nil) + list_async(resource_group_name, workspace_collection_name, custom_headers:custom_headers).value! end # @@ -67,7 +67,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, workspace_collection_name, custom_headers = nil) + def list_async(resource_group_name, workspace_collection_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'workspace_collection_name is nil' if workspace_collection_name.nil? @@ -75,6 +75,7 @@ module Azure::PowerBiEmbedded::Mgmt::V2016_01_29 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_powerbi_embedded/lib/profiles/latest/modules/powerbiembedded_profile_module.rb b/management/azure_mgmt_powerbi_embedded/lib/profiles/latest/modules/powerbiembedded_profile_module.rb index 133aa41d3..8d24ce96b 100644 --- a/management/azure_mgmt_powerbi_embedded/lib/profiles/latest/modules/powerbiembedded_profile_module.rb +++ b/management/azure_mgmt_powerbi_embedded/lib/profiles/latest/modules/powerbiembedded_profile_module.rb @@ -50,13 +50,13 @@ module Azure::PowerBiEmbedded::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::PowerBIEmbeddedManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::PowerBiEmbedded::Mgmt::V2016_01_29::PowerBIEmbeddedManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @workspace_collections = client_0.workspace_collections - @workspaces = client_0.workspaces + add_telemetry(@client_0) + @workspace_collections = @client_0.workspace_collections + @workspaces = @client_0.workspaces @model_classes = ModelClasses.new end @@ -66,6 +66,14 @@ module Azure::PowerBiEmbedded::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/operations.rb b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/operations.rb index 9b924f61a..0cba77722 100644 --- a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/operations.rb +++ b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/operations.rb @@ -29,8 +29,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [ClientDiscoveryResponse] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # @return [ClientDiscoveryResponse] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/registered_identities.rb b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/registered_identities.rb index 30d60dd02..d9a1442e6 100644 --- a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/registered_identities.rb +++ b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/registered_identities.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, vault_name, identity_name, custom_headers = nil) - response = delete_async(resource_group_name, vault_name, identity_name, custom_headers).value! + def delete(resource_group_name, vault_name, identity_name, custom_headers:nil) + response = delete_async(resource_group_name, vault_name, identity_name, custom_headers:custom_headers).value! nil end @@ -49,8 +49,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, vault_name, identity_name, custom_headers = nil) - delete_async(resource_group_name, vault_name, identity_name, custom_headers).value! + def delete_with_http_info(resource_group_name, vault_name, identity_name, custom_headers:nil) + delete_async(resource_group_name, vault_name, identity_name, custom_headers:custom_headers).value! end # @@ -65,7 +65,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, vault_name, identity_name, custom_headers = nil) + def delete_async(resource_group_name, vault_name, identity_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -74,6 +74,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/replication_usages.rb b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/replication_usages.rb index 5bc02858d..834e3809d 100644 --- a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/replication_usages.rb +++ b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/replication_usages.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [ReplicationUsageList] operation results. # - def list(resource_group_name, vault_name, custom_headers = nil) - response = list_async(resource_group_name, vault_name, custom_headers).value! + def list(resource_group_name, vault_name, custom_headers:nil) + response = list_async(resource_group_name, vault_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, vault_name, custom_headers = nil) - list_async(resource_group_name, vault_name, custom_headers).value! + def list_with_http_info(resource_group_name, vault_name, custom_headers:nil) + list_async(resource_group_name, vault_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, vault_name, custom_headers = nil) + def list_async(resource_group_name, vault_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -71,6 +71,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/usages.rb b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/usages.rb index 28515c122..f34b84847 100644 --- a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/usages.rb +++ b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/usages.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [VaultUsageList] operation results. # - def list_by_vaults(resource_group_name, vault_name, custom_headers = nil) - response = list_by_vaults_async(resource_group_name, vault_name, custom_headers).value! + def list_by_vaults(resource_group_name, vault_name, custom_headers:nil) + response = list_by_vaults_async(resource_group_name, vault_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_vaults_with_http_info(resource_group_name, vault_name, custom_headers = nil) - list_by_vaults_async(resource_group_name, vault_name, custom_headers).value! + def list_by_vaults_with_http_info(resource_group_name, vault_name, custom_headers:nil) + list_by_vaults_async(resource_group_name, vault_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_vaults_async(resource_group_name, vault_name, custom_headers = nil) + def list_by_vaults_async(resource_group_name, vault_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -71,6 +71,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vault_certificates.rb b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vault_certificates.rb index 624ba6179..69519ffb5 100644 --- a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vault_certificates.rb +++ b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vault_certificates.rb @@ -35,8 +35,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [VaultCertificateResponse] operation results. # - def create(resource_group_name, vault_name, certificate_name, certificate_request, custom_headers = nil) - response = create_async(resource_group_name, vault_name, certificate_name, certificate_request, custom_headers).value! + def create(resource_group_name, vault_name, certificate_name, certificate_request, custom_headers:nil) + response = create_async(resource_group_name, vault_name, certificate_name, certificate_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, vault_name, certificate_name, certificate_request, custom_headers = nil) - create_async(resource_group_name, vault_name, certificate_name, certificate_request, custom_headers).value! + def create_with_http_info(resource_group_name, vault_name, certificate_name, certificate_request, custom_headers:nil) + create_async(resource_group_name, vault_name, certificate_name, certificate_request, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, vault_name, certificate_name, certificate_request, custom_headers = nil) + def create_async(resource_group_name, vault_name, certificate_name, certificate_request, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -82,7 +82,6 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vault_extended_info_operations.rb b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vault_extended_info_operations.rb index f416cab7f..0afd0a6a3 100644 --- a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vault_extended_info_operations.rb +++ b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vault_extended_info_operations.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [VaultExtendedInfoResource] operation results. # - def get(resource_group_name, vault_name, custom_headers = nil) - response = get_async(resource_group_name, vault_name, custom_headers).value! + def get(resource_group_name, vault_name, custom_headers:nil) + response = get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vault_name, custom_headers = nil) - get_async(resource_group_name, vault_name, custom_headers).value! + def get_with_http_info(resource_group_name, vault_name, custom_headers:nil) + get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vault_name, custom_headers = nil) + def get_async(resource_group_name, vault_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -71,6 +71,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -128,8 +129,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [VaultExtendedInfoResource] operation results. # - def create_or_update(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers = nil) - response = create_or_update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers).value! + def create_or_update(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers:nil) + response = create_or_update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -146,8 +147,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers = nil) - create_or_update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers:nil) + create_or_update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers:custom_headers).value! end # @@ -163,7 +164,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers = nil) + def create_or_update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? @@ -172,7 +173,6 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -238,8 +238,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [VaultExtendedInfoResource] operation results. # - def update(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers = nil) - response = update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers).value! + def update(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers:nil) + response = update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -256,8 +256,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers = nil) - update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers).value! + def update_with_http_info(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers:nil) + update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers:custom_headers).value! end # @@ -273,7 +273,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers = nil) + def update_async(resource_group_name, vault_name, resource_resource_extended_info_details, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? @@ -282,7 +282,6 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vaults.rb b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vaults.rb index 09fa53e59..eff5616cf 100644 --- a/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vaults.rb +++ b/management/azure_mgmt_recovery_services/lib/2016-06-01/generated/azure_mgmt_recovery_services/vaults.rb @@ -29,8 +29,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [VaultList] operation results. # - def list_by_subscription_id(custom_headers = nil) - response = list_by_subscription_id_async(custom_headers).value! + def list_by_subscription_id(custom_headers:nil) + response = list_by_subscription_id_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_id_with_http_info(custom_headers = nil) - list_by_subscription_id_async(custom_headers).value! + def list_by_subscription_id_with_http_info(custom_headers:nil) + list_by_subscription_id_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_id_async(custom_headers = nil) + def list_by_subscription_id_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,8 +115,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [VaultList] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -129,8 +130,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -143,13 +144,14 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -205,8 +207,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Vault] operation results. # - def get(resource_group_name, vault_name, custom_headers = nil) - response = get_async(resource_group_name, vault_name, custom_headers).value! + def get(resource_group_name, vault_name, custom_headers:nil) + response = get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -221,8 +223,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vault_name, custom_headers = nil) - get_async(resource_group_name, vault_name, custom_headers).value! + def get_with_http_info(resource_group_name, vault_name, custom_headers:nil) + get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! end # @@ -236,7 +238,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vault_name, custom_headers = nil) + def get_async(resource_group_name, vault_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -244,6 +246,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -300,8 +303,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Vault] operation results. # - def create_or_update(resource_group_name, vault_name, vault, custom_headers = nil) - response = create_or_update_async(resource_group_name, vault_name, vault, custom_headers).value! + def create_or_update(resource_group_name, vault_name, vault, custom_headers:nil) + response = create_or_update_async(resource_group_name, vault_name, vault, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -317,8 +320,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, vault_name, vault, custom_headers = nil) - create_or_update_async(resource_group_name, vault_name, vault, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, vault_name, vault, custom_headers:nil) + create_or_update_async(resource_group_name, vault_name, vault, custom_headers:custom_headers).value! end # @@ -333,7 +336,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, vault_name, vault, custom_headers = nil) + def create_or_update_async(resource_group_name, vault_name, vault, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -342,7 +345,6 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -415,8 +417,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, vault_name, custom_headers = nil) - response = delete_async(resource_group_name, vault_name, custom_headers).value! + def delete(resource_group_name, vault_name, custom_headers:nil) + response = delete_async(resource_group_name, vault_name, custom_headers:custom_headers).value! nil end @@ -431,8 +433,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, vault_name, custom_headers = nil) - delete_async(resource_group_name, vault_name, custom_headers).value! + def delete_with_http_info(resource_group_name, vault_name, custom_headers:nil) + delete_async(resource_group_name, vault_name, custom_headers:custom_headers).value! end # @@ -446,7 +448,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, vault_name, custom_headers = nil) + def delete_async(resource_group_name, vault_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -454,6 +456,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,8 +503,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Vault] operation results. # - def update(resource_group_name, vault_name, vault, custom_headers = nil) - response = update_async(resource_group_name, vault_name, vault, custom_headers).value! + def update(resource_group_name, vault_name, vault, custom_headers:nil) + response = update_async(resource_group_name, vault_name, vault, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -517,8 +520,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, vault_name, vault, custom_headers = nil) - update_async(resource_group_name, vault_name, vault, custom_headers).value! + def update_with_http_info(resource_group_name, vault_name, vault, custom_headers:nil) + update_async(resource_group_name, vault_name, vault, custom_headers:custom_headers).value! end # @@ -533,7 +536,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, vault_name, vault, custom_headers = nil) + def update_async(resource_group_name, vault_name, vault, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -542,7 +545,6 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_recovery_services/lib/2016-12-01/generated/azure_mgmt_recovery_services/backup_storage_configs.rb b/management/azure_mgmt_recovery_services/lib/2016-12-01/generated/azure_mgmt_recovery_services/backup_storage_configs.rb index 4f38d2b66..a41225878 100644 --- a/management/azure_mgmt_recovery_services/lib/2016-12-01/generated/azure_mgmt_recovery_services/backup_storage_configs.rb +++ b/management/azure_mgmt_recovery_services/lib/2016-12-01/generated/azure_mgmt_recovery_services/backup_storage_configs.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # # @return [BackupStorageConfig] operation results. # - def get(resource_group_name, vault_name, custom_headers = nil) - response = get_async(resource_group_name, vault_name, custom_headers).value! + def get(resource_group_name, vault_name, custom_headers:nil) + response = get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vault_name, custom_headers = nil) - get_async(resource_group_name, vault_name, custom_headers).value! + def get_with_http_info(resource_group_name, vault_name, custom_headers:nil) + get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vault_name, custom_headers = nil) + def get_async(resource_group_name, vault_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -71,6 +71,7 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def update(resource_group_name, vault_name, backup_storage_config, custom_headers = nil) - response = update_async(resource_group_name, vault_name, backup_storage_config, custom_headers).value! + def update(resource_group_name, vault_name, backup_storage_config, custom_headers:nil) + response = update_async(resource_group_name, vault_name, backup_storage_config, custom_headers:custom_headers).value! nil end @@ -143,8 +144,8 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, vault_name, backup_storage_config, custom_headers = nil) - update_async(resource_group_name, vault_name, backup_storage_config, custom_headers).value! + def update_with_http_info(resource_group_name, vault_name, backup_storage_config, custom_headers:nil) + update_async(resource_group_name, vault_name, backup_storage_config, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, vault_name, backup_storage_config, custom_headers = nil) + def update_async(resource_group_name, vault_name, backup_storage_config, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -168,7 +169,6 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_recovery_services/lib/2016-12-01/generated/azure_mgmt_recovery_services/backup_vault_configs.rb b/management/azure_mgmt_recovery_services/lib/2016-12-01/generated/azure_mgmt_recovery_services/backup_vault_configs.rb index c5b14b25e..b2fa0e233 100644 --- a/management/azure_mgmt_recovery_services/lib/2016-12-01/generated/azure_mgmt_recovery_services/backup_vault_configs.rb +++ b/management/azure_mgmt_recovery_services/lib/2016-12-01/generated/azure_mgmt_recovery_services/backup_vault_configs.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # # @return [BackupVaultConfig] operation results. # - def get(resource_group_name, vault_name, custom_headers = nil) - response = get_async(resource_group_name, vault_name, custom_headers).value! + def get(resource_group_name, vault_name, custom_headers:nil) + response = get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vault_name, custom_headers = nil) - get_async(resource_group_name, vault_name, custom_headers).value! + def get_with_http_info(resource_group_name, vault_name, custom_headers:nil) + get_async(resource_group_name, vault_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vault_name, custom_headers = nil) + def get_async(resource_group_name, vault_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -71,6 +71,7 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # # @return [BackupVaultConfig] operation results. # - def update(resource_group_name, vault_name, backup_vault_config, custom_headers = nil) - response = update_async(resource_group_name, vault_name, backup_vault_config, custom_headers).value! + def update(resource_group_name, vault_name, backup_vault_config, custom_headers:nil) + response = update_async(resource_group_name, vault_name, backup_vault_config, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, vault_name, backup_vault_config, custom_headers = nil) - update_async(resource_group_name, vault_name, backup_vault_config, custom_headers).value! + def update_with_http_info(resource_group_name, vault_name, backup_vault_config, custom_headers:nil) + update_async(resource_group_name, vault_name, backup_vault_config, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, vault_name, backup_vault_config, custom_headers = nil) + def update_async(resource_group_name, vault_name, backup_vault_config, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -169,7 +170,6 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_recovery_services/lib/profiles/latest/modules/recoveryservices_profile_module.rb b/management/azure_mgmt_recovery_services/lib/profiles/latest/modules/recoveryservices_profile_module.rb index d3e2f019f..d0c284e09 100644 --- a/management/azure_mgmt_recovery_services/lib/profiles/latest/modules/recoveryservices_profile_module.rb +++ b/management/azure_mgmt_recovery_services/lib/profiles/latest/modules/recoveryservices_profile_module.rb @@ -76,26 +76,26 @@ module Azure::RecoveryServices::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::RecoveryServices::Mgmt::V2016_06_01::RecoveryServicesClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::RecoveryServices::Mgmt::V2016_06_01::RecoveryServicesClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @vault_certificates = client_0.vault_certificates - @registered_identities = client_0.registered_identities - @replication_usages = client_0.replication_usages - @vaults = client_0.vaults - @operations = client_0.operations - @vault_extended_info_operations = client_0.vault_extended_info_operations - @usages = client_0.usages + add_telemetry(@client_0) + @vault_certificates = @client_0.vault_certificates + @registered_identities = @client_0.registered_identities + @replication_usages = @client_0.replication_usages + @vaults = @client_0.vaults + @operations = @client_0.operations + @vault_extended_info_operations = @client_0.vault_extended_info_operations + @usages = @client_0.usages - client_1 = Azure::RecoveryServices::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::RecoveryServices::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @backup_vault_configs = client_1.backup_vault_configs - @backup_storage_configs = client_1.backup_storage_configs + add_telemetry(@client_1) + @backup_vault_configs = @client_1.backup_vault_configs + @backup_storage_configs = @client_1.backup_storage_configs @model_classes = ModelClasses.new end @@ -105,6 +105,16 @@ module Azure::RecoveryServices::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_engines.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_engines.rb index a46f84360..22e4ba6cf 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_engines.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_engines.rb @@ -41,8 +41,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def get(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - first_page = get_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers) + def get(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + first_page = get_as_lazy(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end @@ -62,8 +62,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - get_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + get_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! end # @@ -82,7 +82,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) + def get_async(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -90,6 +90,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -145,8 +146,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [BackupEngineBaseResourceList] operation results. # - def get_next(next_page_link, custom_headers = nil) - response = get_next_async(next_page_link, custom_headers).value! + def get_next(next_page_link, custom_headers:nil) + response = get_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -161,8 +162,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_next_with_http_info(next_page_link, custom_headers = nil) - get_next_async(next_page_link, custom_headers).value! + def get_next_with_http_info(next_page_link, custom_headers:nil) + get_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -176,11 +177,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_next_async(next_page_link, custom_headers = nil) + def get_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,12 +243,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # @return [BackupEngineBaseResourceList] which provide lazy access to pages of # the response. # - def get_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - response = get_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def get_as_lazy(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + response = get_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - get_next_async(next_page_link, custom_headers) + get_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb index cbe999372..719a6eb17 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb @@ -41,8 +41,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def get(vault_name, resource_group_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! nil end @@ -63,8 +63,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -93,6 +93,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb index d5a5dec03..6c3dffb58 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb @@ -41,8 +41,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [OperationStatus] operation results. # - def get(vault_name, resource_group_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -62,8 +62,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! end # @@ -82,7 +82,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -91,6 +91,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backups.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backups.rb index afb9f4f43..e7cc210cf 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backups.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/backups.rb @@ -44,8 +44,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def trigger(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers = nil) - response = trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers).value! + def trigger(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers:nil) + response = trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers:custom_headers).value! nil end @@ -69,8 +69,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def trigger_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers = nil) - trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers).value! + def trigger_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers:nil) + trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers:custom_headers).value! end # @@ -93,7 +93,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers = nil) + def trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_backup_request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -105,7 +105,6 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb index b3e8fc963..c1da27878 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb @@ -37,8 +37,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [OperationResultInfoBaseResource] operation results. # - def get(vault_name, resource_group_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! end # @@ -70,7 +70,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -79,6 +79,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb index 5c805e63c..d993a9996 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb @@ -45,8 +45,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def revoke(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) - response = revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value! + def revoke(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) + response = revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:custom_headers).value! nil end @@ -71,8 +71,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def revoke_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) - revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value! + def revoke_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) + revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:custom_headers).value! end # @@ -96,7 +96,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) + def revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -108,6 +108,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -164,8 +165,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def provision(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers = nil) - response = provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers).value! + def provision(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers:nil) + response = provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers:custom_headers).value! nil end @@ -192,8 +193,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def provision_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers = nil) - provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers).value! + def provision_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers:nil) + provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers:custom_headers).value! end # @@ -219,7 +220,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers = nil) + def provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_ilrrequest, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -232,7 +233,6 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb index 397a08178..78d2b4fb2 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb @@ -37,8 +37,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def trigger(vault_name, resource_group_name, job_name, custom_headers = nil) - response = trigger_async(vault_name, resource_group_name, job_name, custom_headers).value! + def trigger(vault_name, resource_group_name, job_name, custom_headers:nil) + response = trigger_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value! nil end @@ -55,8 +55,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def trigger_with_http_info(vault_name, resource_group_name, job_name, custom_headers = nil) - trigger_async(vault_name, resource_group_name, job_name, custom_headers).value! + def trigger_with_http_info(vault_name, resource_group_name, job_name, custom_headers:nil) + trigger_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def trigger_async(vault_name, resource_group_name, job_name, custom_headers = nil) + def trigger_async(vault_name, resource_group_name, job_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_details.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_details.rb index 9a4e35eba..6cabfd2b3 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_details.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_details.rb @@ -37,8 +37,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [JobResource] operation results. # - def get(vault_name, resource_group_name, job_name, custom_headers = nil) - response = get_async(vault_name, resource_group_name, job_name, custom_headers).value! + def get(vault_name, resource_group_name, job_name, custom_headers:nil) + response = get_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, job_name, custom_headers = nil) - get_async(vault_name, resource_group_name, job_name, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, job_name, custom_headers:nil) + get_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value! end # @@ -70,7 +70,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, job_name, custom_headers = nil) + def get_async(vault_name, resource_group_name, job_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -79,6 +79,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb index bb7c07f5c..ef62b358b 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb @@ -37,8 +37,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def get(vault_name, resource_group_name, job_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, job_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers:custom_headers).value! nil end @@ -55,8 +55,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, job_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, job_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -82,6 +82,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/jobs.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/jobs.rb index 4ee9f7b96..bc78c1b1f 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/jobs.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/jobs.rb @@ -42,8 +42,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def export(vault_name, resource_group_name, filter = nil, custom_headers = nil) - response = export_async(vault_name, resource_group_name, filter, custom_headers).value! + def export(vault_name, resource_group_name, filter:nil, custom_headers:nil) + response = export_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! nil end @@ -65,8 +65,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_with_http_info(vault_name, resource_group_name, filter = nil, custom_headers = nil) - export_async(vault_name, resource_group_name, filter, custom_headers).value! + def export_with_http_info(vault_name, resource_group_name, filter:nil, custom_headers:nil) + export_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -87,7 +87,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_async(vault_name, resource_group_name, filter = nil, custom_headers = nil) + def export_async(vault_name, resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -95,6 +95,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -149,8 +150,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers) + def list(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end @@ -174,8 +175,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! end # @@ -198,7 +199,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -206,6 +207,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -260,8 +262,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [JobResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -275,8 +277,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -289,11 +291,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -357,12 +360,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [JobResourceList] which provide lazy access to pages of the response. # - def list_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protectable_items.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protectable_items.rb index 3cac71b2c..290ef1c53 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protectable_items.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protectable_items.rb @@ -46,8 +46,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers) + def list(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end @@ -72,8 +72,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! end # @@ -97,7 +97,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -105,6 +105,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -161,8 +162,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [WorkloadProtectableItemResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -178,8 +179,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -194,11 +195,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -264,12 +266,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # @return [WorkloadProtectableItemResourceList] which provide lazy access to # pages of the response. # - def list_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb index 44881e12a..2b904250c 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb @@ -42,8 +42,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [ProtectedItemResource] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -64,8 +64,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value! end # @@ -85,7 +85,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -97,6 +97,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb index 35d0a96a0..b124d3d0b 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb @@ -46,8 +46,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [OperationStatus] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -72,8 +72,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value! end # @@ -97,7 +97,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -109,6 +109,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_items.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_items.rb index 55426f079..67f3b8bf9 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_items.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protected_items.rb @@ -43,8 +43,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers) + def list(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end @@ -66,8 +66,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! end # @@ -88,7 +88,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -96,6 +96,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -159,8 +160,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [ProtectedItemResource] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -183,8 +184,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers).value! end # @@ -206,7 +207,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -217,6 +218,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -280,8 +282,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def create_or_update(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_protected_item, custom_headers = nil) - response = create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_protected_item, custom_headers).value! + def create_or_update(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_protected_item, custom_headers:nil) + response = create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_protected_item, custom_headers:custom_headers).value! nil end @@ -305,8 +307,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_protected_item, custom_headers = nil) - create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_protected_item, custom_headers).value! + def create_or_update_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_protected_item, custom_headers:nil) + create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_protected_item, custom_headers:custom_headers).value! end # @@ -329,7 +331,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_protected_item, custom_headers = nil) + def create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, resource_protected_item, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -341,7 +343,6 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -400,8 +401,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers = nil) - response = delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers).value! + def delete(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:nil) + response = delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:custom_headers).value! nil end @@ -422,8 +423,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers = nil) - delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers).value! + def delete_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:nil) + delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:custom_headers).value! end # @@ -443,7 +444,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers = nil) + def delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -454,6 +455,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -499,8 +501,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [ProtectedItemResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -515,8 +517,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -530,11 +532,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -597,12 +600,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # @return [ProtectedItemResourceList] which provide lazy access to pages of the # response. # - def list_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb index 5fd86d9ca..7f14371e6 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb @@ -40,8 +40,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [ProtectionContainerResource] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:custom_headers).value! end # @@ -79,7 +79,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -90,6 +90,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb index a3664ffab..579418ad3 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb @@ -38,8 +38,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def get(vault_name, resource_group_name, fabric_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:custom_headers).value! nil end @@ -57,8 +57,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -85,6 +85,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_containers.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_containers.rb index 3378b680a..fceeef5f7 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_containers.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_containers.rb @@ -40,8 +40,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [ProtectionContainerResource] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:custom_headers).value! end # @@ -79,7 +79,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -89,6 +89,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -149,8 +150,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, filter = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, filter, custom_headers) + def list(vault_name, resource_group_name, filter:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -170,8 +171,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -190,7 +191,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -198,6 +199,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -255,8 +257,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def refresh(vault_name, resource_group_name, fabric_name, custom_headers = nil) - response = refresh_async(vault_name, resource_group_name, fabric_name, custom_headers).value! + def refresh(vault_name, resource_group_name, fabric_name, custom_headers:nil) + response = refresh_async(vault_name, resource_group_name, fabric_name, custom_headers:custom_headers).value! nil end @@ -274,8 +276,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def refresh_with_http_info(vault_name, resource_group_name, fabric_name, custom_headers = nil) - refresh_async(vault_name, resource_group_name, fabric_name, custom_headers).value! + def refresh_with_http_info(vault_name, resource_group_name, fabric_name, custom_headers:nil) + refresh_async(vault_name, resource_group_name, fabric_name, custom_headers:custom_headers).value! end # @@ -292,7 +294,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def refresh_async(vault_name, resource_group_name, fabric_name, custom_headers = nil) + def refresh_async(vault_name, resource_group_name, fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -301,6 +303,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -346,8 +349,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def unregister(resource_group_name, vault_name, identity_name, custom_headers = nil) - response = unregister_async(resource_group_name, vault_name, identity_name, custom_headers).value! + def unregister(resource_group_name, vault_name, identity_name, custom_headers:nil) + response = unregister_async(resource_group_name, vault_name, identity_name, custom_headers:custom_headers).value! nil end @@ -363,8 +366,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def unregister_with_http_info(resource_group_name, vault_name, identity_name, custom_headers = nil) - unregister_async(resource_group_name, vault_name, identity_name, custom_headers).value! + def unregister_with_http_info(resource_group_name, vault_name, identity_name, custom_headers:nil) + unregister_async(resource_group_name, vault_name, identity_name, custom_headers:custom_headers).value! end # @@ -379,7 +382,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def unregister_async(resource_group_name, vault_name, identity_name, custom_headers = nil) + def unregister_async(resource_group_name, vault_name, identity_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? @@ -388,6 +391,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -432,8 +436,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [ProtectionContainerResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -447,8 +451,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -461,11 +465,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -526,12 +531,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # @return [ProtectionContainerResourceList] which provide lazy access to pages # of the response. # - def list_as_lazy(vault_name, resource_group_name, filter = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, filter:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb index 6a66d343b..c9ec68ecd 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb @@ -40,8 +40,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [ProtectionPolicyResource] operation results. # - def get(vault_name, resource_group_name, policy_name, custom_headers = nil) - response = get_async(vault_name, resource_group_name, policy_name, custom_headers).value! + def get(vault_name, resource_group_name, policy_name, custom_headers:nil) + response = get_async(vault_name, resource_group_name, policy_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, policy_name, custom_headers = nil) - get_async(vault_name, resource_group_name, policy_name, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, policy_name, custom_headers:nil) + get_async(vault_name, resource_group_name, policy_name, custom_headers:custom_headers).value! end # @@ -79,7 +79,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, policy_name, custom_headers = nil) + def get_async(vault_name, resource_group_name, policy_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -88,6 +88,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +148,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [ProtectionPolicyResource] operation results. # - def create_or_update(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers = nil) - response = create_or_update_async(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers).value! + def create_or_update(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers:nil) + response = create_or_update_async(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -167,8 +168,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers = nil) - create_or_update_async(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers).value! + def create_or_update_with_http_info(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers:nil) + create_or_update_async(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers:custom_headers).value! end # @@ -186,7 +187,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers = nil) + def create_or_update_async(vault_name, resource_group_name, policy_name, resource_protection_policy, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -196,7 +197,6 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -262,8 +262,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def delete(vault_name, resource_group_name, policy_name, custom_headers = nil) - response = delete_async(vault_name, resource_group_name, policy_name, custom_headers).value! + def delete(vault_name, resource_group_name, policy_name, custom_headers:nil) + response = delete_async(vault_name, resource_group_name, policy_name, custom_headers:custom_headers).value! nil end @@ -281,8 +281,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(vault_name, resource_group_name, policy_name, custom_headers = nil) - delete_async(vault_name, resource_group_name, policy_name, custom_headers).value! + def delete_with_http_info(vault_name, resource_group_name, policy_name, custom_headers:nil) + delete_async(vault_name, resource_group_name, policy_name, custom_headers:custom_headers).value! end # @@ -299,7 +299,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(vault_name, resource_group_name, policy_name, custom_headers = nil) + def delete_async(vault_name, resource_group_name, policy_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -308,6 +308,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -357,8 +358,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, filter = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, filter, custom_headers) + def list(vault_name, resource_group_name, filter:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -377,8 +378,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -396,7 +397,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -404,6 +405,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -459,8 +461,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [ProtectionPolicyResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -475,8 +477,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -490,11 +492,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -554,12 +557,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # @return [ProtectionPolicyResourceList] which provide lazy access to pages of # the response. # - def list_as_lazy(vault_name, resource_group_name, filter = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, filter:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb index 2e408a0ea..546fceac2 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb @@ -39,8 +39,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [ProtectionPolicyResource] operation results. # - def get(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -58,8 +58,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:custom_headers).value! end # @@ -76,7 +76,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -86,6 +86,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb index 95f9afff5..e4cc0f136 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb @@ -43,8 +43,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [OperationStatus] operation results. # - def get(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -66,8 +66,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:custom_headers).value! end # @@ -88,7 +88,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -98,6 +98,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/recovery_points.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/recovery_points.rb index 866d65b7c..dc4ee388f 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/recovery_points.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/recovery_points.rb @@ -45,8 +45,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [RecoveryPointResource] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -70,8 +70,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:custom_headers).value! end # @@ -94,7 +94,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -106,6 +106,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -168,8 +169,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers) + def list(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -191,8 +192,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers).value! end # @@ -213,7 +214,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -224,6 +225,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -278,8 +280,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [RecoveryPointResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -293,8 +295,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -307,11 +309,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -374,12 +377,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # @return [RecoveryPointResourceList] which provide lazy access to pages of the # response. # - def list_as_lazy(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/restores.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/restores.rb index 803a3be7d..ce4c21f8d 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/restores.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/restores.rb @@ -44,8 +44,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # will be added to the HTTP request. # # - def trigger(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_restore_request, custom_headers = nil) - response = trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_restore_request, custom_headers).value! + def trigger(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_restore_request, custom_headers:nil) + response = trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_restore_request, custom_headers:custom_headers).value! nil end @@ -69,8 +69,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def trigger_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_restore_request, custom_headers = nil) - trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_restore_request, custom_headers).value! + def trigger_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_restore_request, custom_headers:nil) + trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_restore_request, custom_headers:custom_headers).value! end # @@ -93,7 +93,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_restore_request, custom_headers = nil) + def trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, resource_restore_request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -106,7 +106,6 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/operations.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/operations.rb index 827d4715b..044280b66 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/operations.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-08-10/generated/azure_mgmt_recovery_services_backup/operations.rb @@ -29,8 +29,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_08_10 # # @return [ClientDiscoveryResponse] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_08_10 # @return [ClientDiscoveryResponse] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_engines.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_engines.rb index e21c7df2b..56b7e362a 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_engines.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_engines.rb @@ -35,8 +35,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers) + def list(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end @@ -54,8 +54,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -80,6 +80,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -138,8 +139,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [BackupEngineBaseResource] operation results. # - def get(vault_name, resource_group_name, backup_engine_name, filter = nil, skip_token = nil, custom_headers = nil) - response = get_async(vault_name, resource_group_name, backup_engine_name, filter, skip_token, custom_headers).value! + def get(vault_name, resource_group_name, backup_engine_name, filter:nil, skip_token:nil, custom_headers:nil) + response = get_async(vault_name, resource_group_name, backup_engine_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -157,8 +158,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, backup_engine_name, filter = nil, skip_token = nil, custom_headers = nil) - get_async(vault_name, resource_group_name, backup_engine_name, filter, skip_token, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, backup_engine_name, filter:nil, skip_token:nil, custom_headers:nil) + get_async(vault_name, resource_group_name, backup_engine_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! end # @@ -175,7 +176,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, backup_engine_name, filter = nil, skip_token = nil, custom_headers = nil) + def get_async(vault_name, resource_group_name, backup_engine_name, filter:nil, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -184,6 +185,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -239,8 +241,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [BackupEngineBaseResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -255,8 +257,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -270,11 +272,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -333,12 +336,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # @return [BackupEngineBaseResourceList] which provide lazy access to pages of # the response. # - def list_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb index 76db6a9f9..911199274 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_operation_results.rb @@ -37,8 +37,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def get(vault_name, resource_group_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! nil end @@ -59,8 +59,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! end # @@ -80,7 +80,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -89,6 +89,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb index 3ef3b6ef7..55ffe0b71 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_operation_statuses.rb @@ -37,8 +37,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [OperationStatus] operation results. # - def get(vault_name, resource_group_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -58,8 +58,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -87,6 +87,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_policies.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_policies.rb index 6806c6f5c..9ec20f653 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_policies.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_policies.rb @@ -34,8 +34,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, filter = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, filter, custom_headers) + def list(vault_name, resource_group_name, filter:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -77,6 +77,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -132,8 +133,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [ProtectionPolicyResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -148,8 +149,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -163,11 +164,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -225,12 +227,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # @return [ProtectionPolicyResourceList] which provide lazy access to pages of # the response. # - def list_as_lazy(vault_name, resource_group_name, filter = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, filter:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protectable_items.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protectable_items.rb index 163aeac46..db8d1e37e 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protectable_items.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protectable_items.rb @@ -35,8 +35,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers) + def list(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end @@ -54,8 +54,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -80,6 +80,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [WorkloadProtectableItemResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -166,11 +167,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -229,12 +231,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # @return [WorkloadProtectableItemResourceList] which provide lazy access to # pages of the response. # - def list_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb index 6ccd4968f..20883e1f8 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protected_items.rb @@ -34,8 +34,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers) + def list(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -77,6 +77,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [ProtectedItemResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -146,8 +147,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -160,11 +161,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,12 +224,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # @return [ProtectedItemResourceList] which provide lazy access to pages of the # response. # - def list_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protection_containers.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protection_containers.rb index ab321225a..39e794ede 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protection_containers.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_protection_containers.rb @@ -33,8 +33,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, filter = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, filter, custom_headers) + def list(vault_name, resource_group_name, filter:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -74,6 +74,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -128,8 +129,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [ProtectionContainerResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -143,8 +144,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -157,11 +158,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -218,12 +220,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # @return [ProtectionContainerResourceList] which provide lazy access to pages # of the response. # - def list_as_lazy(vault_name, resource_group_name, filter = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, filter:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_resource_storage_configs.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_resource_storage_configs.rb index 32e97b15c..72bb308d9 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_resource_storage_configs.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_resource_storage_configs.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [BackupResourceConfigResource] operation results. # - def get(vault_name, resource_group_name, custom_headers = nil) - response = get_async(vault_name, resource_group_name, custom_headers).value! + def get(vault_name, resource_group_name, custom_headers:nil) + response = get_async(vault_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, custom_headers = nil) - get_async(vault_name, resource_group_name, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, custom_headers:nil) + get_async(vault_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, custom_headers = nil) + def get_async(vault_name, resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -71,6 +71,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -125,8 +126,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def update(vault_name, resource_group_name, custom_headers = nil) - response = update_async(vault_name, resource_group_name, custom_headers).value! + def update(vault_name, resource_group_name, custom_headers:nil) + response = update_async(vault_name, resource_group_name, custom_headers:custom_headers).value! nil end @@ -141,8 +142,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(vault_name, resource_group_name, custom_headers = nil) - update_async(vault_name, resource_group_name, custom_headers).value! + def update_with_http_info(vault_name, resource_group_name, custom_headers:nil) + update_async(vault_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -156,7 +157,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(vault_name, resource_group_name, custom_headers = nil) + def update_async(vault_name, resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -164,6 +165,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb index b02d293c2..5e066aa5d 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_resource_vault_configs.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [BackupResourceVaultConfigResource] operation results. # - def get(vault_name, resource_group_name, custom_headers = nil) - response = get_async(vault_name, resource_group_name, custom_headers).value! + def get(vault_name, resource_group_name, custom_headers:nil) + response = get_async(vault_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, custom_headers = nil) - get_async(vault_name, resource_group_name, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, custom_headers:nil) + get_async(vault_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, custom_headers = nil) + def get_async(vault_name, resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -71,6 +71,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [BackupResourceVaultConfigResource] operation results. # - def update(vault_name, resource_group_name, parameters, custom_headers = nil) - response = update_async(vault_name, resource_group_name, parameters, custom_headers).value! + def update(vault_name, resource_group_name, parameters, custom_headers:nil) + response = update_async(vault_name, resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(vault_name, resource_group_name, parameters, custom_headers = nil) - update_async(vault_name, resource_group_name, parameters, custom_headers).value! + def update_with_http_info(vault_name, resource_group_name, parameters, custom_headers:nil) + update_async(vault_name, resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(vault_name, resource_group_name, parameters, custom_headers = nil) + def update_async(vault_name, resource_group_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -169,7 +170,6 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_usage_summaries.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_usage_summaries.rb index 34ef05197..d2fb5d6a5 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_usage_summaries.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backup_usage_summaries.rb @@ -34,8 +34,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [BackupManagementUsageList] operation results. # - def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -77,6 +77,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backups.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backups.rb index 46ca2394e..8a25a90d3 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backups.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/backups.rb @@ -39,8 +39,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def trigger(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers = nil) - response = trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers).value! + def trigger(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:nil) + response = trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:custom_headers).value! nil end @@ -63,8 +63,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def trigger_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers = nil) - trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers).value! + def trigger_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:nil) + trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:custom_headers).value! end # @@ -86,7 +86,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers = nil) + def trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -98,7 +98,6 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb index e7d8f5b10..b5e74e1cd 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/export_jobs_operation_results.rb @@ -35,8 +35,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [OperationResultInfoBaseResource] operation results. # - def get(vault_name, resource_group_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, operation_id, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb index af247a4e1..d4db51675 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/item_level_recovery_connections.rb @@ -42,8 +42,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def provision(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers = nil) - response = provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers).value! + def provision(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers:nil) + response = provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers:custom_headers).value! nil end @@ -69,8 +69,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def provision_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers = nil) - provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers).value! + def provision_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers:nil) + provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers:custom_headers).value! end # @@ -95,7 +95,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers = nil) + def provision_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -108,7 +108,6 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -170,8 +169,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def revoke(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) - response = revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value! + def revoke(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) + response = revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:custom_headers).value! nil end @@ -195,8 +194,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def revoke_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) - revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value! + def revoke_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) + revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:custom_headers).value! end # @@ -219,7 +218,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) + def revoke_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -231,6 +230,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb index 94c6a98df..f44d05393 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb @@ -33,8 +33,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def trigger(vault_name, resource_group_name, job_name, custom_headers = nil) - response = trigger_async(vault_name, resource_group_name, job_name, custom_headers).value! + def trigger(vault_name, resource_group_name, job_name, custom_headers:nil) + response = trigger_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value! nil end @@ -51,8 +51,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def trigger_with_http_info(vault_name, resource_group_name, job_name, custom_headers = nil) - trigger_async(vault_name, resource_group_name, job_name, custom_headers).value! + def trigger_with_http_info(vault_name, resource_group_name, job_name, custom_headers:nil) + trigger_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value! end # @@ -68,7 +68,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def trigger_async(vault_name, resource_group_name, job_name, custom_headers = nil) + def trigger_async(vault_name, resource_group_name, job_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -77,6 +77,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb index 5c4790754..dd3337587 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/job_operation_results.rb @@ -35,8 +35,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def get(vault_name, resource_group_name, job_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, job_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers:custom_headers).value! nil end @@ -55,8 +55,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, job_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, job_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers:custom_headers).value! end # @@ -74,7 +74,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, job_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -84,6 +84,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/jobs.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/jobs.rb index 276615cc2..5d0be6961 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/jobs.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/jobs.rb @@ -33,8 +33,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def export(vault_name, resource_group_name, filter = nil, custom_headers = nil) - response = export_async(vault_name, resource_group_name, filter, custom_headers).value! + def export(vault_name, resource_group_name, filter:nil, custom_headers:nil) + response = export_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! nil end @@ -51,8 +51,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_with_http_info(vault_name, resource_group_name, filter = nil, custom_headers = nil) - export_async(vault_name, resource_group_name, filter, custom_headers).value! + def export_with_http_info(vault_name, resource_group_name, filter:nil, custom_headers:nil) + export_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! end # @@ -68,7 +68,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_async(vault_name, resource_group_name, filter = nil, custom_headers = nil) + def export_async(vault_name, resource_group_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -76,6 +76,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb index 94e91bbad..6cadc50d7 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_results.rb @@ -39,8 +39,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [ProtectedItemResource] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -62,8 +62,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -96,6 +96,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb index 800b62c08..f62983828 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_item_operation_statuses.rb @@ -43,8 +43,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [OperationStatus] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -70,8 +70,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:custom_headers).value! end # @@ -96,7 +96,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -108,6 +108,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_items.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_items.rb index 21b1141e4..9a84ab0bf 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_items.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protected_items.rb @@ -40,8 +40,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [ProtectedItemResource] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -64,8 +64,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers).value! end # @@ -87,7 +87,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -98,6 +98,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -159,8 +160,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def create_or_update(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers = nil) - response = create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers).value! + def create_or_update(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:nil) + response = create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:custom_headers).value! nil end @@ -182,8 +183,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers = nil) - create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers).value! + def create_or_update_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:nil) + create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:custom_headers).value! end # @@ -204,7 +205,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers = nil) + def create_or_update_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -216,7 +217,6 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -275,8 +275,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def delete(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers = nil) - response = delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers).value! + def delete(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:nil) + response = delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:custom_headers).value! nil end @@ -297,8 +297,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers = nil) - delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers).value! + def delete_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:nil) + delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:custom_headers).value! end # @@ -318,7 +318,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers = nil) + def delete_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -329,6 +329,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb index 2e3329dc1..818f3b955 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_container_operation_results.rb @@ -37,8 +37,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [ProtectionContainerResource] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -58,8 +58,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -89,6 +89,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb index a971b6b93..ded44bdda 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_container_refresh_operation_results.rb @@ -35,8 +35,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def get(vault_name, resource_group_name, fabric_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:custom_headers).value! nil end @@ -55,8 +55,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:custom_headers).value! end # @@ -74,7 +74,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -84,6 +84,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_containers.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_containers.rb index 5a97d88e1..ad5ca0abe 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_containers.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_containers.rb @@ -36,8 +36,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [ProtectionContainerResource] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -56,8 +56,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -85,6 +85,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -142,8 +143,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def refresh(vault_name, resource_group_name, fabric_name, custom_headers = nil) - response = refresh_async(vault_name, resource_group_name, fabric_name, custom_headers).value! + def refresh(vault_name, resource_group_name, fabric_name, custom_headers:nil) + response = refresh_async(vault_name, resource_group_name, fabric_name, custom_headers:custom_headers).value! nil end @@ -161,8 +162,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def refresh_with_http_info(vault_name, resource_group_name, fabric_name, custom_headers = nil) - refresh_async(vault_name, resource_group_name, fabric_name, custom_headers).value! + def refresh_with_http_info(vault_name, resource_group_name, fabric_name, custom_headers:nil) + refresh_async(vault_name, resource_group_name, fabric_name, custom_headers:custom_headers).value! end # @@ -179,7 +180,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def refresh_async(vault_name, resource_group_name, fabric_name, custom_headers = nil) + def refresh_async(vault_name, resource_group_name, fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -188,6 +189,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb index 8d38627b5..8b39050a9 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policies.rb @@ -35,8 +35,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [ProtectionPolicyResource] operation results. # - def get(vault_name, resource_group_name, policy_name, custom_headers = nil) - response = get_async(vault_name, resource_group_name, policy_name, custom_headers).value! + def get(vault_name, resource_group_name, policy_name, custom_headers:nil) + response = get_async(vault_name, resource_group_name, policy_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, policy_name, custom_headers = nil) - get_async(vault_name, resource_group_name, policy_name, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, policy_name, custom_headers:nil) + get_async(vault_name, resource_group_name, policy_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, policy_name, custom_headers = nil) + def get_async(vault_name, resource_group_name, policy_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -139,8 +140,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [ProtectionPolicyResource] operation results. # - def create_or_update(vault_name, resource_group_name, policy_name, parameters, custom_headers = nil) - response = create_or_update_async(vault_name, resource_group_name, policy_name, parameters, custom_headers).value! + def create_or_update(vault_name, resource_group_name, policy_name, parameters, custom_headers:nil) + response = create_or_update_async(vault_name, resource_group_name, policy_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -158,8 +159,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(vault_name, resource_group_name, policy_name, parameters, custom_headers = nil) - create_or_update_async(vault_name, resource_group_name, policy_name, parameters, custom_headers).value! + def create_or_update_with_http_info(vault_name, resource_group_name, policy_name, parameters, custom_headers:nil) + create_or_update_async(vault_name, resource_group_name, policy_name, parameters, custom_headers:custom_headers).value! end # @@ -176,7 +177,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(vault_name, resource_group_name, policy_name, parameters, custom_headers = nil) + def create_or_update_async(vault_name, resource_group_name, policy_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -186,7 +187,6 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -252,8 +252,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def delete(vault_name, resource_group_name, policy_name, custom_headers = nil) - response = delete_async(vault_name, resource_group_name, policy_name, custom_headers).value! + def delete(vault_name, resource_group_name, policy_name, custom_headers:nil) + response = delete_async(vault_name, resource_group_name, policy_name, custom_headers:custom_headers).value! nil end @@ -271,8 +271,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(vault_name, resource_group_name, policy_name, custom_headers = nil) - delete_async(vault_name, resource_group_name, policy_name, custom_headers).value! + def delete_with_http_info(vault_name, resource_group_name, policy_name, custom_headers:nil) + delete_async(vault_name, resource_group_name, policy_name, custom_headers:custom_headers).value! end # @@ -289,7 +289,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(vault_name, resource_group_name, policy_name, custom_headers = nil) + def delete_async(vault_name, resource_group_name, policy_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -298,6 +298,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb index 250c58559..6b541259c 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_results.rb @@ -36,8 +36,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [ProtectionPolicyResource] operation results. # - def get(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -56,8 +56,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -85,6 +85,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb index 1afdf9553..c325bd5ed 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/protection_policy_operation_statuses.rb @@ -40,8 +40,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [OperationStatus] operation results. # - def get(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers).value! + def get(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -64,8 +64,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) - get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) + get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:custom_headers).value! end # @@ -87,7 +87,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, policy_name, operation_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -97,6 +97,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/recovery_points.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/recovery_points.rb index ea2efdba1..a7787c402 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/recovery_points.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/recovery_points.rb @@ -38,8 +38,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers) + def list(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -92,6 +92,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -155,8 +156,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [RecoveryPointResource] operation results. # - def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) - response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value! + def get(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) + response = get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -179,8 +180,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) - get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) + get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:custom_headers).value! end # @@ -202,7 +203,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers = nil) + def get_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -214,6 +215,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -268,8 +270,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [RecoveryPointResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -283,8 +285,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -297,11 +299,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -363,12 +366,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # @return [RecoveryPointResourceList] which provide lazy access to pages of the # response. # - def list_as_lazy(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/restores.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/restores.rb index 2b3884197..50c0fe54b 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/restores.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/restores.rb @@ -39,8 +39,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def trigger(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers = nil) - response = trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers).value! + def trigger(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers:nil) + response = trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers:custom_headers).value! nil end @@ -63,8 +63,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def trigger_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers = nil) - trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers).value! + def trigger_with_http_info(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers:nil) + trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers:custom_headers).value! end # @@ -86,7 +86,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers = nil) + def trigger_async(vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -99,7 +99,6 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/security_pins.rb b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/security_pins.rb index 1fc115ce4..33b3083e1 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/security_pins.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/security_pins.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [TokenInformation] operation results. # - def get(vault_name, resource_group_name, custom_headers = nil) - response = get_async(vault_name, resource_group_name, custom_headers).value! + def get(vault_name, resource_group_name, custom_headers:nil) + response = get_async(vault_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, custom_headers = nil) - get_async(vault_name, resource_group_name, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, custom_headers:nil) + get_async(vault_name, resource_group_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, custom_headers = nil) + def get_async(vault_name, resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -71,6 +71,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb b/management/azure_mgmt_recovery_services_backup/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb index f996f8fb8..0601087e5 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/backup_jobs.rb @@ -34,8 +34,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 # # @return [Array] operation results. # - def list(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - first_page = list_as_lazy(vault_name, resource_group_name, filter, skip_token, custom_headers) + def list(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + first_page = list_as_lazy(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_with_http_info(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) + def list_async(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -77,6 +77,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 # # @return [JobResourceList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -146,8 +147,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -160,11 +161,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -221,12 +223,12 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 # # @return [JobResourceList] which provide lazy access to pages of the response. # - def list_as_lazy(vault_name, resource_group_name, filter = nil, skip_token = nil, custom_headers = nil) - response = list_async(vault_name, resource_group_name, filter, skip_token, custom_headers).value! + def list_as_lazy(vault_name, resource_group_name, filter:nil, skip_token:nil, custom_headers:nil) + response = list_async(vault_name, resource_group_name, filter:filter, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_backup/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/job_details.rb b/management/azure_mgmt_recovery_services_backup/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/job_details.rb index b5031b43a..616d7ae3d 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/job_details.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/job_details.rb @@ -33,8 +33,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 # # @return [JobResource] operation results. # - def get(vault_name, resource_group_name, job_name, custom_headers = nil) - response = get_async(vault_name, resource_group_name, job_name, custom_headers).value! + def get(vault_name, resource_group_name, job_name, custom_headers:nil) + response = get_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(vault_name, resource_group_name, job_name, custom_headers = nil) - get_async(vault_name, resource_group_name, job_name, custom_headers).value! + def get_with_http_info(vault_name, resource_group_name, job_name, custom_headers:nil) + get_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(vault_name, resource_group_name, job_name, custom_headers = nil) + def get_async(vault_name, resource_group_name, job_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vault_name is nil' if vault_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -75,6 +75,7 @@ module Azure::RecoveryServicesBackup::Mgmt::V2017_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_backup/lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb b/management/azure_mgmt_recovery_services_backup/lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb index 8e6d0a05d..1157c398e 100644 --- a/management/azure_mgmt_recovery_services_backup/lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb +++ b/management/azure_mgmt_recovery_services_backup/lib/profiles/latest/modules/recoveryservicesbackup_profile_module.rb @@ -221,54 +221,54 @@ module Azure::RecoveryServicesBackup::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::RecoveryServicesBackup::Mgmt::V2016_08_10::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations + add_telemetry(@client_0) + @operations = @client_0.operations - client_1 = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @backup_resource_vault_configs = client_1.backup_resource_vault_configs - @backup_engines = client_1.backup_engines - @protection_container_refresh_operation_results = client_1.protection_container_refresh_operation_results - @protection_containers = client_1.protection_containers - @protection_container_operation_results = client_1.protection_container_operation_results - @protected_items = client_1.protected_items - @backups = client_1.backups - @protected_item_operation_results = client_1.protected_item_operation_results - @protected_item_operation_statuses = client_1.protected_item_operation_statuses - @recovery_points = client_1.recovery_points - @item_level_recovery_connections = client_1.item_level_recovery_connections - @restores = client_1.restores - @job_cancellations = client_1.job_cancellations - @job_operation_results = client_1.job_operation_results - @export_jobs_operation_results = client_1.export_jobs_operation_results - @jobs = client_1.jobs - @backup_operation_results = client_1.backup_operation_results - @backup_operation_statuses = client_1.backup_operation_statuses - @backup_policies = client_1.backup_policies - @protection_policies = client_1.protection_policies - @protection_policy_operation_results = client_1.protection_policy_operation_results - @protection_policy_operation_statuses = client_1.protection_policy_operation_statuses - @backup_protectable_items = client_1.backup_protectable_items - @backup_protected_items = client_1.backup_protected_items - @backup_protection_containers = client_1.backup_protection_containers - @security_pins = client_1.security_pins - @backup_resource_storage_configs = client_1.backup_resource_storage_configs - @backup_usage_summaries = client_1.backup_usage_summaries + add_telemetry(@client_1) + @backup_resource_vault_configs = @client_1.backup_resource_vault_configs + @backup_engines = @client_1.backup_engines + @protection_container_refresh_operation_results = @client_1.protection_container_refresh_operation_results + @protection_containers = @client_1.protection_containers + @protection_container_operation_results = @client_1.protection_container_operation_results + @protected_items = @client_1.protected_items + @backups = @client_1.backups + @protected_item_operation_results = @client_1.protected_item_operation_results + @protected_item_operation_statuses = @client_1.protected_item_operation_statuses + @recovery_points = @client_1.recovery_points + @item_level_recovery_connections = @client_1.item_level_recovery_connections + @restores = @client_1.restores + @job_cancellations = @client_1.job_cancellations + @job_operation_results = @client_1.job_operation_results + @export_jobs_operation_results = @client_1.export_jobs_operation_results + @jobs = @client_1.jobs + @backup_operation_results = @client_1.backup_operation_results + @backup_operation_statuses = @client_1.backup_operation_statuses + @backup_policies = @client_1.backup_policies + @protection_policies = @client_1.protection_policies + @protection_policy_operation_results = @client_1.protection_policy_operation_results + @protection_policy_operation_statuses = @client_1.protection_policy_operation_statuses + @backup_protectable_items = @client_1.backup_protectable_items + @backup_protected_items = @client_1.backup_protected_items + @backup_protection_containers = @client_1.backup_protection_containers + @security_pins = @client_1.security_pins + @backup_resource_storage_configs = @client_1.backup_resource_storage_configs + @backup_usage_summaries = @client_1.backup_usage_summaries - client_2 = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) - if(client_2.respond_to?(:subscription_id)) - client_2.subscription_id = configurable.subscription_id + @client_2 = Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options) + if(@client_2.respond_to?(:subscription_id)) + @client_2.subscription_id = configurable.subscription_id end - add_telemetry(client_2) - @backup_jobs = client_2.backup_jobs - @job_details = client_2.job_details + add_telemetry(@client_2) + @backup_jobs = @client_2.backup_jobs + @job_details = @client_2.job_details @model_classes = ModelClasses.new end @@ -278,6 +278,18 @@ module Azure::RecoveryServicesBackup::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_2.respond_to?method + @client_2.send(method, *args) + elsif @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/operations.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/operations.rb index ebdb2ae8b..636fbc14a 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/operations.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/operations.rb @@ -31,8 +31,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,13 +60,14 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -123,8 +124,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [OperationsDiscoveryCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -140,8 +141,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -156,11 +157,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -215,12 +217,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [OperationsDiscoveryCollection] which provide lazy access to pages of # the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/recovery_points.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/recovery_points.rb index 455ac35d9..0438714d1 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/recovery_points.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/recovery_points.rb @@ -36,8 +36,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPoint] operation results. # - def get(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers = nil) - response = get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers).value! + def get(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers:nil) + response = get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -56,8 +56,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers = nil) - get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers).value! + def get_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers:nil) + get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers = nil) + def get_async(fabric_name, protection_container_name, replicated_protected_item_name, recovery_point_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -87,6 +87,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -145,8 +146,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_protected_items(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - first_page = list_by_replication_protected_items_as_lazy(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers) + def list_by_replication_protected_items(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + first_page = list_by_replication_protected_items_as_lazy(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers) first_page.get_all_items end @@ -164,8 +165,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_protected_items_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def list_by_replication_protected_items_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! end # @@ -182,7 +183,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) + def list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -193,6 +194,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -249,8 +251,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPointCollection] operation results. # - def list_by_replication_protected_items_next(next_page_link, custom_headers = nil) - response = list_by_replication_protected_items_next_async(next_page_link, custom_headers).value! + def list_by_replication_protected_items_next(next_page_link, custom_headers:nil) + response = list_by_replication_protected_items_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -266,8 +268,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_protected_items_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_protected_items_next_async(next_page_link, custom_headers).value! + def list_by_replication_protected_items_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_protected_items_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -282,11 +284,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_protected_items_next_async(next_page_link, custom_headers = nil) + def list_by_replication_protected_items_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -345,12 +348,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [RecoveryPointCollection] which provide lazy access to pages of the # response. # - def list_by_replication_protected_items_as_lazy(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - response = list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def list_by_replication_protected_items_as_lazy(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + response = list_by_replication_protected_items_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_protected_items_next_async(next_page_link, custom_headers) + list_by_replication_protected_items_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb index f513384f1..9fa31830c 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb @@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Alert] operation results. # - def get(alert_setting_name, custom_headers = nil) - response = get_async(alert_setting_name, custom_headers).value! + def get(alert_setting_name, custom_headers:nil) + response = get_async(alert_setting_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(alert_setting_name, custom_headers = nil) - get_async(alert_setting_name, custom_headers).value! + def get_with_http_info(alert_setting_name, custom_headers:nil) + get_async(alert_setting_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(alert_setting_name, custom_headers = nil) + def get_async(alert_setting_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -75,6 +75,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Alert] operation results. # - def create(alert_setting_name, request, custom_headers = nil) - response = create_async(alert_setting_name, request, custom_headers).value! + def create(alert_setting_name, request, custom_headers:nil) + response = create_async(alert_setting_name, request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -152,8 +153,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(alert_setting_name, request, custom_headers = nil) - create_async(alert_setting_name, request, custom_headers).value! + def create_with_http_info(alert_setting_name, request, custom_headers:nil) + create_async(alert_setting_name, request, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(alert_setting_name, request, custom_headers = nil) + def create_async(alert_setting_name, request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -180,7 +181,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -243,8 +243,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -258,8 +258,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -272,7 +272,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -280,6 +280,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -336,8 +337,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [AlertCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -353,8 +354,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -369,11 +370,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -427,12 +429,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [AlertCollection] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_events.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_events.rb index 6e11f42d3..41e004aff 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_events.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_events.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Event] operation results. # - def get(event_name, custom_headers = nil) - response = get_async(event_name, custom_headers).value! + def get(event_name, custom_headers:nil) + response = get_async(event_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(event_name, custom_headers = nil) - get_async(event_name, custom_headers).value! + def get_with_http_info(event_name, custom_headers:nil) + get_async(event_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(event_name, custom_headers = nil) + def get_async(event_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -72,6 +72,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -143,8 +144,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -158,7 +159,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -166,6 +167,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +224,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [EventCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -239,8 +241,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -255,11 +257,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,12 +317,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [EventCollection] which provide lazy access to pages of the response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb index 473620e03..127efad8c 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb @@ -30,8 +30,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def migrate_to_aad(fabric_name, custom_headers = nil) - response = migrate_to_aad_async(fabric_name, custom_headers).value! + def migrate_to_aad(fabric_name, custom_headers:nil) + response = migrate_to_aad_async(fabric_name, custom_headers:custom_headers).value! nil end @@ -43,9 +43,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def migrate_to_aad_async(fabric_name, custom_headers = nil) + def migrate_to_aad_async(fabric_name, custom_headers:nil) # Send request - promise = begin_migrate_to_aad_async(fabric_name, custom_headers) + promise = begin_migrate_to_aad_async(fabric_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -71,8 +71,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Fabric] operation results. # - def renew_certificate(fabric_name, renew_certificate, custom_headers = nil) - response = renew_certificate_async(fabric_name, renew_certificate, custom_headers).value! + def renew_certificate(fabric_name, renew_certificate, custom_headers:nil) + response = renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -85,9 +85,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def renew_certificate_async(fabric_name, renew_certificate, custom_headers = nil) + def renew_certificate_async(fabric_name, renew_certificate, custom_headers:nil) # Send request - promise = begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers) + promise = begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -118,8 +118,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Fabric] operation results. # - def reassociate_gateway(fabric_name, failover_process_server_request, custom_headers = nil) - response = reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers).value! + def reassociate_gateway(fabric_name, failover_process_server_request, custom_headers:nil) + response = reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,9 +134,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers = nil) + def reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:nil) # Send request - promise = begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers) + promise = begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -163,8 +163,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Fabric] operation results. # - def check_consistency(fabric_name, custom_headers = nil) - response = check_consistency_async(fabric_name, custom_headers).value! + def check_consistency(fabric_name, custom_headers:nil) + response = check_consistency_async(fabric_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -176,9 +176,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def check_consistency_async(fabric_name, custom_headers = nil) + def check_consistency_async(fabric_name, custom_headers:nil) # Send request - promise = begin_check_consistency_async(fabric_name, custom_headers) + promise = begin_check_consistency_async(fabric_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -203,8 +203,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(fabric_name, custom_headers = nil) - response = delete_async(fabric_name, custom_headers).value! + def delete(fabric_name, custom_headers:nil) + response = delete_async(fabric_name, custom_headers:custom_headers).value! nil end @@ -216,9 +216,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(fabric_name, custom_headers = nil) + def delete_async(fabric_name, custom_headers:nil) # Send request - promise = begin_delete_async(fabric_name, custom_headers) + promise = begin_delete_async(fabric_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -243,8 +243,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Fabric] operation results. # - def get(fabric_name, custom_headers = nil) - response = get_async(fabric_name, custom_headers).value! + def get(fabric_name, custom_headers:nil) + response = get_async(fabric_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -259,8 +259,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, custom_headers = nil) - get_async(fabric_name, custom_headers).value! + def get_with_http_info(fabric_name, custom_headers:nil) + get_async(fabric_name, custom_headers:custom_headers).value! end # @@ -274,7 +274,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, custom_headers = nil) + def get_async(fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -283,6 +283,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -339,8 +340,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Fabric] operation results. # - def create(fabric_name, input, custom_headers = nil) - response = create_async(fabric_name, input, custom_headers).value! + def create(fabric_name, input, custom_headers:nil) + response = create_async(fabric_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -353,9 +354,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(fabric_name, input, custom_headers = nil) + def create_async(fabric_name, input, custom_headers:nil) # Send request - promise = begin_create_async(fabric_name, input, custom_headers) + promise = begin_create_async(fabric_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -380,8 +381,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge(fabric_name, custom_headers = nil) - response = purge_async(fabric_name, custom_headers).value! + def purge(fabric_name, custom_headers:nil) + response = purge_async(fabric_name, custom_headers:custom_headers).value! nil end @@ -393,9 +394,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_async(fabric_name, custom_headers = nil) + def purge_async(fabric_name, custom_headers:nil) # Send request - promise = begin_purge_async(fabric_name, custom_headers) + promise = begin_purge_async(fabric_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -419,8 +420,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -434,8 +435,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -448,7 +449,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -456,6 +457,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -510,8 +512,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_migrate_to_aad(fabric_name, custom_headers = nil) - response = begin_migrate_to_aad_async(fabric_name, custom_headers).value! + def begin_migrate_to_aad(fabric_name, custom_headers:nil) + response = begin_migrate_to_aad_async(fabric_name, custom_headers:custom_headers).value! nil end @@ -526,8 +528,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_migrate_to_aad_with_http_info(fabric_name, custom_headers = nil) - begin_migrate_to_aad_async(fabric_name, custom_headers).value! + def begin_migrate_to_aad_with_http_info(fabric_name, custom_headers:nil) + begin_migrate_to_aad_async(fabric_name, custom_headers:custom_headers).value! end # @@ -541,7 +543,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_migrate_to_aad_async(fabric_name, custom_headers = nil) + def begin_migrate_to_aad_async(fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -550,6 +552,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -596,8 +599,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Fabric] operation results. # - def begin_renew_certificate(fabric_name, renew_certificate, custom_headers = nil) - response = begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers).value! + def begin_renew_certificate(fabric_name, renew_certificate, custom_headers:nil) + response = begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -613,8 +616,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_renew_certificate_with_http_info(fabric_name, renew_certificate, custom_headers = nil) - begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers).value! + def begin_renew_certificate_with_http_info(fabric_name, renew_certificate, custom_headers:nil) + begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers).value! end # @@ -629,7 +632,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers = nil) + def begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -639,7 +642,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -707,8 +709,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Fabric] operation results. # - def begin_reassociate_gateway(fabric_name, failover_process_server_request, custom_headers = nil) - response = begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers).value! + def begin_reassociate_gateway(fabric_name, failover_process_server_request, custom_headers:nil) + response = begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -727,8 +729,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reassociate_gateway_with_http_info(fabric_name, failover_process_server_request, custom_headers = nil) - begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers).value! + def begin_reassociate_gateway_with_http_info(fabric_name, failover_process_server_request, custom_headers:nil) + begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers).value! end # @@ -746,7 +748,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers = nil) + def begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -756,7 +758,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -820,8 +821,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Fabric] operation results. # - def begin_check_consistency(fabric_name, custom_headers = nil) - response = begin_check_consistency_async(fabric_name, custom_headers).value! + def begin_check_consistency(fabric_name, custom_headers:nil) + response = begin_check_consistency_async(fabric_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -836,8 +837,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_check_consistency_with_http_info(fabric_name, custom_headers = nil) - begin_check_consistency_async(fabric_name, custom_headers).value! + def begin_check_consistency_with_http_info(fabric_name, custom_headers:nil) + begin_check_consistency_async(fabric_name, custom_headers:custom_headers).value! end # @@ -851,7 +852,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_check_consistency_async(fabric_name, custom_headers = nil) + def begin_check_consistency_async(fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -860,6 +861,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -914,8 +916,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_delete(fabric_name, custom_headers = nil) - response = begin_delete_async(fabric_name, custom_headers).value! + def begin_delete(fabric_name, custom_headers:nil) + response = begin_delete_async(fabric_name, custom_headers:custom_headers).value! nil end @@ -930,8 +932,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(fabric_name, custom_headers = nil) - begin_delete_async(fabric_name, custom_headers).value! + def begin_delete_with_http_info(fabric_name, custom_headers:nil) + begin_delete_async(fabric_name, custom_headers:custom_headers).value! end # @@ -945,7 +947,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(fabric_name, custom_headers = nil) + def begin_delete_async(fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -954,6 +956,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1000,8 +1003,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Fabric] operation results. # - def begin_create(fabric_name, input, custom_headers = nil) - response = begin_create_async(fabric_name, input, custom_headers).value! + def begin_create(fabric_name, input, custom_headers:nil) + response = begin_create_async(fabric_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1017,8 +1020,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(fabric_name, input, custom_headers = nil) - begin_create_async(fabric_name, input, custom_headers).value! + def begin_create_with_http_info(fabric_name, input, custom_headers:nil) + begin_create_async(fabric_name, input, custom_headers:custom_headers).value! end # @@ -1033,7 +1036,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(fabric_name, input, custom_headers = nil) + def begin_create_async(fabric_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1043,7 +1046,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1106,8 +1108,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_purge(fabric_name, custom_headers = nil) - response = begin_purge_async(fabric_name, custom_headers).value! + def begin_purge(fabric_name, custom_headers:nil) + response = begin_purge_async(fabric_name, custom_headers:custom_headers).value! nil end @@ -1122,8 +1124,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_with_http_info(fabric_name, custom_headers = nil) - begin_purge_async(fabric_name, custom_headers).value! + def begin_purge_with_http_info(fabric_name, custom_headers:nil) + begin_purge_async(fabric_name, custom_headers:custom_headers).value! end # @@ -1137,7 +1139,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_async(fabric_name, custom_headers = nil) + def begin_purge_async(fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1146,6 +1148,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1192,8 +1195,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [FabricCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1209,8 +1212,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1225,11 +1228,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1284,12 +1288,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [FabricCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_jobs.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_jobs.rb index 161c088a8..3204ec3e0 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_jobs.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_jobs.rb @@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Job] operation results. # - def resume(job_name, resume_job_params, custom_headers = nil) - response = resume_async(job_name, resume_job_params, custom_headers).value! + def resume(job_name, resume_job_params, custom_headers:nil) + response = resume_async(job_name, resume_job_params, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -47,9 +47,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def resume_async(job_name, resume_job_params, custom_headers = nil) + def resume_async(job_name, resume_job_params, custom_headers:nil) # Send request - promise = begin_resume_async(job_name, resume_job_params, custom_headers) + promise = begin_resume_async(job_name, resume_job_params, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -76,8 +76,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Job] operation results. # - def restart(job_name, custom_headers = nil) - response = restart_async(job_name, custom_headers).value! + def restart(job_name, custom_headers:nil) + response = restart_async(job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -89,9 +89,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restart_async(job_name, custom_headers = nil) + def restart_async(job_name, custom_headers:nil) # Send request - promise = begin_restart_async(job_name, custom_headers) + promise = begin_restart_async(job_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -118,8 +118,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Job] operation results. # - def cancel(job_name, custom_headers = nil) - response = cancel_async(job_name, custom_headers).value! + def cancel(job_name, custom_headers:nil) + response = cancel_async(job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -131,9 +131,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def cancel_async(job_name, custom_headers = nil) + def cancel_async(job_name, custom_headers:nil) # Send request - promise = begin_cancel_async(job_name, custom_headers) + promise = begin_cancel_async(job_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -160,8 +160,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Job] operation results. # - def get(job_name, custom_headers = nil) - response = get_async(job_name, custom_headers).value! + def get(job_name, custom_headers:nil) + response = get_async(job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -176,8 +176,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(job_name, custom_headers = nil) - get_async(job_name, custom_headers).value! + def get_with_http_info(job_name, custom_headers:nil) + get_async(job_name, custom_headers:custom_headers).value! end # @@ -191,7 +191,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(job_name, custom_headers = nil) + def get_async(job_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -200,6 +200,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -256,8 +257,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Job] operation results. # - def export(job_query_parameter, custom_headers = nil) - response = export_async(job_query_parameter, custom_headers).value! + def export(job_query_parameter, custom_headers:nil) + response = export_async(job_query_parameter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -269,9 +270,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def export_async(job_query_parameter, custom_headers = nil) + def export_async(job_query_parameter, custom_headers:nil) # Send request - promise = begin_export_async(job_query_parameter, custom_headers) + promise = begin_export_async(job_query_parameter, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -298,8 +299,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(filter = nil, custom_headers = nil) - first_page = list_as_lazy(filter, custom_headers) + def list(filter:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -314,8 +315,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, custom_headers = nil) - list_async(filter, custom_headers).value! + def list_with_http_info(filter:nil, custom_headers:nil) + list_async(filter:filter, custom_headers:custom_headers).value! end # @@ -329,7 +330,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, custom_headers = nil) + def list_async(filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -337,6 +338,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -393,8 +395,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Job] operation results. # - def begin_resume(job_name, resume_job_params, custom_headers = nil) - response = begin_resume_async(job_name, resume_job_params, custom_headers).value! + def begin_resume(job_name, resume_job_params, custom_headers:nil) + response = begin_resume_async(job_name, resume_job_params, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -410,8 +412,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_resume_with_http_info(job_name, resume_job_params, custom_headers = nil) - begin_resume_async(job_name, resume_job_params, custom_headers).value! + def begin_resume_with_http_info(job_name, resume_job_params, custom_headers:nil) + begin_resume_async(job_name, resume_job_params, custom_headers:custom_headers).value! end # @@ -426,7 +428,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_resume_async(job_name, resume_job_params, custom_headers = nil) + def begin_resume_async(job_name, resume_job_params, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -436,7 +438,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -500,8 +501,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Job] operation results. # - def begin_restart(job_name, custom_headers = nil) - response = begin_restart_async(job_name, custom_headers).value! + def begin_restart(job_name, custom_headers:nil) + response = begin_restart_async(job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -516,8 +517,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restart_with_http_info(job_name, custom_headers = nil) - begin_restart_async(job_name, custom_headers).value! + def begin_restart_with_http_info(job_name, custom_headers:nil) + begin_restart_async(job_name, custom_headers:custom_headers).value! end # @@ -531,7 +532,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restart_async(job_name, custom_headers = nil) + def begin_restart_async(job_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -540,6 +541,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -595,8 +597,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Job] operation results. # - def begin_cancel(job_name, custom_headers = nil) - response = begin_cancel_async(job_name, custom_headers).value! + def begin_cancel(job_name, custom_headers:nil) + response = begin_cancel_async(job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -611,8 +613,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_cancel_with_http_info(job_name, custom_headers = nil) - begin_cancel_async(job_name, custom_headers).value! + def begin_cancel_with_http_info(job_name, custom_headers:nil) + begin_cancel_async(job_name, custom_headers:custom_headers).value! end # @@ -626,7 +628,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_cancel_async(job_name, custom_headers = nil) + def begin_cancel_async(job_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -635,6 +637,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -691,8 +694,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Job] operation results. # - def begin_export(job_query_parameter, custom_headers = nil) - response = begin_export_async(job_query_parameter, custom_headers).value! + def begin_export(job_query_parameter, custom_headers:nil) + response = begin_export_async(job_query_parameter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -708,8 +711,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_export_with_http_info(job_query_parameter, custom_headers = nil) - begin_export_async(job_query_parameter, custom_headers).value! + def begin_export_with_http_info(job_query_parameter, custom_headers:nil) + begin_export_async(job_query_parameter, custom_headers:custom_headers).value! end # @@ -724,7 +727,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_export_async(job_query_parameter, custom_headers = nil) + def begin_export_async(job_query_parameter, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -733,7 +736,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -798,8 +800,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [JobCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -815,8 +817,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -831,11 +833,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -890,12 +893,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [JobCollection] which provide lazy access to pages of the response. # - def list_as_lazy(filter = nil, custom_headers = nil) - response = list_async(filter, custom_headers).value! + def list_as_lazy(filter:nil, custom_headers:nil) + response = list_async(filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_logical_networks.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_logical_networks.rb index 381e1b080..62bcbef49 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_logical_networks.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_logical_networks.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_fabrics(fabric_name, custom_headers = nil) - first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers) + def list_by_replication_fabrics(fabric_name, custom_headers:nil) + first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers = nil) - list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil) + list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_async(fabric_name, custom_headers = nil) + def list_by_replication_fabrics_async(fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -72,6 +72,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -128,8 +129,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [LogicalNetwork] operation results. # - def get(fabric_name, logical_network_name, custom_headers = nil) - response = get_async(fabric_name, logical_network_name, custom_headers).value! + def get(fabric_name, logical_network_name, custom_headers:nil) + response = get_async(fabric_name, logical_network_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, logical_network_name, custom_headers = nil) - get_async(fabric_name, logical_network_name, custom_headers).value! + def get_with_http_info(fabric_name, logical_network_name, custom_headers:nil) + get_async(fabric_name, logical_network_name, custom_headers:custom_headers).value! end # @@ -161,7 +162,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, logical_network_name, custom_headers = nil) + def get_async(fabric_name, logical_network_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -171,6 +172,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -227,8 +229,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [LogicalNetworkCollection] operation results. # - def list_by_replication_fabrics_next(next_page_link, custom_headers = nil) - response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next(next_page_link, custom_headers:nil) + response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -244,8 +246,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -260,11 +262,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_next_async(next_page_link, custom_headers = nil) + def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -320,12 +323,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [LogicalNetworkCollection] which provide lazy access to pages of the # response. # - def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers = nil) - response = list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil) + response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_fabrics_next_async(next_page_link, custom_headers) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb index aa4d5c61e..90ebc07e6 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb @@ -31,8 +31,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -68,6 +68,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -124,8 +125,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_networks(fabric_name, network_name, custom_headers = nil) - first_page = list_by_replication_networks_as_lazy(fabric_name, network_name, custom_headers) + def list_by_replication_networks(fabric_name, network_name, custom_headers:nil) + first_page = list_by_replication_networks_as_lazy(fabric_name, network_name, custom_headers:custom_headers) first_page.get_all_items end @@ -141,8 +142,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_networks_with_http_info(fabric_name, network_name, custom_headers = nil) - list_by_replication_networks_async(fabric_name, network_name, custom_headers).value! + def list_by_replication_networks_with_http_info(fabric_name, network_name, custom_headers:nil) + list_by_replication_networks_async(fabric_name, network_name, custom_headers:custom_headers).value! end # @@ -157,7 +158,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_networks_async(fabric_name, network_name, custom_headers = nil) + def list_by_replication_networks_async(fabric_name, network_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -167,6 +168,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -224,8 +226,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [NetworkMapping] operation results. # - def get(fabric_name, network_name, network_mapping_name, custom_headers = nil) - response = get_async(fabric_name, network_name, network_mapping_name, custom_headers).value! + def get(fabric_name, network_name, network_mapping_name, custom_headers:nil) + response = get_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -242,8 +244,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, network_name, network_mapping_name, custom_headers = nil) - get_async(fabric_name, network_name, network_mapping_name, custom_headers).value! + def get_with_http_info(fabric_name, network_name, network_mapping_name, custom_headers:nil) + get_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value! end # @@ -259,7 +261,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, network_name, network_mapping_name, custom_headers = nil) + def get_async(fabric_name, network_name, network_mapping_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -270,6 +272,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -328,8 +331,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [NetworkMapping] operation results. # - def create(fabric_name, network_name, network_mapping_name, input, custom_headers = nil) - response = create_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value! + def create(fabric_name, network_name, network_mapping_name, input, custom_headers:nil) + response = create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -344,9 +347,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(fabric_name, network_name, network_mapping_name, input, custom_headers = nil) + def create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:nil) # Send request - promise = begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers) + promise = begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -373,8 +376,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(fabric_name, network_name, network_mapping_name, custom_headers = nil) - response = delete_async(fabric_name, network_name, network_mapping_name, custom_headers).value! + def delete(fabric_name, network_name, network_mapping_name, custom_headers:nil) + response = delete_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value! nil end @@ -388,9 +391,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(fabric_name, network_name, network_mapping_name, custom_headers = nil) + def delete_async(fabric_name, network_name, network_mapping_name, custom_headers:nil) # Send request - promise = begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers) + promise = begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -418,8 +421,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [NetworkMapping] operation results. # - def update(fabric_name, network_name, network_mapping_name, input, custom_headers = nil) - response = update_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value! + def update(fabric_name, network_name, network_mapping_name, input, custom_headers:nil) + response = update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -434,9 +437,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(fabric_name, network_name, network_mapping_name, input, custom_headers = nil) + def update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:nil) # Send request - promise = begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers) + promise = begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -466,8 +469,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [NetworkMapping] operation results. # - def begin_create(fabric_name, network_name, network_mapping_name, input, custom_headers = nil) - response = begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value! + def begin_create(fabric_name, network_name, network_mapping_name, input, custom_headers:nil) + response = begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -485,8 +488,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(fabric_name, network_name, network_mapping_name, input, custom_headers = nil) - begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value! + def begin_create_with_http_info(fabric_name, network_name, network_mapping_name, input, custom_headers:nil) + begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value! end # @@ -503,7 +506,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers = nil) + def begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -515,7 +518,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -580,8 +582,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_delete(fabric_name, network_name, network_mapping_name, custom_headers = nil) - response = begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers).value! + def begin_delete(fabric_name, network_name, network_mapping_name, custom_headers:nil) + response = begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value! nil end @@ -598,8 +600,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(fabric_name, network_name, network_mapping_name, custom_headers = nil) - begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers).value! + def begin_delete_with_http_info(fabric_name, network_name, network_mapping_name, custom_headers:nil) + begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value! end # @@ -615,7 +617,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers = nil) + def begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -626,6 +628,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -674,8 +677,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [NetworkMapping] operation results. # - def begin_update(fabric_name, network_name, network_mapping_name, input, custom_headers = nil) - response = begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value! + def begin_update(fabric_name, network_name, network_mapping_name, input, custom_headers:nil) + response = begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -693,8 +696,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(fabric_name, network_name, network_mapping_name, input, custom_headers = nil) - begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value! + def begin_update_with_http_info(fabric_name, network_name, network_mapping_name, input, custom_headers:nil) + begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value! end # @@ -711,7 +714,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers = nil) + def begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -723,7 +726,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -788,8 +790,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [NetworkMappingCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -805,8 +807,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -821,11 +823,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -881,8 +884,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [NetworkMappingCollection] operation results. # - def list_by_replication_networks_next(next_page_link, custom_headers = nil) - response = list_by_replication_networks_next_async(next_page_link, custom_headers).value! + def list_by_replication_networks_next(next_page_link, custom_headers:nil) + response = list_by_replication_networks_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -898,8 +901,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_networks_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_networks_next_async(next_page_link, custom_headers).value! + def list_by_replication_networks_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_networks_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -914,11 +917,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_networks_next_async(next_page_link, custom_headers = nil) + def list_by_replication_networks_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -973,12 +977,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [NetworkMappingCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -997,12 +1001,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [NetworkMappingCollection] which provide lazy access to pages of the # response. # - def list_by_replication_networks_as_lazy(fabric_name, network_name, custom_headers = nil) - response = list_by_replication_networks_async(fabric_name, network_name, custom_headers).value! + def list_by_replication_networks_as_lazy(fabric_name, network_name, custom_headers:nil) + response = list_by_replication_networks_async(fabric_name, network_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_networks_next_async(next_page_link, custom_headers) + list_by_replication_networks_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_networks.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_networks.rb index 48b2d27f1..83c065dc0 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_networks.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_networks.rb @@ -31,8 +31,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -68,6 +68,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -123,8 +124,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_fabrics(fabric_name, custom_headers = nil) - first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers) + def list_by_replication_fabrics(fabric_name, custom_headers:nil) + first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers) first_page.get_all_items end @@ -139,8 +140,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers = nil) - list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil) + list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! end # @@ -154,7 +155,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_async(fabric_name, custom_headers = nil) + def list_by_replication_fabrics_async(fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -163,6 +164,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -219,8 +221,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Network] operation results. # - def get(fabric_name, network_name, custom_headers = nil) - response = get_async(fabric_name, network_name, custom_headers).value! + def get(fabric_name, network_name, custom_headers:nil) + response = get_async(fabric_name, network_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -236,8 +238,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, network_name, custom_headers = nil) - get_async(fabric_name, network_name, custom_headers).value! + def get_with_http_info(fabric_name, network_name, custom_headers:nil) + get_async(fabric_name, network_name, custom_headers:custom_headers).value! end # @@ -252,7 +254,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, network_name, custom_headers = nil) + def get_async(fabric_name, network_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -262,6 +264,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -318,8 +321,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [NetworkCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -335,8 +338,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -351,11 +354,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -411,8 +415,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [NetworkCollection] operation results. # - def list_by_replication_fabrics_next(next_page_link, custom_headers = nil) - response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next(next_page_link, custom_headers:nil) + response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -428,8 +432,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -444,11 +448,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_next_async(next_page_link, custom_headers = nil) + def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -503,12 +508,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [NetworkCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -526,12 +531,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [NetworkCollection] which provide lazy access to pages of the # response. # - def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers = nil) - response = list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil) + response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_fabrics_next_async(next_page_link, custom_headers) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb index 8ca3a832a..97f6d51a3 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Policy] operation results. # - def get(policy_name, custom_headers = nil) - response = get_async(policy_name, custom_headers).value! + def get(policy_name, custom_headers:nil) + response = get_async(policy_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(policy_name, custom_headers = nil) - get_async(policy_name, custom_headers).value! + def get_with_http_info(policy_name, custom_headers:nil) + get_async(policy_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(policy_name, custom_headers = nil) + def get_async(policy_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -72,6 +72,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -128,8 +129,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Policy] operation results. # - def create(policy_name, input, custom_headers = nil) - response = create_async(policy_name, input, custom_headers).value! + def create(policy_name, input, custom_headers:nil) + response = create_async(policy_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -142,9 +143,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(policy_name, input, custom_headers = nil) + def create_async(policy_name, input, custom_headers:nil) # Send request - promise = begin_create_async(policy_name, input, custom_headers) + promise = begin_create_async(policy_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -169,8 +170,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(policy_name, custom_headers = nil) - response = delete_async(policy_name, custom_headers).value! + def delete(policy_name, custom_headers:nil) + response = delete_async(policy_name, custom_headers:custom_headers).value! nil end @@ -182,9 +183,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(policy_name, custom_headers = nil) + def delete_async(policy_name, custom_headers:nil) # Send request - promise = begin_delete_async(policy_name, custom_headers) + promise = begin_delete_async(policy_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,8 +211,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Policy] operation results. # - def update(policy_name, input, custom_headers = nil) - response = update_async(policy_name, input, custom_headers).value! + def update(policy_name, input, custom_headers:nil) + response = update_async(policy_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -224,9 +225,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(policy_name, input, custom_headers = nil) + def update_async(policy_name, input, custom_headers:nil) # Send request - promise = begin_update_async(policy_name, input, custom_headers) + promise = begin_update_async(policy_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -252,8 +253,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -267,8 +268,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -281,7 +282,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -289,6 +290,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -345,8 +347,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Policy] operation results. # - def begin_create(policy_name, input, custom_headers = nil) - response = begin_create_async(policy_name, input, custom_headers).value! + def begin_create(policy_name, input, custom_headers:nil) + response = begin_create_async(policy_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -362,8 +364,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(policy_name, input, custom_headers = nil) - begin_create_async(policy_name, input, custom_headers).value! + def begin_create_with_http_info(policy_name, input, custom_headers:nil) + begin_create_async(policy_name, input, custom_headers:custom_headers).value! end # @@ -378,7 +380,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(policy_name, input, custom_headers = nil) + def begin_create_async(policy_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -388,7 +390,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -451,8 +452,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_delete(policy_name, custom_headers = nil) - response = begin_delete_async(policy_name, custom_headers).value! + def begin_delete(policy_name, custom_headers:nil) + response = begin_delete_async(policy_name, custom_headers:custom_headers).value! nil end @@ -467,8 +468,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(policy_name, custom_headers = nil) - begin_delete_async(policy_name, custom_headers).value! + def begin_delete_with_http_info(policy_name, custom_headers:nil) + begin_delete_async(policy_name, custom_headers:custom_headers).value! end # @@ -482,7 +483,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(policy_name, custom_headers = nil) + def begin_delete_async(policy_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -491,6 +492,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -537,8 +539,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Policy] operation results. # - def begin_update(policy_name, input, custom_headers = nil) - response = begin_update_async(policy_name, input, custom_headers).value! + def begin_update(policy_name, input, custom_headers:nil) + response = begin_update_async(policy_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -554,8 +556,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(policy_name, input, custom_headers = nil) - begin_update_async(policy_name, input, custom_headers).value! + def begin_update_with_http_info(policy_name, input, custom_headers:nil) + begin_update_async(policy_name, input, custom_headers:custom_headers).value! end # @@ -570,7 +572,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(policy_name, input, custom_headers = nil) + def begin_update_async(policy_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -580,7 +582,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -645,8 +646,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [PolicyCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -662,8 +663,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -678,11 +679,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -737,12 +739,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [PolicyCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protectable_items.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protectable_items.rb index 398d7df44..c368d0812 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protectable_items.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protectable_items.rb @@ -34,8 +34,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectableItem] operation results. # - def get(fabric_name, protection_container_name, protectable_item_name, custom_headers = nil) - response = get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers).value! + def get(fabric_name, protection_container_name, protectable_item_name, custom_headers:nil) + response = get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, protection_container_name, protectable_item_name, custom_headers = nil) - get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers).value! + def get_with_http_info(fabric_name, protection_container_name, protectable_item_name, custom_headers:nil) + get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers = nil) + def get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -80,6 +80,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -136,8 +137,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers = nil) - first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers) + def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers:nil) + first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:custom_headers) first_page.get_all_items end @@ -153,8 +154,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers = nil) - list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value! + def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers:nil) + list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value! end # @@ -169,7 +170,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers = nil) + def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -179,6 +180,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -235,8 +237,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectableItemCollection] operation results. # - def list_by_replication_protection_containers_next(next_page_link, custom_headers = nil) - response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value! + def list_by_replication_protection_containers_next(next_page_link, custom_headers:nil) + response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -252,8 +254,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value! + def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -268,11 +270,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_protection_containers_next_async(next_page_link, custom_headers = nil) + def list_by_replication_protection_containers_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -329,12 +332,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [ProtectableItemCollection] which provide lazy access to pages of the # response. # - def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers = nil) - response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value! + def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:nil) + response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_protection_containers_next_async(next_page_link, custom_headers) + list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protected_items.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protected_items.rb index 24debbeb1..93fdf356a 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protected_items.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protected_items.rb @@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers = nil) - first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers) + def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers:nil) + first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers = nil) - list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value! + def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers:nil) + list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers = nil) + def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -76,6 +76,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(skip_token = nil, filter = nil, custom_headers = nil) - first_page = list_as_lazy(skip_token, filter, custom_headers) + def list(skip_token:nil, filter:nil, custom_headers:nil) + first_page = list_as_lazy(skip_token:skip_token, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -151,8 +152,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(skip_token = nil, filter = nil, custom_headers = nil) - list_async(skip_token, filter, custom_headers).value! + def list_with_http_info(skip_token:nil, filter:nil, custom_headers:nil) + list_async(skip_token:skip_token, filter:filter, custom_headers:custom_headers).value! end # @@ -168,7 +169,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(skip_token = nil, filter = nil, custom_headers = nil) + def list_async(skip_token:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -176,6 +177,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -237,8 +239,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def apply_recovery_point(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers = nil) - response = apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers).value! + def apply_recovery_point(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:nil) + response = apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -255,9 +257,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers = nil) + def apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:nil) # Send request - promise = begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers) + promise = begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -288,8 +290,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def repair_replication(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - response = repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def repair_replication(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + response = repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -304,9 +306,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) + def repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) # Send request - promise = begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers) + promise = begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -341,8 +343,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def update_mobility_service(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers = nil) - response = update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers).value! + def update_mobility_service(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:nil) + response = update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -361,9 +363,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers = nil) + def update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:nil) # Send request - promise = begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers) + promise = begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -395,8 +397,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def reprotect(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers = nil) - response = reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers).value! + def reprotect(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:nil) + response = reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -412,9 +414,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers = nil) + def reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:nil) # Send request - promise = begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers) + promise = begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -444,8 +446,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def failover_commit(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - response = failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def failover_commit(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + response = failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -460,9 +462,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) + def failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) # Send request - promise = begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers) + promise = begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -493,8 +495,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def test_failover_cleanup(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers = nil) - response = test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers).value! + def test_failover_cleanup(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:nil) + response = test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -510,9 +512,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers = nil) + def test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:nil) # Send request - promise = begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers) + promise = begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -543,8 +545,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def test_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) - response = test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value! + def test_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) + response = test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -560,9 +562,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) + def test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) # Send request - promise = begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers) + promise = begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -593,8 +595,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def unplanned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) - response = unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value! + def unplanned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) + response = unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -610,9 +612,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) + def unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) # Send request - promise = begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers) + promise = begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -643,8 +645,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def planned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) - response = planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value! + def planned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) + response = planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -660,9 +662,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) + def planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) # Send request - promise = begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers) + promise = begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -693,8 +695,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers = nil) - response = delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers).value! + def delete(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:nil) + response = delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:custom_headers).value! nil end @@ -711,9 +713,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers = nil) + def delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:nil) # Send request - promise = begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers) + promise = begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -741,8 +743,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def get(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - response = get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def get(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + response = get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -760,8 +762,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def get_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! end # @@ -778,7 +780,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) + def get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -789,6 +791,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -849,8 +852,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def create(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers = nil) - response = create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers).value! + def create(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:nil) + response = create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -866,9 +869,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers = nil) + def create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:nil) # Send request - promise = begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers) + promise = begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -899,8 +902,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - response = purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def purge(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + response = purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! nil end @@ -915,9 +918,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) + def purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) # Send request - promise = begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers) + promise = begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -948,8 +951,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def update(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers = nil) - response = update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers).value! + def update(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:nil) + response = update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -966,9 +969,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers = nil) + def update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:nil) # Send request - promise = begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers) + promise = begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1001,8 +1004,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def begin_apply_recovery_point(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers = nil) - response = begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers).value! + def begin_apply_recovery_point(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:nil) + response = begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1023,8 +1026,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_apply_recovery_point_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers = nil) - begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers).value! + def begin_apply_recovery_point_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:nil) + begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:custom_headers).value! end # @@ -1044,7 +1047,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers = nil) + def begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1056,7 +1059,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1124,8 +1126,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def begin_repair_replication(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - response = begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def begin_repair_replication(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + response = begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1144,8 +1146,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_repair_replication_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def begin_repair_replication_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! end # @@ -1163,7 +1165,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) + def begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1174,6 +1176,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1237,8 +1240,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def begin_update_mobility_service(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers = nil) - response = begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers).value! + def begin_update_mobility_service(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:nil) + response = begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1261,8 +1264,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_mobility_service_with_http_info(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers = nil) - begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers).value! + def begin_update_mobility_service_with_http_info(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:nil) + begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:custom_headers).value! end # @@ -1284,7 +1287,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers = nil) + def begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1296,7 +1299,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1365,8 +1367,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def begin_reprotect(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers = nil) - response = begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers).value! + def begin_reprotect(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:nil) + response = begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1386,8 +1388,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reprotect_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers = nil) - begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers).value! + def begin_reprotect_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:nil) + begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:custom_headers).value! end # @@ -1406,7 +1408,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers = nil) + def begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1418,7 +1420,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1485,8 +1486,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def begin_failover_commit(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - response = begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def begin_failover_commit(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + response = begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1504,8 +1505,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_failover_commit_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def begin_failover_commit_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! end # @@ -1522,7 +1523,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) + def begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1533,6 +1534,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1592,8 +1594,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def begin_test_failover_cleanup(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers = nil) - response = begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers).value! + def begin_test_failover_cleanup(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:nil) + response = begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1612,8 +1614,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_test_failover_cleanup_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers = nil) - begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers).value! + def begin_test_failover_cleanup_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:nil) + begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:custom_headers).value! end # @@ -1631,7 +1633,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers = nil) + def begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1643,7 +1645,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1711,8 +1712,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def begin_test_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) - response = begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value! + def begin_test_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) + response = begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1731,8 +1732,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_test_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) - begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value! + def begin_test_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) + begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value! end # @@ -1750,7 +1751,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) + def begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1762,7 +1763,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1830,8 +1830,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def begin_unplanned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) - response = begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value! + def begin_unplanned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) + response = begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1850,8 +1850,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_unplanned_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) - begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value! + def begin_unplanned_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) + begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value! end # @@ -1869,7 +1869,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) + def begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1881,7 +1881,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1949,8 +1948,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def begin_planned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) - response = begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value! + def begin_planned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) + response = begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1969,8 +1968,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_planned_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) - begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value! + def begin_planned_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) + begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value! end # @@ -1988,7 +1987,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers = nil) + def begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -2000,7 +1999,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2069,8 +2067,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_delete(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers = nil) - response = begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers).value! + def begin_delete(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:nil) + response = begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:custom_headers).value! nil end @@ -2091,8 +2089,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers = nil) - begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers).value! + def begin_delete_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:nil) + begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:custom_headers).value! end # @@ -2112,7 +2110,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers = nil) + def begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -2124,7 +2122,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2183,8 +2180,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def begin_create(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers = nil) - response = begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers).value! + def begin_create(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:nil) + response = begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2204,8 +2201,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers = nil) - begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers).value! + def begin_create_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:nil) + begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:custom_headers).value! end # @@ -2224,7 +2221,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers = nil) + def begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -2236,7 +2233,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2305,8 +2301,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_purge(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - response = begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def begin_purge(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + response = begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! nil end @@ -2327,8 +2323,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) - begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value! + def begin_purge_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) + begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value! end # @@ -2348,7 +2344,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers = nil) + def begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -2359,6 +2355,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2410,8 +2407,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItem] operation results. # - def begin_update(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers = nil) - response = begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers).value! + def begin_update(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:nil) + response = begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2432,8 +2429,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers = nil) - begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers).value! + def begin_update_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:nil) + begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:custom_headers).value! end # @@ -2453,7 +2450,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers = nil) + def begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -2465,7 +2462,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2530,8 +2526,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItemCollection] operation results. # - def list_by_replication_protection_containers_next(next_page_link, custom_headers = nil) - response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value! + def list_by_replication_protection_containers_next(next_page_link, custom_headers:nil) + response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2547,8 +2543,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value! + def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2563,11 +2559,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_protection_containers_next_async(next_page_link, custom_headers = nil) + def list_by_replication_protection_containers_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2623,8 +2620,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ReplicationProtectedItemCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2640,8 +2637,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2656,11 +2653,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2717,12 +2715,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [ReplicationProtectedItemCollection] which provide lazy access to # pages of the response. # - def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers = nil) - response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value! + def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:nil) + response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_protection_containers_next_async(next_page_link, custom_headers) + list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2742,12 +2740,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [ReplicationProtectedItemCollection] which provide lazy access to # pages of the response. # - def list_as_lazy(skip_token = nil, filter = nil, custom_headers = nil) - response = list_async(skip_token, filter, custom_headers).value! + def list_as_lazy(skip_token:nil, filter:nil, custom_headers:nil) + response = list_async(skip_token:skip_token, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb index a073b86bd..4a48d3ce0 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb @@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers = nil) - response = delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers).value! + def delete(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:nil) + response = delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:custom_headers).value! nil end @@ -49,9 +49,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers = nil) + def delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:nil) # Send request - promise = begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers) + promise = begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -78,8 +78,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainerMapping] operation results. # - def get(fabric_name, protection_container_name, mapping_name, custom_headers = nil) - response = get_async(fabric_name, protection_container_name, mapping_name, custom_headers).value! + def get(fabric_name, protection_container_name, mapping_name, custom_headers:nil) + response = get_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -96,8 +96,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, protection_container_name, mapping_name, custom_headers = nil) - get_async(fabric_name, protection_container_name, mapping_name, custom_headers).value! + def get_with_http_info(fabric_name, protection_container_name, mapping_name, custom_headers:nil) + get_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value! end # @@ -113,7 +113,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, protection_container_name, mapping_name, custom_headers = nil) + def get_async(fabric_name, protection_container_name, mapping_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -124,6 +124,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -183,8 +184,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainerMapping] operation results. # - def create(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers = nil) - response = create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers).value! + def create(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:nil) + response = create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -200,9 +201,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers = nil) + def create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:nil) # Send request - promise = begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers) + promise = begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -229,8 +230,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge(fabric_name, protection_container_name, mapping_name, custom_headers = nil) - response = purge_async(fabric_name, protection_container_name, mapping_name, custom_headers).value! + def purge(fabric_name, protection_container_name, mapping_name, custom_headers:nil) + response = purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value! nil end @@ -244,9 +245,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_async(fabric_name, protection_container_name, mapping_name, custom_headers = nil) + def purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:nil) # Send request - promise = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers) + promise = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -272,8 +273,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers = nil) - first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers) + def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers:nil) + first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:custom_headers) first_page.get_all_items end @@ -289,8 +290,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers = nil) - list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value! + def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers:nil) + list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value! end # @@ -305,7 +306,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers = nil) + def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -315,6 +316,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -369,8 +371,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -384,8 +386,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -398,7 +400,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -406,6 +408,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -463,8 +466,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_delete(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers = nil) - response = begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers).value! + def begin_delete(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:nil) + response = begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:custom_headers).value! nil end @@ -482,8 +485,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers = nil) - begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers).value! + def begin_delete_with_http_info(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:nil) + begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:custom_headers).value! end # @@ -500,7 +503,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers = nil) + def begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -512,7 +515,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -570,8 +572,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainerMapping] operation results. # - def begin_create(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers = nil) - response = begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers).value! + def begin_create(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:nil) + response = begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -590,8 +592,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers = nil) - begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers).value! + def begin_create_with_http_info(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:nil) + begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:custom_headers).value! end # @@ -609,7 +611,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers = nil) + def begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -621,7 +623,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -686,8 +687,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_purge(fabric_name, protection_container_name, mapping_name, custom_headers = nil) - response = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers).value! + def begin_purge(fabric_name, protection_container_name, mapping_name, custom_headers:nil) + response = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value! nil end @@ -704,8 +705,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_with_http_info(fabric_name, protection_container_name, mapping_name, custom_headers = nil) - begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers).value! + def begin_purge_with_http_info(fabric_name, protection_container_name, mapping_name, custom_headers:nil) + begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value! end # @@ -721,7 +722,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers = nil) + def begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -732,6 +733,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -778,8 +780,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainerMappingCollection] operation results. # - def list_by_replication_protection_containers_next(next_page_link, custom_headers = nil) - response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value! + def list_by_replication_protection_containers_next(next_page_link, custom_headers:nil) + response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -795,8 +797,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value! + def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -811,11 +813,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_protection_containers_next_async(next_page_link, custom_headers = nil) + def list_by_replication_protection_containers_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -871,8 +874,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainerMappingCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -888,8 +891,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -904,11 +907,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -965,12 +969,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [ProtectionContainerMappingCollection] which provide lazy access to # pages of the response. # - def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers = nil) - response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value! + def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:nil) + response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_protection_containers_next_async(next_page_link, custom_headers) + list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -987,12 +991,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [ProtectionContainerMappingCollection] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_containers.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_containers.rb index 749e49139..724764b1c 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_containers.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_containers.rb @@ -36,8 +36,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainer] operation results. # - def switch_protection(fabric_name, protection_container_name, switch_input, custom_headers = nil) - response = switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers).value! + def switch_protection(fabric_name, protection_container_name, switch_input, custom_headers:nil) + response = switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -51,9 +51,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers = nil) + def switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:nil) # Send request - promise = begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers) + promise = begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(fabric_name, protection_container_name, custom_headers = nil) - response = delete_async(fabric_name, protection_container_name, custom_headers).value! + def delete(fabric_name, protection_container_name, custom_headers:nil) + response = delete_async(fabric_name, protection_container_name, custom_headers:custom_headers).value! nil end @@ -95,9 +95,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(fabric_name, protection_container_name, custom_headers = nil) + def delete_async(fabric_name, protection_container_name, custom_headers:nil) # Send request - promise = begin_delete_async(fabric_name, protection_container_name, custom_headers) + promise = begin_delete_async(fabric_name, protection_container_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -127,8 +127,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainer] operation results. # - def discover_protectable_item(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers = nil) - response = discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers).value! + def discover_protectable_item(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil) + response = discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,9 +144,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers = nil) + def discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil) # Send request - promise = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers) + promise = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -174,8 +174,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainer] operation results. # - def get(fabric_name, protection_container_name, custom_headers = nil) - response = get_async(fabric_name, protection_container_name, custom_headers).value! + def get(fabric_name, protection_container_name, custom_headers:nil) + response = get_async(fabric_name, protection_container_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,8 +191,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, protection_container_name, custom_headers = nil) - get_async(fabric_name, protection_container_name, custom_headers).value! + def get_with_http_info(fabric_name, protection_container_name, custom_headers:nil) + get_async(fabric_name, protection_container_name, custom_headers:custom_headers).value! end # @@ -207,7 +207,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, protection_container_name, custom_headers = nil) + def get_async(fabric_name, protection_container_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -217,6 +217,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -275,8 +276,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainer] operation results. # - def create(fabric_name, protection_container_name, creation_input, custom_headers = nil) - response = create_async(fabric_name, protection_container_name, creation_input, custom_headers).value! + def create(fabric_name, protection_container_name, creation_input, custom_headers:nil) + response = create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -291,9 +292,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(fabric_name, protection_container_name, creation_input, custom_headers = nil) + def create_async(fabric_name, protection_container_name, creation_input, custom_headers:nil) # Send request - promise = begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers) + promise = begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -320,8 +321,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_fabrics(fabric_name, custom_headers = nil) - first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers) + def list_by_replication_fabrics(fabric_name, custom_headers:nil) + first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers) first_page.get_all_items end @@ -336,8 +337,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers = nil) - list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil) + list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! end # @@ -351,7 +352,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_async(fabric_name, custom_headers = nil) + def list_by_replication_fabrics_async(fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -360,6 +361,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -414,8 +416,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -429,8 +431,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -443,7 +445,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -451,6 +453,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -510,8 +513,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainer] operation results. # - def begin_switch_protection(fabric_name, protection_container_name, switch_input, custom_headers = nil) - response = begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers).value! + def begin_switch_protection(fabric_name, protection_container_name, switch_input, custom_headers:nil) + response = begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -530,8 +533,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_switch_protection_with_http_info(fabric_name, protection_container_name, switch_input, custom_headers = nil) - begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers).value! + def begin_switch_protection_with_http_info(fabric_name, protection_container_name, switch_input, custom_headers:nil) + begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers).value! end # @@ -549,7 +552,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers = nil) + def begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -560,7 +563,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -625,8 +627,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_delete(fabric_name, protection_container_name, custom_headers = nil) - response = begin_delete_async(fabric_name, protection_container_name, custom_headers).value! + def begin_delete(fabric_name, protection_container_name, custom_headers:nil) + response = begin_delete_async(fabric_name, protection_container_name, custom_headers:custom_headers).value! nil end @@ -643,8 +645,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(fabric_name, protection_container_name, custom_headers = nil) - begin_delete_async(fabric_name, protection_container_name, custom_headers).value! + def begin_delete_with_http_info(fabric_name, protection_container_name, custom_headers:nil) + begin_delete_async(fabric_name, protection_container_name, custom_headers:custom_headers).value! end # @@ -660,7 +662,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(fabric_name, protection_container_name, custom_headers = nil) + def begin_delete_async(fabric_name, protection_container_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -670,6 +672,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -720,8 +723,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainer] operation results. # - def begin_discover_protectable_item(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers = nil) - response = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers).value! + def begin_discover_protectable_item(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil) + response = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -741,8 +744,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_discover_protectable_item_with_http_info(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers = nil) - begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers).value! + def begin_discover_protectable_item_with_http_info(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil) + begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers).value! end # @@ -761,7 +764,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers = nil) + def begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -772,7 +775,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -839,8 +841,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainer] operation results. # - def begin_create(fabric_name, protection_container_name, creation_input, custom_headers = nil) - response = begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers).value! + def begin_create(fabric_name, protection_container_name, creation_input, custom_headers:nil) + response = begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -858,8 +860,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(fabric_name, protection_container_name, creation_input, custom_headers = nil) - begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers).value! + def begin_create_with_http_info(fabric_name, protection_container_name, creation_input, custom_headers:nil) + begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers).value! end # @@ -876,7 +878,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers = nil) + def begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -887,7 +889,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -952,8 +953,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainerCollection] operation results. # - def list_by_replication_fabrics_next(next_page_link, custom_headers = nil) - response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next(next_page_link, custom_headers:nil) + response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -969,8 +970,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -985,11 +986,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_next_async(next_page_link, custom_headers = nil) + def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1045,8 +1047,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [ProtectionContainerCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1062,8 +1064,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1078,11 +1080,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1138,12 +1141,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [ProtectionContainerCollection] which provide lazy access to pages of # the response. # - def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers = nil) - response = list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil) + response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_fabrics_next_async(next_page_link, custom_headers) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1160,12 +1163,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [ProtectionContainerCollection] which provide lazy access to pages of # the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_plans.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_plans.rb index e178c3a08..59ed88bdc 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_plans.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_plans.rb @@ -32,8 +32,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def reprotect(recovery_plan_name, custom_headers = nil) - response = reprotect_async(recovery_plan_name, custom_headers).value! + def reprotect(recovery_plan_name, custom_headers:nil) + response = reprotect_async(recovery_plan_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -45,9 +45,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def reprotect_async(recovery_plan_name, custom_headers = nil) + def reprotect_async(recovery_plan_name, custom_headers:nil) # Send request - promise = begin_reprotect_async(recovery_plan_name, custom_headers) + promise = begin_reprotect_async(recovery_plan_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -74,8 +74,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def failover_commit(recovery_plan_name, custom_headers = nil) - response = failover_commit_async(recovery_plan_name, custom_headers).value! + def failover_commit(recovery_plan_name, custom_headers:nil) + response = failover_commit_async(recovery_plan_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -87,9 +87,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def failover_commit_async(recovery_plan_name, custom_headers = nil) + def failover_commit_async(recovery_plan_name, custom_headers:nil) # Send request - promise = begin_failover_commit_async(recovery_plan_name, custom_headers) + promise = begin_failover_commit_async(recovery_plan_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -118,8 +118,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def test_failover_cleanup(recovery_plan_name, input, custom_headers = nil) - response = test_failover_cleanup_async(recovery_plan_name, input, custom_headers).value! + def test_failover_cleanup(recovery_plan_name, input, custom_headers:nil) + response = test_failover_cleanup_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -133,9 +133,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def test_failover_cleanup_async(recovery_plan_name, input, custom_headers = nil) + def test_failover_cleanup_async(recovery_plan_name, input, custom_headers:nil) # Send request - promise = begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers) + promise = begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -163,8 +163,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def test_failover(recovery_plan_name, input, custom_headers = nil) - response = test_failover_async(recovery_plan_name, input, custom_headers).value! + def test_failover(recovery_plan_name, input, custom_headers:nil) + response = test_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -177,9 +177,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def test_failover_async(recovery_plan_name, input, custom_headers = nil) + def test_failover_async(recovery_plan_name, input, custom_headers:nil) # Send request - promise = begin_test_failover_async(recovery_plan_name, input, custom_headers) + promise = begin_test_failover_async(recovery_plan_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -207,8 +207,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def unplanned_failover(recovery_plan_name, input, custom_headers = nil) - response = unplanned_failover_async(recovery_plan_name, input, custom_headers).value! + def unplanned_failover(recovery_plan_name, input, custom_headers:nil) + response = unplanned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -221,9 +221,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def unplanned_failover_async(recovery_plan_name, input, custom_headers = nil) + def unplanned_failover_async(recovery_plan_name, input, custom_headers:nil) # Send request - promise = begin_unplanned_failover_async(recovery_plan_name, input, custom_headers) + promise = begin_unplanned_failover_async(recovery_plan_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -251,8 +251,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def planned_failover(recovery_plan_name, input, custom_headers = nil) - response = planned_failover_async(recovery_plan_name, input, custom_headers).value! + def planned_failover(recovery_plan_name, input, custom_headers:nil) + response = planned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -265,9 +265,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def planned_failover_async(recovery_plan_name, input, custom_headers = nil) + def planned_failover_async(recovery_plan_name, input, custom_headers:nil) # Send request - promise = begin_planned_failover_async(recovery_plan_name, input, custom_headers) + promise = begin_planned_failover_async(recovery_plan_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -294,8 +294,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def get(recovery_plan_name, custom_headers = nil) - response = get_async(recovery_plan_name, custom_headers).value! + def get(recovery_plan_name, custom_headers:nil) + response = get_async(recovery_plan_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -310,8 +310,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(recovery_plan_name, custom_headers = nil) - get_async(recovery_plan_name, custom_headers).value! + def get_with_http_info(recovery_plan_name, custom_headers:nil) + get_async(recovery_plan_name, custom_headers:custom_headers).value! end # @@ -325,7 +325,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(recovery_plan_name, custom_headers = nil) + def get_async(recovery_plan_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -334,6 +334,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -390,8 +391,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def create(recovery_plan_name, input, custom_headers = nil) - response = create_async(recovery_plan_name, input, custom_headers).value! + def create(recovery_plan_name, input, custom_headers:nil) + response = create_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -404,9 +405,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(recovery_plan_name, input, custom_headers = nil) + def create_async(recovery_plan_name, input, custom_headers:nil) # Send request - promise = begin_create_async(recovery_plan_name, input, custom_headers) + promise = begin_create_async(recovery_plan_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -431,8 +432,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(recovery_plan_name, custom_headers = nil) - response = delete_async(recovery_plan_name, custom_headers).value! + def delete(recovery_plan_name, custom_headers:nil) + response = delete_async(recovery_plan_name, custom_headers:custom_headers).value! nil end @@ -444,9 +445,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(recovery_plan_name, custom_headers = nil) + def delete_async(recovery_plan_name, custom_headers:nil) # Send request - promise = begin_delete_async(recovery_plan_name, custom_headers) + promise = begin_delete_async(recovery_plan_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -472,8 +473,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def update(recovery_plan_name, input, custom_headers = nil) - response = update_async(recovery_plan_name, input, custom_headers).value! + def update(recovery_plan_name, input, custom_headers:nil) + response = update_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -486,9 +487,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(recovery_plan_name, input, custom_headers = nil) + def update_async(recovery_plan_name, input, custom_headers:nil) # Send request - promise = begin_update_async(recovery_plan_name, input, custom_headers) + promise = begin_update_async(recovery_plan_name, input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -514,8 +515,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -529,8 +530,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -543,7 +544,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -551,6 +552,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -606,8 +608,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def begin_reprotect(recovery_plan_name, custom_headers = nil) - response = begin_reprotect_async(recovery_plan_name, custom_headers).value! + def begin_reprotect(recovery_plan_name, custom_headers:nil) + response = begin_reprotect_async(recovery_plan_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -622,8 +624,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_reprotect_with_http_info(recovery_plan_name, custom_headers = nil) - begin_reprotect_async(recovery_plan_name, custom_headers).value! + def begin_reprotect_with_http_info(recovery_plan_name, custom_headers:nil) + begin_reprotect_async(recovery_plan_name, custom_headers:custom_headers).value! end # @@ -637,7 +639,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_reprotect_async(recovery_plan_name, custom_headers = nil) + def begin_reprotect_async(recovery_plan_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -646,6 +648,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -701,8 +704,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def begin_failover_commit(recovery_plan_name, custom_headers = nil) - response = begin_failover_commit_async(recovery_plan_name, custom_headers).value! + def begin_failover_commit(recovery_plan_name, custom_headers:nil) + response = begin_failover_commit_async(recovery_plan_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -717,8 +720,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_failover_commit_with_http_info(recovery_plan_name, custom_headers = nil) - begin_failover_commit_async(recovery_plan_name, custom_headers).value! + def begin_failover_commit_with_http_info(recovery_plan_name, custom_headers:nil) + begin_failover_commit_async(recovery_plan_name, custom_headers:custom_headers).value! end # @@ -732,7 +735,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_failover_commit_async(recovery_plan_name, custom_headers = nil) + def begin_failover_commit_async(recovery_plan_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -741,6 +744,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -798,8 +802,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def begin_test_failover_cleanup(recovery_plan_name, input, custom_headers = nil) - response = begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers).value! + def begin_test_failover_cleanup(recovery_plan_name, input, custom_headers:nil) + response = begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -816,8 +820,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_test_failover_cleanup_with_http_info(recovery_plan_name, input, custom_headers = nil) - begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers).value! + def begin_test_failover_cleanup_with_http_info(recovery_plan_name, input, custom_headers:nil) + begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers:custom_headers).value! end # @@ -833,7 +837,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers = nil) + def begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -843,7 +847,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -908,8 +911,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def begin_test_failover(recovery_plan_name, input, custom_headers = nil) - response = begin_test_failover_async(recovery_plan_name, input, custom_headers).value! + def begin_test_failover(recovery_plan_name, input, custom_headers:nil) + response = begin_test_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -925,8 +928,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_test_failover_with_http_info(recovery_plan_name, input, custom_headers = nil) - begin_test_failover_async(recovery_plan_name, input, custom_headers).value! + def begin_test_failover_with_http_info(recovery_plan_name, input, custom_headers:nil) + begin_test_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value! end # @@ -941,7 +944,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_test_failover_async(recovery_plan_name, input, custom_headers = nil) + def begin_test_failover_async(recovery_plan_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -951,7 +954,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1016,8 +1018,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def begin_unplanned_failover(recovery_plan_name, input, custom_headers = nil) - response = begin_unplanned_failover_async(recovery_plan_name, input, custom_headers).value! + def begin_unplanned_failover(recovery_plan_name, input, custom_headers:nil) + response = begin_unplanned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1033,8 +1035,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_unplanned_failover_with_http_info(recovery_plan_name, input, custom_headers = nil) - begin_unplanned_failover_async(recovery_plan_name, input, custom_headers).value! + def begin_unplanned_failover_with_http_info(recovery_plan_name, input, custom_headers:nil) + begin_unplanned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value! end # @@ -1049,7 +1051,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_unplanned_failover_async(recovery_plan_name, input, custom_headers = nil) + def begin_unplanned_failover_async(recovery_plan_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1059,7 +1061,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1124,8 +1125,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def begin_planned_failover(recovery_plan_name, input, custom_headers = nil) - response = begin_planned_failover_async(recovery_plan_name, input, custom_headers).value! + def begin_planned_failover(recovery_plan_name, input, custom_headers:nil) + response = begin_planned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1141,8 +1142,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_planned_failover_with_http_info(recovery_plan_name, input, custom_headers = nil) - begin_planned_failover_async(recovery_plan_name, input, custom_headers).value! + def begin_planned_failover_with_http_info(recovery_plan_name, input, custom_headers:nil) + begin_planned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value! end # @@ -1157,7 +1158,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_planned_failover_async(recovery_plan_name, input, custom_headers = nil) + def begin_planned_failover_async(recovery_plan_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1167,7 +1168,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1232,8 +1232,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def begin_create(recovery_plan_name, input, custom_headers = nil) - response = begin_create_async(recovery_plan_name, input, custom_headers).value! + def begin_create(recovery_plan_name, input, custom_headers:nil) + response = begin_create_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1249,8 +1249,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(recovery_plan_name, input, custom_headers = nil) - begin_create_async(recovery_plan_name, input, custom_headers).value! + def begin_create_with_http_info(recovery_plan_name, input, custom_headers:nil) + begin_create_async(recovery_plan_name, input, custom_headers:custom_headers).value! end # @@ -1265,7 +1265,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(recovery_plan_name, input, custom_headers = nil) + def begin_create_async(recovery_plan_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1275,7 +1275,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1338,8 +1337,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_delete(recovery_plan_name, custom_headers = nil) - response = begin_delete_async(recovery_plan_name, custom_headers).value! + def begin_delete(recovery_plan_name, custom_headers:nil) + response = begin_delete_async(recovery_plan_name, custom_headers:custom_headers).value! nil end @@ -1354,8 +1353,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(recovery_plan_name, custom_headers = nil) - begin_delete_async(recovery_plan_name, custom_headers).value! + def begin_delete_with_http_info(recovery_plan_name, custom_headers:nil) + begin_delete_async(recovery_plan_name, custom_headers:custom_headers).value! end # @@ -1369,7 +1368,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(recovery_plan_name, custom_headers = nil) + def begin_delete_async(recovery_plan_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1378,6 +1377,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1424,8 +1424,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlan] operation results. # - def begin_update(recovery_plan_name, input, custom_headers = nil) - response = begin_update_async(recovery_plan_name, input, custom_headers).value! + def begin_update(recovery_plan_name, input, custom_headers:nil) + response = begin_update_async(recovery_plan_name, input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1441,8 +1441,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(recovery_plan_name, input, custom_headers = nil) - begin_update_async(recovery_plan_name, input, custom_headers).value! + def begin_update_with_http_info(recovery_plan_name, input, custom_headers:nil) + begin_update_async(recovery_plan_name, input, custom_headers:custom_headers).value! end # @@ -1457,7 +1457,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(recovery_plan_name, input, custom_headers = nil) + def begin_update_async(recovery_plan_name, input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -1467,7 +1467,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1532,8 +1531,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryPlanCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1549,8 +1548,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1565,11 +1564,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1624,12 +1624,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [RecoveryPlanCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_services_providers.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_services_providers.rb index ec1ea3142..2dc7add6b 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_services_providers.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_services_providers.rb @@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryServicesProvider] operation results. # - def refresh_provider(fabric_name, provider_name, custom_headers = nil) - response = refresh_provider_async(fabric_name, provider_name, custom_headers).value! + def refresh_provider(fabric_name, provider_name, custom_headers:nil) + response = refresh_provider_async(fabric_name, provider_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -47,9 +47,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def refresh_provider_async(fabric_name, provider_name, custom_headers = nil) + def refresh_provider_async(fabric_name, provider_name, custom_headers:nil) # Send request - promise = begin_refresh_provider_async(fabric_name, provider_name, custom_headers) + promise = begin_refresh_provider_async(fabric_name, provider_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -79,8 +79,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(fabric_name, provider_name, custom_headers = nil) - response = delete_async(fabric_name, provider_name, custom_headers).value! + def delete(fabric_name, provider_name, custom_headers:nil) + response = delete_async(fabric_name, provider_name, custom_headers:custom_headers).value! nil end @@ -93,9 +93,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(fabric_name, provider_name, custom_headers = nil) + def delete_async(fabric_name, provider_name, custom_headers:nil) # Send request - promise = begin_delete_async(fabric_name, provider_name, custom_headers) + promise = begin_delete_async(fabric_name, provider_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -121,8 +121,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryServicesProvider] operation results. # - def get(fabric_name, provider_name, custom_headers = nil) - response = get_async(fabric_name, provider_name, custom_headers).value! + def get(fabric_name, provider_name, custom_headers:nil) + response = get_async(fabric_name, provider_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -138,8 +138,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, provider_name, custom_headers = nil) - get_async(fabric_name, provider_name, custom_headers).value! + def get_with_http_info(fabric_name, provider_name, custom_headers:nil) + get_async(fabric_name, provider_name, custom_headers:custom_headers).value! end # @@ -154,7 +154,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, provider_name, custom_headers = nil) + def get_async(fabric_name, provider_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -164,6 +164,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -219,8 +220,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge(fabric_name, provider_name, custom_headers = nil) - response = purge_async(fabric_name, provider_name, custom_headers).value! + def purge(fabric_name, provider_name, custom_headers:nil) + response = purge_async(fabric_name, provider_name, custom_headers:custom_headers).value! nil end @@ -233,9 +234,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_async(fabric_name, provider_name, custom_headers = nil) + def purge_async(fabric_name, provider_name, custom_headers:nil) # Send request - promise = begin_purge_async(fabric_name, provider_name, custom_headers) + promise = begin_purge_async(fabric_name, provider_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -260,8 +261,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_fabrics(fabric_name, custom_headers = nil) - first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers) + def list_by_replication_fabrics(fabric_name, custom_headers:nil) + first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers) first_page.get_all_items end @@ -276,8 +277,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers = nil) - list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil) + list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! end # @@ -291,7 +292,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_async(fabric_name, custom_headers = nil) + def list_by_replication_fabrics_async(fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -300,6 +301,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -355,8 +357,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -371,8 +373,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -386,7 +388,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -394,6 +396,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -450,8 +453,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryServicesProvider] operation results. # - def begin_refresh_provider(fabric_name, provider_name, custom_headers = nil) - response = begin_refresh_provider_async(fabric_name, provider_name, custom_headers).value! + def begin_refresh_provider(fabric_name, provider_name, custom_headers:nil) + response = begin_refresh_provider_async(fabric_name, provider_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -467,8 +470,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_refresh_provider_with_http_info(fabric_name, provider_name, custom_headers = nil) - begin_refresh_provider_async(fabric_name, provider_name, custom_headers).value! + def begin_refresh_provider_with_http_info(fabric_name, provider_name, custom_headers:nil) + begin_refresh_provider_async(fabric_name, provider_name, custom_headers:custom_headers).value! end # @@ -483,7 +486,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_refresh_provider_async(fabric_name, provider_name, custom_headers = nil) + def begin_refresh_provider_async(fabric_name, provider_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -493,6 +496,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -552,8 +556,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_delete(fabric_name, provider_name, custom_headers = nil) - response = begin_delete_async(fabric_name, provider_name, custom_headers).value! + def begin_delete(fabric_name, provider_name, custom_headers:nil) + response = begin_delete_async(fabric_name, provider_name, custom_headers:custom_headers).value! nil end @@ -573,8 +577,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(fabric_name, provider_name, custom_headers = nil) - begin_delete_async(fabric_name, provider_name, custom_headers).value! + def begin_delete_with_http_info(fabric_name, provider_name, custom_headers:nil) + begin_delete_async(fabric_name, provider_name, custom_headers:custom_headers).value! end # @@ -593,7 +597,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(fabric_name, provider_name, custom_headers = nil) + def begin_delete_async(fabric_name, provider_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -603,6 +607,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -649,8 +654,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_purge(fabric_name, provider_name, custom_headers = nil) - response = begin_purge_async(fabric_name, provider_name, custom_headers).value! + def begin_purge(fabric_name, provider_name, custom_headers:nil) + response = begin_purge_async(fabric_name, provider_name, custom_headers:custom_headers).value! nil end @@ -667,8 +672,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_with_http_info(fabric_name, provider_name, custom_headers = nil) - begin_purge_async(fabric_name, provider_name, custom_headers).value! + def begin_purge_with_http_info(fabric_name, provider_name, custom_headers:nil) + begin_purge_async(fabric_name, provider_name, custom_headers:custom_headers).value! end # @@ -684,7 +689,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_async(fabric_name, provider_name, custom_headers = nil) + def begin_purge_async(fabric_name, provider_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -694,6 +699,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -740,8 +746,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryServicesProviderCollection] operation results. # - def list_by_replication_fabrics_next(next_page_link, custom_headers = nil) - response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next(next_page_link, custom_headers:nil) + response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -757,8 +763,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -773,11 +779,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_next_async(next_page_link, custom_headers = nil) + def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -834,8 +841,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [RecoveryServicesProviderCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -852,8 +859,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -869,11 +876,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -929,12 +937,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [RecoveryServicesProviderCollection] which provide lazy access to # pages of the response. # - def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers = nil) - response = list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil) + response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_fabrics_next_async(next_page_link, custom_headers) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -952,12 +960,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [RecoveryServicesProviderCollection] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb index d8847e03f..c12913cd3 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb @@ -35,8 +35,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [StorageClassificationMapping] operation results. # - def get(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers = nil) - response = get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers).value! + def get(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil) + response = get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers = nil) - get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers).value! + def get_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil) + get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers = nil) + def get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -83,6 +83,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -142,8 +143,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [StorageClassificationMapping] operation results. # - def create(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers = nil) - response = create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers).value! + def create(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:nil) + response = create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -159,9 +160,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers = nil) + def create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:nil) # Send request - promise = begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers) + promise = begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -189,8 +190,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers = nil) - response = delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers).value! + def delete(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil) + response = delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers).value! nil end @@ -205,9 +206,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers = nil) + def delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil) # Send request - promise = begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers) + promise = begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -233,8 +234,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_storage_classifications(fabric_name, storage_classification_name, custom_headers = nil) - first_page = list_by_replication_storage_classifications_as_lazy(fabric_name, storage_classification_name, custom_headers) + def list_by_replication_storage_classifications(fabric_name, storage_classification_name, custom_headers:nil) + first_page = list_by_replication_storage_classifications_as_lazy(fabric_name, storage_classification_name, custom_headers:custom_headers) first_page.get_all_items end @@ -250,8 +251,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_storage_classifications_with_http_info(fabric_name, storage_classification_name, custom_headers = nil) - list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers).value! + def list_by_replication_storage_classifications_with_http_info(fabric_name, storage_classification_name, custom_headers:nil) + list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers:custom_headers).value! end # @@ -266,7 +267,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers = nil) + def list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -276,6 +277,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -330,8 +332,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -345,8 +347,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -359,7 +361,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -367,6 +369,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -426,8 +429,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [StorageClassificationMapping] operation results. # - def begin_create(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers = nil) - response = begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers).value! + def begin_create(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:nil) + response = begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -446,8 +449,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers = nil) - begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers).value! + def begin_create_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:nil) + begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:custom_headers).value! end # @@ -465,7 +468,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers = nil) + def begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -477,7 +480,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -543,8 +545,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_delete(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers = nil) - response = begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers).value! + def begin_delete(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil) + response = begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers).value! nil end @@ -562,8 +564,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers = nil) - begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers).value! + def begin_delete_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil) + begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers).value! end # @@ -580,7 +582,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers = nil) + def begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -591,6 +593,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -637,8 +640,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [StorageClassificationMappingCollection] operation results. # - def list_by_replication_storage_classifications_next(next_page_link, custom_headers = nil) - response = list_by_replication_storage_classifications_next_async(next_page_link, custom_headers).value! + def list_by_replication_storage_classifications_next(next_page_link, custom_headers:nil) + response = list_by_replication_storage_classifications_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -654,8 +657,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_storage_classifications_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_storage_classifications_next_async(next_page_link, custom_headers).value! + def list_by_replication_storage_classifications_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_storage_classifications_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -670,11 +673,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_storage_classifications_next_async(next_page_link, custom_headers = nil) + def list_by_replication_storage_classifications_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -730,8 +734,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [StorageClassificationMappingCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -747,8 +751,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -763,11 +767,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -824,12 +829,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [StorageClassificationMappingCollection] which provide lazy access to # pages of the response. # - def list_by_replication_storage_classifications_as_lazy(fabric_name, storage_classification_name, custom_headers = nil) - response = list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers).value! + def list_by_replication_storage_classifications_as_lazy(fabric_name, storage_classification_name, custom_headers:nil) + response = list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_storage_classifications_next_async(next_page_link, custom_headers) + list_by_replication_storage_classifications_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -846,12 +851,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [StorageClassificationMappingCollection] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classifications.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classifications.rb index cbe6f762e..1480d73c4 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classifications.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classifications.rb @@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [StorageClassification] operation results. # - def get(fabric_name, storage_classification_name, custom_headers = nil) - response = get_async(fabric_name, storage_classification_name, custom_headers).value! + def get(fabric_name, storage_classification_name, custom_headers:nil) + response = get_async(fabric_name, storage_classification_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, storage_classification_name, custom_headers = nil) - get_async(fabric_name, storage_classification_name, custom_headers).value! + def get_with_http_info(fabric_name, storage_classification_name, custom_headers:nil) + get_async(fabric_name, storage_classification_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, storage_classification_name, custom_headers = nil) + def get_async(fabric_name, storage_classification_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -76,6 +76,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_fabrics(fabric_name, custom_headers = nil) - first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers) + def list_by_replication_fabrics(fabric_name, custom_headers:nil) + first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers) first_page.get_all_items end @@ -147,8 +148,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers = nil) - list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil) + list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! end # @@ -162,7 +163,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_async(fabric_name, custom_headers = nil) + def list_by_replication_fabrics_async(fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -171,6 +172,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -225,8 +227,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -240,8 +242,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -254,7 +256,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -262,6 +264,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -318,8 +321,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [StorageClassificationCollection] operation results. # - def list_by_replication_fabrics_next(next_page_link, custom_headers = nil) - response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next(next_page_link, custom_headers:nil) + response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -335,8 +338,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -351,11 +354,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_next_async(next_page_link, custom_headers = nil) + def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -411,8 +415,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [StorageClassificationCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -428,8 +432,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -444,11 +448,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -504,12 +509,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [StorageClassificationCollection] which provide lazy access to pages # of the response. # - def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers = nil) - response = list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil) + response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_fabrics_next_async(next_page_link, custom_headers) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -526,12 +531,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [StorageClassificationCollection] which provide lazy access to pages # of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb index 191566ff3..d69086cd1 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb @@ -31,8 +31,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [VaultHealthDetails] operation results. # - def get(custom_headers = nil) - response = get_async(custom_headers).value! + def get(custom_headers:nil) + response = get_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(custom_headers = nil) - get_async(custom_headers).value! + def get_with_http_info(custom_headers:nil) + get_async(custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(custom_headers = nil) + def get_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -68,6 +68,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb index cd45b19b6..b46c8ffef 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb @@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [VCenter] operation results. # - def get(fabric_name, v_center_name, custom_headers = nil) - response = get_async(fabric_name, v_center_name, custom_headers).value! + def get(fabric_name, v_center_name, custom_headers:nil) + response = get_async(fabric_name, v_center_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(fabric_name, v_center_name, custom_headers = nil) - get_async(fabric_name, v_center_name, custom_headers).value! + def get_with_http_info(fabric_name, v_center_name, custom_headers:nil) + get_async(fabric_name, v_center_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(fabric_name, v_center_name, custom_headers = nil) + def get_async(fabric_name, v_center_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -76,6 +76,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [VCenter] operation results. # - def create(fabric_name, v_center_name, add_vcenter_request, custom_headers = nil) - response = create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers).value! + def create(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil) + response = create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -150,9 +151,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers = nil) + def create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil) # Send request - promise = begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers) + promise = begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -179,8 +180,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(fabric_name, v_center_name, custom_headers = nil) - response = delete_async(fabric_name, v_center_name, custom_headers).value! + def delete(fabric_name, v_center_name, custom_headers:nil) + response = delete_async(fabric_name, v_center_name, custom_headers:custom_headers).value! nil end @@ -193,9 +194,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(fabric_name, v_center_name, custom_headers = nil) + def delete_async(fabric_name, v_center_name, custom_headers:nil) # Send request - promise = begin_delete_async(fabric_name, v_center_name, custom_headers) + promise = begin_delete_async(fabric_name, v_center_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -223,8 +224,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [VCenter] operation results. # - def update(fabric_name, v_center_name, update_vcenter_request, custom_headers = nil) - response = update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers).value! + def update(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil) + response = update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -239,9 +240,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers = nil) + def update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil) # Send request - promise = begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers) + promise = begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -268,8 +269,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list_by_replication_fabrics(fabric_name, custom_headers = nil) - first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers) + def list_by_replication_fabrics(fabric_name, custom_headers:nil) + first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers) first_page.get_all_items end @@ -284,8 +285,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers = nil) - list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil) + list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! end # @@ -299,7 +300,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_async(fabric_name, custom_headers = nil) + def list_by_replication_fabrics_async(fabric_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -308,6 +309,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -362,8 +364,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -377,8 +379,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -391,7 +393,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -399,6 +401,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -457,8 +460,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [VCenter] operation results. # - def begin_create(fabric_name, v_center_name, add_vcenter_request, custom_headers = nil) - response = begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers).value! + def begin_create(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil) + response = begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -476,8 +479,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(fabric_name, v_center_name, add_vcenter_request, custom_headers = nil) - begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers).value! + def begin_create_with_http_info(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil) + begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers).value! end # @@ -494,7 +497,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers = nil) + def begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -505,7 +508,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -570,8 +572,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # will be added to the HTTP request. # # - def begin_delete(fabric_name, v_center_name, custom_headers = nil) - response = begin_delete_async(fabric_name, v_center_name, custom_headers).value! + def begin_delete(fabric_name, v_center_name, custom_headers:nil) + response = begin_delete_async(fabric_name, v_center_name, custom_headers:custom_headers).value! nil end @@ -588,8 +590,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(fabric_name, v_center_name, custom_headers = nil) - begin_delete_async(fabric_name, v_center_name, custom_headers).value! + def begin_delete_with_http_info(fabric_name, v_center_name, custom_headers:nil) + begin_delete_async(fabric_name, v_center_name, custom_headers:custom_headers).value! end # @@ -605,7 +607,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(fabric_name, v_center_name, custom_headers = nil) + def begin_delete_async(fabric_name, v_center_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -615,6 +617,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +666,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [VCenter] operation results. # - def begin_update(fabric_name, v_center_name, update_vcenter_request, custom_headers = nil) - response = begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers).value! + def begin_update(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil) + response = begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -682,8 +685,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(fabric_name, v_center_name, update_vcenter_request, custom_headers = nil) - begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers).value! + def begin_update_with_http_info(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil) + begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:custom_headers).value! end # @@ -700,7 +703,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers = nil) + def begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil? fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? @@ -711,7 +714,6 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -776,8 +778,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [VCenterCollection] operation results. # - def list_by_replication_fabrics_next(next_page_link, custom_headers = nil) - response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next(next_page_link, custom_headers:nil) + response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -793,8 +795,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers = nil) - list_by_replication_fabrics_next_async(next_page_link, custom_headers).value! + def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -809,11 +811,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_replication_fabrics_next_async(next_page_link, custom_headers = nil) + def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -869,8 +872,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [VCenterCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -886,8 +889,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -902,11 +905,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -962,12 +966,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [VCenterCollection] which provide lazy access to pages of the # response. # - def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers = nil) - response = list_by_replication_fabrics_async(fabric_name, custom_headers).value! + def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil) + response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_replication_fabrics_next_async(next_page_link, custom_headers) + list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -984,12 +988,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10 # @return [VCenterCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_recovery_services_site_recovery/lib/profiles/latest/modules/recoveryservicessiterecovery_profile_module.rb b/management/azure_mgmt_recovery_services_site_recovery/lib/profiles/latest/modules/recoveryservicessiterecovery_profile_module.rb index 82461c1d4..fa6493549 100644 --- a/management/azure_mgmt_recovery_services_site_recovery/lib/profiles/latest/modules/recoveryservicessiterecovery_profile_module.rb +++ b/management/azure_mgmt_recovery_services_site_recovery/lib/profiles/latest/modules/recoveryservicessiterecovery_profile_module.rb @@ -374,31 +374,31 @@ module Azure::RecoveryServicesSiteRecovery::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::SiteRecoveryManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::SiteRecoveryManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @replication_vault_health = client_0.replication_vault_health - @replication_protected_items = client_0.replication_protected_items - @replication_network_mappings = client_0.replication_network_mappings - @replication_fabrics = client_0.replication_fabrics - @replicationv_centers = client_0.replicationv_centers - @replication_storage_classification_mappings = client_0.replication_storage_classification_mappings - @replication_storage_classifications = client_0.replication_storage_classifications - @replication_recovery_services_providers = client_0.replication_recovery_services_providers - @recovery_points = client_0.recovery_points - @replication_recovery_plans = client_0.replication_recovery_plans - @replication_protection_containers = client_0.replication_protection_containers - @replication_protection_container_mappings = client_0.replication_protection_container_mappings - @replication_protectable_items = client_0.replication_protectable_items - @replication_policies = client_0.replication_policies - @operations = client_0.operations - @replication_networks = client_0.replication_networks - @replication_logical_networks = client_0.replication_logical_networks - @replication_jobs = client_0.replication_jobs - @replication_events = client_0.replication_events - @replication_alert_settings = client_0.replication_alert_settings + add_telemetry(@client_0) + @replication_vault_health = @client_0.replication_vault_health + @replication_protected_items = @client_0.replication_protected_items + @replication_network_mappings = @client_0.replication_network_mappings + @replication_fabrics = @client_0.replication_fabrics + @replicationv_centers = @client_0.replicationv_centers + @replication_storage_classification_mappings = @client_0.replication_storage_classification_mappings + @replication_storage_classifications = @client_0.replication_storage_classifications + @replication_recovery_services_providers = @client_0.replication_recovery_services_providers + @recovery_points = @client_0.recovery_points + @replication_recovery_plans = @client_0.replication_recovery_plans + @replication_protection_containers = @client_0.replication_protection_containers + @replication_protection_container_mappings = @client_0.replication_protection_container_mappings + @replication_protectable_items = @client_0.replication_protectable_items + @replication_policies = @client_0.replication_policies + @operations = @client_0.operations + @replication_networks = @client_0.replication_networks + @replication_logical_networks = @client_0.replication_logical_networks + @replication_jobs = @client_0.replication_jobs + @replication_events = @client_0.replication_events + @replication_alert_settings = @client_0.replication_alert_settings @model_classes = ModelClasses.new end @@ -408,6 +408,14 @@ module Azure::RecoveryServicesSiteRecovery::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_redis/lib/2015-08-01/generated/azure_mgmt_redis/redis.rb b/management/azure_mgmt_redis/lib/2015-08-01/generated/azure_mgmt_redis/redis.rb index 08195a7ef..e06e76062 100644 --- a/management/azure_mgmt_redis/lib/2015-08-01/generated/azure_mgmt_redis/redis.rb +++ b/management/azure_mgmt_redis/lib/2015-08-01/generated/azure_mgmt_redis/redis.rb @@ -34,8 +34,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [RedisResourceWithAccessKey] operation results. # - def create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -78,7 +78,6 @@ module Azure::Redis::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -150,8 +149,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete(resource_group_name, name, custom_headers = nil) - response = delete_async(resource_group_name, name, custom_headers).value! + def delete(resource_group_name, name, custom_headers:nil) + response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -165,8 +164,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, name, custom_headers = nil) - delete_async(resource_group_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, name, custom_headers:nil) + delete_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -179,7 +178,7 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, name, custom_headers = nil) + def delete_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -187,6 +186,7 @@ module Azure::Redis::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -231,8 +231,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [RedisResource] operation results. # - def get(resource_group_name, name, custom_headers = nil) - response = get_async(resource_group_name, name, custom_headers).value! + def get(resource_group_name, name, custom_headers:nil) + response = get_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -246,8 +246,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, custom_headers = nil) - get_async(resource_group_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, name, custom_headers:nil) + get_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -260,7 +260,7 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, custom_headers = nil) + def get_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -268,6 +268,7 @@ module Azure::Redis::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -321,8 +322,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -335,8 +336,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -348,13 +349,14 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -407,8 +409,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -420,8 +422,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -432,12 +434,13 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -493,8 +496,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [RedisListKeysResult] operation results. # - def list_keys(resource_group_name, name, custom_headers = nil) - response = list_keys_async(resource_group_name, name, custom_headers).value! + def list_keys(resource_group_name, name, custom_headers:nil) + response = list_keys_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -509,8 +512,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, name, custom_headers = nil) - list_keys_async(resource_group_name, name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, name, custom_headers:nil) + list_keys_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -524,7 +527,7 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, name, custom_headers = nil) + def list_keys_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -532,6 +535,7 @@ module Azure::Redis::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -589,8 +593,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [RedisListKeysResult] operation results. # - def regenerate_key(resource_group_name, name, parameters, custom_headers = nil) - response = regenerate_key_async(resource_group_name, name, parameters, custom_headers).value! + def regenerate_key(resource_group_name, name, parameters, custom_headers:nil) + response = regenerate_key_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -607,8 +611,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - regenerate_key_async(resource_group_name, name, parameters, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + regenerate_key_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -624,7 +628,7 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, name, parameters, custom_headers = nil) + def regenerate_key_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -633,7 +637,6 @@ module Azure::Redis::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -698,8 +701,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def force_reboot(resource_group_name, name, parameters, custom_headers = nil) - response = force_reboot_async(resource_group_name, name, parameters, custom_headers).value! + def force_reboot(resource_group_name, name, parameters, custom_headers:nil) + response = force_reboot_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! nil end @@ -716,8 +719,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def force_reboot_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - force_reboot_async(resource_group_name, name, parameters, custom_headers).value! + def force_reboot_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + force_reboot_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -733,7 +736,7 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def force_reboot_async(resource_group_name, name, parameters, custom_headers = nil) + def force_reboot_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -742,7 +745,6 @@ module Azure::Redis::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -795,8 +797,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [RedisListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -810,8 +812,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -824,11 +826,12 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -882,8 +885,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [RedisListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -897,8 +900,8 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -911,11 +914,12 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -968,12 +972,12 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [RedisListResult] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -987,12 +991,12 @@ module Azure::Redis::Mgmt::V2015_08_01 # # @return [RedisListResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/firewall_rules.rb b/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/firewall_rules.rb index 1728d361a..f9bb57613 100644 --- a/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/firewall_rules.rb +++ b/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/firewall_rules.rb @@ -31,8 +31,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list(resource_group_name, cache_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, cache_name, custom_headers) + def list(resource_group_name, cache_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, cache_name, custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, cache_name, custom_headers = nil) - list_async(resource_group_name, cache_name, custom_headers).value! + def list_with_http_info(resource_group_name, cache_name, custom_headers:nil) + list_async(resource_group_name, cache_name, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, cache_name, custom_headers = nil) + def list_async(resource_group_name, cache_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -68,6 +68,7 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -122,8 +123,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisFirewallRuleListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -137,8 +138,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -151,11 +152,12 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -210,12 +212,12 @@ module Azure::Redis::Mgmt::V2016_04_01 # @return [RedisFirewallRuleListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, cache_name, custom_headers = nil) - response = list_async(resource_group_name, cache_name, custom_headers).value! + def list_as_lazy(resource_group_name, cache_name, custom_headers:nil) + response = list_async(resource_group_name, cache_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/operations.rb b/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/operations.rb index 2896a809e..b41d84644 100644 --- a/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/operations.rb +++ b/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/operations.rb @@ -30,8 +30,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,11 +57,12 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -116,8 +117,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +133,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -147,11 +148,12 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -205,12 +207,12 @@ module Azure::Redis::Mgmt::V2016_04_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/patch_schedules.rb b/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/patch_schedules.rb index b600a8a03..498da41b3 100644 --- a/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/patch_schedules.rb +++ b/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/patch_schedules.rb @@ -34,8 +34,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisPatchSchedule] operation results. # - def create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -78,7 +78,6 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -150,8 +149,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, name, custom_headers = nil) - response = delete_async(resource_group_name, name, custom_headers).value! + def delete(resource_group_name, name, custom_headers:nil) + response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -165,8 +164,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, name, custom_headers = nil) - delete_async(resource_group_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, name, custom_headers:nil) + delete_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -179,7 +178,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, name, custom_headers = nil) + def delete_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -187,6 +186,7 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -231,8 +231,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisPatchSchedule] operation results. # - def get(resource_group_name, name, custom_headers = nil) - response = get_async(resource_group_name, name, custom_headers).value! + def get(resource_group_name, name, custom_headers:nil) + response = get_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -246,8 +246,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, custom_headers = nil) - get_async(resource_group_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, name, custom_headers:nil) + get_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -260,7 +260,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, custom_headers = nil) + def get_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -268,6 +268,7 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/redis.rb b/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/redis.rb index d67e06d13..680f04194 100644 --- a/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/redis.rb +++ b/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/redis.rb @@ -34,8 +34,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisResource] operation results. # - def create(resource_group_name, name, parameters, custom_headers = nil) - response = create_async(resource_group_name, name, parameters, custom_headers).value! + def create(resource_group_name, name, parameters, custom_headers:nil) + response = create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,9 +50,9 @@ module Azure::Redis::Mgmt::V2016_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, name, parameters, custom_headers = nil) + def create_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisResource] operation results. # - def update(resource_group_name, name, parameters, custom_headers = nil) - response = update_async(resource_group_name, name, parameters, custom_headers).value! + def update(resource_group_name, name, parameters, custom_headers:nil) + response = update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -97,8 +97,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - update_async(resource_group_name, name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -113,7 +113,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, name, parameters, custom_headers = nil) + def update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -122,7 +122,6 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -183,8 +182,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, name, custom_headers = nil) - response = delete_async(resource_group_name, name, custom_headers).value! + def delete(resource_group_name, name, custom_headers:nil) + response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -197,9 +196,9 @@ module Azure::Redis::Mgmt::V2016_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, name, custom_headers = nil) + def delete_async(resource_group_name, name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, name, custom_headers) + promise = begin_delete_async(resource_group_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -223,8 +222,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisResource] operation results. # - def get(resource_group_name, name, custom_headers = nil) - response = get_async(resource_group_name, name, custom_headers).value! + def get(resource_group_name, name, custom_headers:nil) + response = get_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -238,8 +237,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, custom_headers = nil) - get_async(resource_group_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, name, custom_headers:nil) + get_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -252,7 +251,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, custom_headers = nil) + def get_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -260,6 +259,7 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -313,8 +313,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -327,8 +327,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -340,13 +340,14 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -399,8 +400,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -412,8 +413,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -424,12 +425,13 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -485,8 +487,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisAccessKeys] operation results. # - def list_keys(resource_group_name, name, custom_headers = nil) - response = list_keys_async(resource_group_name, name, custom_headers).value! + def list_keys(resource_group_name, name, custom_headers:nil) + response = list_keys_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -501,8 +503,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, name, custom_headers = nil) - list_keys_async(resource_group_name, name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, name, custom_headers:nil) + list_keys_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -516,7 +518,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, name, custom_headers = nil) + def list_keys_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -524,6 +526,7 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -581,8 +584,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisAccessKeys] operation results. # - def regenerate_key(resource_group_name, name, parameters, custom_headers = nil) - response = regenerate_key_async(resource_group_name, name, parameters, custom_headers).value! + def regenerate_key(resource_group_name, name, parameters, custom_headers:nil) + response = regenerate_key_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -599,8 +602,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - regenerate_key_async(resource_group_name, name, parameters, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + regenerate_key_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -616,7 +619,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, name, parameters, custom_headers = nil) + def regenerate_key_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -625,7 +628,6 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -691,8 +693,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisForceRebootResponse] operation results. # - def force_reboot(resource_group_name, name, parameters, custom_headers = nil) - response = force_reboot_async(resource_group_name, name, parameters, custom_headers).value! + def force_reboot(resource_group_name, name, parameters, custom_headers:nil) + response = force_reboot_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -709,8 +711,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def force_reboot_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - force_reboot_async(resource_group_name, name, parameters, custom_headers).value! + def force_reboot_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + force_reboot_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -726,7 +728,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def force_reboot_async(resource_group_name, name, parameters, custom_headers = nil) + def force_reboot_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -735,7 +737,6 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -798,8 +799,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def import_data(resource_group_name, name, parameters, custom_headers = nil) - response = import_data_async(resource_group_name, name, parameters, custom_headers).value! + def import_data(resource_group_name, name, parameters, custom_headers:nil) + response = import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! nil end @@ -814,9 +815,9 @@ module Azure::Redis::Mgmt::V2016_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def import_data_async(resource_group_name, name, parameters, custom_headers = nil) + def import_data_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_import_data_async(resource_group_name, name, parameters, custom_headers) + promise = begin_import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -840,8 +841,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def export_data(resource_group_name, name, parameters, custom_headers = nil) - response = export_data_async(resource_group_name, name, parameters, custom_headers).value! + def export_data(resource_group_name, name, parameters, custom_headers:nil) + response = export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! nil end @@ -856,9 +857,9 @@ module Azure::Redis::Mgmt::V2016_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def export_data_async(resource_group_name, name, parameters, custom_headers = nil) + def export_data_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_export_data_async(resource_group_name, name, parameters, custom_headers) + promise = begin_export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -885,8 +886,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisResource] operation results. # - def begin_create(resource_group_name, name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create(resource_group_name, name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -903,8 +904,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -920,7 +921,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -929,7 +930,6 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1001,8 +1001,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, name, custom_headers = nil) - response = begin_delete_async(resource_group_name, name, custom_headers).value! + def begin_delete(resource_group_name, name, custom_headers:nil) + response = begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -1016,8 +1016,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, name, custom_headers = nil) - begin_delete_async(resource_group_name, name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, name, custom_headers:nil) + begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1030,7 +1030,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, name, custom_headers = nil) + def begin_delete_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1038,6 +1038,7 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1083,8 +1084,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # will be added to the HTTP request. # # - def begin_import_data(resource_group_name, name, parameters, custom_headers = nil) - response = begin_import_data_async(resource_group_name, name, parameters, custom_headers).value! + def begin_import_data(resource_group_name, name, parameters, custom_headers:nil) + response = begin_import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! nil end @@ -1100,8 +1101,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_import_data_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_import_data_async(resource_group_name, name, parameters, custom_headers).value! + def begin_import_data_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -1116,7 +1117,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_import_data_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_import_data_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1125,7 +1126,6 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1179,8 +1179,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # will be added to the HTTP request. # # - def begin_export_data(resource_group_name, name, parameters, custom_headers = nil) - response = begin_export_data_async(resource_group_name, name, parameters, custom_headers).value! + def begin_export_data(resource_group_name, name, parameters, custom_headers:nil) + response = begin_export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! nil end @@ -1196,8 +1196,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_export_data_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_export_data_async(resource_group_name, name, parameters, custom_headers).value! + def begin_export_data_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -1212,7 +1212,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_export_data_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_export_data_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1221,7 +1221,6 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1274,8 +1273,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1289,8 +1288,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1303,11 +1302,12 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1361,8 +1361,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1376,8 +1376,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1390,11 +1390,12 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1447,12 +1448,12 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisListResult] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1466,12 +1467,12 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisListResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/redis_firewall_rule_operations.rb b/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/redis_firewall_rule_operations.rb index 6846e7c4d..63061e1b4 100644 --- a/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/redis_firewall_rule_operations.rb +++ b/management/azure_mgmt_redis/lib/2016-04-01/generated/azure_mgmt_redis/redis_firewall_rule_operations.rb @@ -34,8 +34,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisFirewallRule] operation results. # - def create_or_update(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cache_name is nil' if cache_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -79,7 +79,6 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -153,8 +152,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [RedisFirewallRule] operation results. # - def get(resource_group_name, cache_name, rule_name, custom_headers = nil) - response = get_async(resource_group_name, cache_name, rule_name, custom_headers).value! + def get(resource_group_name, cache_name, rule_name, custom_headers:nil) + response = get_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -169,8 +168,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, cache_name, rule_name, custom_headers = nil) - get_async(resource_group_name, cache_name, rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil) + get_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value! end # @@ -184,7 +183,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, cache_name, rule_name, custom_headers = nil) + def get_async(resource_group_name, cache_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cache_name is nil' if cache_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -193,6 +192,7 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -247,8 +247,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, cache_name, rule_name, custom_headers = nil) - response = delete_async(resource_group_name, cache_name, rule_name, custom_headers).value! + def delete(resource_group_name, cache_name, rule_name, custom_headers:nil) + response = delete_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value! nil end @@ -263,8 +263,8 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, cache_name, rule_name, custom_headers = nil) - delete_async(resource_group_name, cache_name, rule_name, custom_headers).value! + def delete_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil) + delete_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value! end # @@ -278,7 +278,7 @@ module Azure::Redis::Mgmt::V2016_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, cache_name, rule_name, custom_headers = nil) + def delete_async(resource_group_name, cache_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cache_name is nil' if cache_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -287,6 +287,7 @@ module Azure::Redis::Mgmt::V2016_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb b/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb index 4a09443b9..eb2bdc6f6 100644 --- a/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb +++ b/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb @@ -31,8 +31,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Array] operation results. # - def list_by_redis_resource(resource_group_name, cache_name, custom_headers = nil) - first_page = list_by_redis_resource_as_lazy(resource_group_name, cache_name, custom_headers) + def list_by_redis_resource(resource_group_name, cache_name, custom_headers:nil) + first_page = list_by_redis_resource_as_lazy(resource_group_name, cache_name, custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_redis_resource_with_http_info(resource_group_name, cache_name, custom_headers = nil) - list_by_redis_resource_async(resource_group_name, cache_name, custom_headers).value! + def list_by_redis_resource_with_http_info(resource_group_name, cache_name, custom_headers:nil) + list_by_redis_resource_async(resource_group_name, cache_name, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_redis_resource_async(resource_group_name, cache_name, custom_headers = nil) + def list_by_redis_resource_async(resource_group_name, cache_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -68,6 +68,7 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -125,8 +126,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisFirewallRule] operation results. # - def create_or_update(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -143,8 +144,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:custom_headers).value! end # @@ -160,7 +161,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cache_name is nil' if cache_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -170,7 +171,6 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -244,8 +244,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisFirewallRule] operation results. # - def get(resource_group_name, cache_name, rule_name, custom_headers = nil) - response = get_async(resource_group_name, cache_name, rule_name, custom_headers).value! + def get(resource_group_name, cache_name, rule_name, custom_headers:nil) + response = get_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -260,8 +260,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, cache_name, rule_name, custom_headers = nil) - get_async(resource_group_name, cache_name, rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil) + get_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value! end # @@ -275,7 +275,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, cache_name, rule_name, custom_headers = nil) + def get_async(resource_group_name, cache_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cache_name is nil' if cache_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -284,6 +284,7 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -338,8 +339,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # will be added to the HTTP request. # # - def delete(resource_group_name, cache_name, rule_name, custom_headers = nil) - response = delete_async(resource_group_name, cache_name, rule_name, custom_headers).value! + def delete(resource_group_name, cache_name, rule_name, custom_headers:nil) + response = delete_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value! nil end @@ -354,8 +355,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, cache_name, rule_name, custom_headers = nil) - delete_async(resource_group_name, cache_name, rule_name, custom_headers).value! + def delete_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil) + delete_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value! end # @@ -369,7 +370,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, cache_name, rule_name, custom_headers = nil) + def delete_async(resource_group_name, cache_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cache_name is nil' if cache_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? @@ -378,6 +379,7 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -422,8 +424,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisFirewallRuleListResult] operation results. # - def list_by_redis_resource_next(next_page_link, custom_headers = nil) - response = list_by_redis_resource_next_async(next_page_link, custom_headers).value! + def list_by_redis_resource_next(next_page_link, custom_headers:nil) + response = list_by_redis_resource_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -437,8 +439,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_redis_resource_next_with_http_info(next_page_link, custom_headers = nil) - list_by_redis_resource_next_async(next_page_link, custom_headers).value! + def list_by_redis_resource_next_with_http_info(next_page_link, custom_headers:nil) + list_by_redis_resource_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -451,11 +453,12 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_redis_resource_next_async(next_page_link, custom_headers = nil) + def list_by_redis_resource_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -510,12 +513,12 @@ module Azure::Redis::Mgmt::V2017_02_01 # @return [RedisFirewallRuleListResult] which provide lazy access to pages of # the response. # - def list_by_redis_resource_as_lazy(resource_group_name, cache_name, custom_headers = nil) - response = list_by_redis_resource_async(resource_group_name, cache_name, custom_headers).value! + def list_by_redis_resource_as_lazy(resource_group_name, cache_name, custom_headers:nil) + response = list_by_redis_resource_async(resource_group_name, cache_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_redis_resource_next_async(next_page_link, custom_headers) + list_by_redis_resource_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/operations.rb b/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/operations.rb index ccfd8d5e3..f65d5d05c 100644 --- a/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/operations.rb +++ b/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/operations.rb @@ -30,8 +30,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,11 +57,12 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -116,8 +117,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +133,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -147,11 +148,12 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -205,12 +207,12 @@ module Azure::Redis::Mgmt::V2017_02_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/patch_schedules.rb b/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/patch_schedules.rb index 641b1a988..d821240f9 100644 --- a/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/patch_schedules.rb +++ b/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/patch_schedules.rb @@ -34,8 +34,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisPatchSchedule] operation results. # - def create_or_update(resource_group_name, name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update(resource_group_name, name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -52,8 +52,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -78,7 +78,6 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -150,8 +149,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # will be added to the HTTP request. # # - def delete(resource_group_name, name, custom_headers = nil) - response = delete_async(resource_group_name, name, custom_headers).value! + def delete(resource_group_name, name, custom_headers:nil) + response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -165,8 +164,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, name, custom_headers = nil) - delete_async(resource_group_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, name, custom_headers:nil) + delete_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -179,7 +178,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, name, custom_headers = nil) + def delete_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -187,6 +186,7 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -231,8 +231,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisPatchSchedule] operation results. # - def get(resource_group_name, name, custom_headers = nil) - response = get_async(resource_group_name, name, custom_headers).value! + def get(resource_group_name, name, custom_headers:nil) + response = get_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -246,8 +246,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, custom_headers = nil) - get_async(resource_group_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, name, custom_headers:nil) + get_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -260,7 +260,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, custom_headers = nil) + def get_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -268,6 +268,7 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb b/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb index ddde3305d..3a8e29e38 100644 --- a/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb +++ b/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb @@ -34,8 +34,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisResource] operation results. # - def create(resource_group_name, name, parameters, custom_headers = nil) - response = create_async(resource_group_name, name, parameters, custom_headers).value! + def create(resource_group_name, name, parameters, custom_headers:nil) + response = create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,9 +50,9 @@ module Azure::Redis::Mgmt::V2017_02_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, name, parameters, custom_headers = nil) + def create_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -80,8 +80,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisResource] operation results. # - def update(resource_group_name, name, parameters, custom_headers = nil) - response = update_async(resource_group_name, name, parameters, custom_headers).value! + def update(resource_group_name, name, parameters, custom_headers:nil) + response = update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -97,8 +97,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - update_async(resource_group_name, name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -113,7 +113,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, name, parameters, custom_headers = nil) + def update_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -122,7 +122,6 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -183,8 +182,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, name, custom_headers = nil) - response = delete_async(resource_group_name, name, custom_headers).value! + def delete(resource_group_name, name, custom_headers:nil) + response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -197,9 +196,9 @@ module Azure::Redis::Mgmt::V2017_02_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, name, custom_headers = nil) + def delete_async(resource_group_name, name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, name, custom_headers) + promise = begin_delete_async(resource_group_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -223,8 +222,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisResource] operation results. # - def get(resource_group_name, name, custom_headers = nil) - response = get_async(resource_group_name, name, custom_headers).value! + def get(resource_group_name, name, custom_headers:nil) + response = get_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -238,8 +237,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, custom_headers = nil) - get_async(resource_group_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, name, custom_headers:nil) + get_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -252,7 +251,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, custom_headers = nil) + def get_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -260,6 +259,7 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -313,8 +313,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -327,8 +327,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -340,13 +340,14 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -399,8 +400,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -412,8 +413,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -424,12 +425,13 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -485,8 +487,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisAccessKeys] operation results. # - def list_keys(resource_group_name, name, custom_headers = nil) - response = list_keys_async(resource_group_name, name, custom_headers).value! + def list_keys(resource_group_name, name, custom_headers:nil) + response = list_keys_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -501,8 +503,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, name, custom_headers = nil) - list_keys_async(resource_group_name, name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, name, custom_headers:nil) + list_keys_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -516,7 +518,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, name, custom_headers = nil) + def list_keys_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -524,6 +526,7 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -581,8 +584,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisAccessKeys] operation results. # - def regenerate_key(resource_group_name, name, parameters, custom_headers = nil) - response = regenerate_key_async(resource_group_name, name, parameters, custom_headers).value! + def regenerate_key(resource_group_name, name, parameters, custom_headers:nil) + response = regenerate_key_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -599,8 +602,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - regenerate_key_async(resource_group_name, name, parameters, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + regenerate_key_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -616,7 +619,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, name, parameters, custom_headers = nil) + def regenerate_key_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -625,7 +628,6 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -691,8 +693,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisForceRebootResponse] operation results. # - def force_reboot(resource_group_name, name, parameters, custom_headers = nil) - response = force_reboot_async(resource_group_name, name, parameters, custom_headers).value! + def force_reboot(resource_group_name, name, parameters, custom_headers:nil) + response = force_reboot_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -709,8 +711,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def force_reboot_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - force_reboot_async(resource_group_name, name, parameters, custom_headers).value! + def force_reboot_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + force_reboot_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -726,7 +728,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def force_reboot_async(resource_group_name, name, parameters, custom_headers = nil) + def force_reboot_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -735,7 +737,6 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -798,8 +799,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def import_data(resource_group_name, name, parameters, custom_headers = nil) - response = import_data_async(resource_group_name, name, parameters, custom_headers).value! + def import_data(resource_group_name, name, parameters, custom_headers:nil) + response = import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! nil end @@ -814,9 +815,9 @@ module Azure::Redis::Mgmt::V2017_02_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def import_data_async(resource_group_name, name, parameters, custom_headers = nil) + def import_data_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_import_data_async(resource_group_name, name, parameters, custom_headers) + promise = begin_import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -840,8 +841,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def export_data(resource_group_name, name, parameters, custom_headers = nil) - response = export_data_async(resource_group_name, name, parameters, custom_headers).value! + def export_data(resource_group_name, name, parameters, custom_headers:nil) + response = export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! nil end @@ -856,9 +857,9 @@ module Azure::Redis::Mgmt::V2017_02_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def export_data_async(resource_group_name, name, parameters, custom_headers = nil) + def export_data_async(resource_group_name, name, parameters, custom_headers:nil) # Send request - promise = begin_export_data_async(resource_group_name, name, parameters, custom_headers) + promise = begin_export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -885,8 +886,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisResource] operation results. # - def begin_create(resource_group_name, name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create(resource_group_name, name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -903,8 +904,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -920,7 +921,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -929,7 +930,6 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1001,8 +1001,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, name, custom_headers = nil) - response = begin_delete_async(resource_group_name, name, custom_headers).value! + def begin_delete(resource_group_name, name, custom_headers:nil) + response = begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -1016,8 +1016,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, name, custom_headers = nil) - begin_delete_async(resource_group_name, name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, name, custom_headers:nil) + begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1030,7 +1030,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, name, custom_headers = nil) + def begin_delete_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -1038,6 +1038,7 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1083,8 +1084,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # will be added to the HTTP request. # # - def begin_import_data(resource_group_name, name, parameters, custom_headers = nil) - response = begin_import_data_async(resource_group_name, name, parameters, custom_headers).value! + def begin_import_data(resource_group_name, name, parameters, custom_headers:nil) + response = begin_import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! nil end @@ -1100,8 +1101,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_import_data_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_import_data_async(resource_group_name, name, parameters, custom_headers).value! + def begin_import_data_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -1116,7 +1117,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_import_data_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_import_data_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1125,7 +1126,6 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1179,8 +1179,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # will be added to the HTTP request. # # - def begin_export_data(resource_group_name, name, parameters, custom_headers = nil) - response = begin_export_data_async(resource_group_name, name, parameters, custom_headers).value! + def begin_export_data(resource_group_name, name, parameters, custom_headers:nil) + response = begin_export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! nil end @@ -1196,8 +1196,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_export_data_with_http_info(resource_group_name, name, parameters, custom_headers = nil) - begin_export_data_async(resource_group_name, name, parameters, custom_headers).value! + def begin_export_data_with_http_info(resource_group_name, name, parameters, custom_headers:nil) + begin_export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value! end # @@ -1212,7 +1212,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_export_data_async(resource_group_name, name, parameters, custom_headers = nil) + def begin_export_data_async(resource_group_name, name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -1221,7 +1221,6 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1274,8 +1273,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1289,8 +1288,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1303,11 +1302,12 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1361,8 +1361,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1376,8 +1376,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1390,11 +1390,12 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1447,12 +1448,12 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisListResult] which provide lazy access to pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1466,12 +1467,12 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisListResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis_linked_server_operations.rb b/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis_linked_server_operations.rb index 25122bf92..3f2fd2823 100644 --- a/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis_linked_server_operations.rb +++ b/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/redis_linked_server_operations.rb @@ -35,8 +35,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisLinkedServerWithProperties] operation results. # - def create(resource_group_name, name, linked_server_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, name, linked_server_name, parameters, custom_headers).value! + def create(resource_group_name, name, linked_server_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, name, linked_server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,9 +53,9 @@ module Azure::Redis::Mgmt::V2017_02_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, name, linked_server_name, parameters, custom_headers = nil) + def create_async(resource_group_name, name, linked_server_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, name, linked_server_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, name, linked_server_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -82,8 +82,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # will be added to the HTTP request. # # - def delete(resource_group_name, name, linked_server_name, custom_headers = nil) - response = delete_async(resource_group_name, name, linked_server_name, custom_headers).value! + def delete(resource_group_name, name, linked_server_name, custom_headers:nil) + response = delete_async(resource_group_name, name, linked_server_name, custom_headers:custom_headers).value! nil end @@ -99,8 +99,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, name, linked_server_name, custom_headers = nil) - delete_async(resource_group_name, name, linked_server_name, custom_headers).value! + def delete_with_http_info(resource_group_name, name, linked_server_name, custom_headers:nil) + delete_async(resource_group_name, name, linked_server_name, custom_headers:custom_headers).value! end # @@ -115,7 +115,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, name, linked_server_name, custom_headers = nil) + def delete_async(resource_group_name, name, linked_server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'linked_server_name is nil' if linked_server_name.nil? @@ -124,6 +124,7 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -170,8 +171,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisLinkedServerWithProperties] operation results. # - def get(resource_group_name, name, linked_server_name, custom_headers = nil) - response = get_async(resource_group_name, name, linked_server_name, custom_headers).value! + def get(resource_group_name, name, linked_server_name, custom_headers:nil) + response = get_async(resource_group_name, name, linked_server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -187,8 +188,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, linked_server_name, custom_headers = nil) - get_async(resource_group_name, name, linked_server_name, custom_headers).value! + def get_with_http_info(resource_group_name, name, linked_server_name, custom_headers:nil) + get_async(resource_group_name, name, linked_server_name, custom_headers:custom_headers).value! end # @@ -203,7 +204,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, linked_server_name, custom_headers = nil) + def get_async(resource_group_name, name, linked_server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'linked_server_name is nil' if linked_server_name.nil? @@ -212,6 +213,7 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -267,8 +269,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisLinkedServerWithPropertiesList] operation results. # - def list(resource_group_name, name, custom_headers = nil) - response = list_async(resource_group_name, name, custom_headers).value! + def list(resource_group_name, name, custom_headers:nil) + response = list_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -283,8 +285,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, name, custom_headers = nil) - list_async(resource_group_name, name, custom_headers).value! + def list_with_http_info(resource_group_name, name, custom_headers:nil) + list_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -298,7 +300,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, name, custom_headers = nil) + def list_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -306,6 +308,7 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -364,8 +367,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [RedisLinkedServerWithProperties] operation results. # - def begin_create(resource_group_name, name, linked_server_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, name, linked_server_name, parameters, custom_headers).value! + def begin_create(resource_group_name, name, linked_server_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, name, linked_server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -383,8 +386,8 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, name, linked_server_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, name, linked_server_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, name, linked_server_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, name, linked_server_name, parameters, custom_headers:custom_headers).value! end # @@ -401,7 +404,7 @@ module Azure::Redis::Mgmt::V2017_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, name, linked_server_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, name, linked_server_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'linked_server_name is nil' if linked_server_name.nil? @@ -411,7 +414,6 @@ module Azure::Redis::Mgmt::V2017_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_redis/lib/profiles/latest/modules/redis_profile_module.rb b/management/azure_mgmt_redis/lib/profiles/latest/modules/redis_profile_module.rb index a8d1f6eb6..57c68ca68 100644 --- a/management/azure_mgmt_redis/lib/profiles/latest/modules/redis_profile_module.rb +++ b/management/azure_mgmt_redis/lib/profiles/latest/modules/redis_profile_module.rb @@ -66,16 +66,16 @@ module Azure::Redis::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Redis::Mgmt::V2017_02_01::RedisManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Redis::Mgmt::V2017_02_01::RedisManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @redis = client_0.redis - @firewall_rules = client_0.firewall_rules - @patch_schedules = client_0.patch_schedules - @redis_linked_server_operations = client_0.redis_linked_server_operations + add_telemetry(@client_0) + @operations = @client_0.operations + @redis = @client_0.redis + @firewall_rules = @client_0.firewall_rules + @patch_schedules = @client_0.patch_schedules + @redis_linked_server_operations = @client_0.redis_linked_server_operations @model_classes = ModelClasses.new end @@ -85,6 +85,14 @@ module Azure::Redis::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/hybrid_connections.rb b/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/hybrid_connections.rb index aa089fe29..9c6550ab7 100644 --- a/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/hybrid_connections.rb +++ b/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/hybrid_connections.rb @@ -33,8 +33,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -64,7 +64,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil) + def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -76,6 +76,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [HybridConnection] operation results. # - def create_or_update(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +154,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -171,7 +172,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -187,7 +188,6 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -251,8 +251,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def delete(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! nil end @@ -268,8 +268,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! end # @@ -284,7 +284,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -299,6 +299,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -345,8 +346,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [HybridConnection] operation results. # - def get(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def get(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -362,8 +363,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! end # @@ -378,7 +379,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -393,6 +394,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -449,8 +451,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers) first_page.get_all_items end @@ -466,8 +468,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! end # @@ -482,7 +484,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -497,6 +499,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -555,8 +558,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRule] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -574,8 +577,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -592,7 +595,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -611,7 +614,6 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -676,8 +678,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -694,8 +696,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -711,7 +713,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -729,6 +731,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -776,8 +779,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRule] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -794,8 +797,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -811,7 +814,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -829,6 +832,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -886,8 +890,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRuleKeys] operation results. # - def list_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -904,8 +908,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -921,7 +925,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -939,6 +943,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -999,8 +1004,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRuleKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1020,8 +1025,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1040,7 +1045,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1059,7 +1064,6 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1122,8 +1126,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [HybridConnectionListResult] operation results. # - def list_by_namespace_next(next_page_link, custom_headers = nil) - response = list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next(next_page_link, custom_headers:nil) + response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1137,8 +1141,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil) - list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1151,11 +1155,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_next_async(next_page_link, custom_headers = nil) + def list_by_namespace_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1209,8 +1214,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1224,8 +1229,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1238,11 +1243,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1298,12 +1304,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # @return [HybridConnectionListResult] which provide lazy access to pages of # the response. # - def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_namespace_next_async(next_page_link, custom_headers) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1322,12 +1328,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # @return [AuthorizationRuleListResult] which provide lazy access to pages of # the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/namespaces.rb b/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/namespaces.rb index 0d423ecb2..f01412f88 100644 --- a/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/namespaces.rb +++ b/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/namespaces.rb @@ -32,8 +32,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability_method(parameters, custom_headers = nil) - response = check_name_availability_method_async(parameters, custom_headers).value! + def check_name_availability_method(parameters, custom_headers:nil) + response = check_name_availability_method_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -47,8 +47,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_method_with_http_info(parameters, custom_headers = nil) - check_name_availability_method_async(parameters, custom_headers).value! + def check_name_availability_method_with_http_info(parameters, custom_headers:nil) + check_name_availability_method_async(parameters, custom_headers:custom_headers).value! end # @@ -61,14 +61,13 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_method_async(parameters, custom_headers = nil) + def check_name_availability_method_async(parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -130,8 +129,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -144,8 +143,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -157,12 +156,13 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -217,8 +217,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -232,8 +232,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -246,7 +246,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -255,6 +255,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -312,8 +313,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [RelayNamespace] operation results. # - def create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -329,9 +330,9 @@ module Azure::Relay::Mgmt::V2016_07_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -357,8 +358,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, namespace_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, custom_headers).value! + def delete(resource_group_name, namespace_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -372,9 +373,9 @@ module Azure::Relay::Mgmt::V2016_07_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, namespace_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, namespace_name, custom_headers) + promise = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -399,8 +400,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [RelayNamespace] operation results. # - def get(resource_group_name, namespace_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, custom_headers).value! + def get(resource_group_name, namespace_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -415,8 +416,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -430,7 +431,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -442,6 +443,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,8 +502,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [RelayNamespace] operation results. # - def update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -519,8 +521,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -537,7 +539,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -550,7 +552,6 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -614,8 +615,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -630,8 +631,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -645,7 +646,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -657,6 +658,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -714,8 +716,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRule] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -732,8 +734,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -749,7 +751,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -765,7 +767,6 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -829,8 +830,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -846,8 +847,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -862,7 +863,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -877,6 +878,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -923,8 +925,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRule] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -940,8 +942,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -956,7 +958,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -971,6 +973,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1027,8 +1030,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRuleKeys] operation results. # - def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1044,8 +1047,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -1060,7 +1063,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1075,6 +1078,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1133,8 +1137,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRuleKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1152,8 +1156,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1170,7 +1174,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1186,7 +1190,6 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1252,8 +1255,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [RelayNamespace] operation results. # - def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1270,8 +1273,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -1287,7 +1290,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1300,7 +1303,6 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1364,8 +1366,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, namespace_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete(resource_group_name, namespace_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -1381,8 +1383,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -1397,7 +1399,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil) + def begin_delete_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1409,6 +1411,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1454,8 +1457,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [RelayNamespaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1470,8 +1473,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1485,11 +1488,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1543,8 +1547,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [RelayNamespaceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1558,8 +1562,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1572,11 +1576,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1630,8 +1635,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1645,8 +1650,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1659,11 +1664,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1717,12 +1723,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # @return [RelayNamespaceListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1739,12 +1745,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # @return [RelayNamespaceListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1762,12 +1768,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # @return [AuthorizationRuleListResult] which provide lazy access to pages of # the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/operations.rb b/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/operations.rb index cfd83b769..063eacadd 100644 --- a/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/operations.rb +++ b/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/operations.rb @@ -30,8 +30,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -43,8 +43,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -55,11 +55,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -113,8 +114,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -128,8 +129,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -142,11 +143,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -199,12 +201,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/wcfrelays.rb b/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/wcfrelays.rb index f3be87719..eae6132e4 100644 --- a/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/wcfrelays.rb +++ b/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/wcfrelays.rb @@ -33,8 +33,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -64,7 +64,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil) + def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -76,6 +76,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [WcfRelay] operation results. # - def create_or_update(resource_group_name, namespace_name, relay_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, relay_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, relay_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, relay_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers:custom_headers).value! end # @@ -168,7 +169,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -184,7 +185,6 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -248,8 +248,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, relay_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def delete(resource_group_name, namespace_name, relay_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! nil end @@ -265,8 +265,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -281,7 +281,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, relay_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -296,6 +296,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -342,8 +343,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [WcfRelay] operation results. # - def get(resource_group_name, namespace_name, relay_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def get(resource_group_name, namespace_name, relay_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -359,8 +360,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -375,7 +376,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, relay_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -390,6 +391,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -446,8 +448,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, relay_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, relay_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers) first_page.get_all_items end @@ -463,8 +465,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -479,7 +481,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -494,6 +496,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -552,8 +555,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRule] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -571,8 +574,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -589,7 +592,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -608,7 +611,6 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -673,8 +675,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -691,8 +693,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -708,7 +710,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -726,6 +728,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -773,8 +776,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRule] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -791,8 +794,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -808,7 +811,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -826,6 +829,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -883,8 +887,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRuleKeys] operation results. # - def list_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -901,8 +905,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -918,7 +922,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -936,6 +940,7 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -995,8 +1000,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRuleKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1015,8 +1020,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1034,7 +1039,7 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1053,7 +1058,6 @@ module Azure::Relay::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1116,8 +1120,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [WcfRelaysListResult] operation results. # - def list_by_namespace_next(next_page_link, custom_headers = nil) - response = list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next(next_page_link, custom_headers:nil) + response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1131,8 +1135,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil) - list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1145,11 +1149,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_next_async(next_page_link, custom_headers = nil) + def list_by_namespace_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1203,8 +1208,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [AuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1218,8 +1223,8 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1232,11 +1237,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1292,12 +1298,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # @return [WcfRelaysListResult] which provide lazy access to pages of the # response. # - def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_namespace_next_async(next_page_link, custom_headers) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1316,12 +1322,12 @@ module Azure::Relay::Mgmt::V2016_07_01 # @return [AuthorizationRuleListResult] which provide lazy access to pages of # the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/hybrid_connections.rb b/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/hybrid_connections.rb index 49c4c0e50..08d8a00e1 100644 --- a/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/hybrid_connections.rb +++ b/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/hybrid_connections.rb @@ -33,8 +33,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -64,7 +64,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil) + def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -76,6 +76,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [HybridConnection] operation results. # - def create_or_update(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +154,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:custom_headers).value! end # @@ -171,7 +172,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, hybrid_connection_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -186,7 +187,6 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -250,8 +250,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def delete(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! nil end @@ -267,8 +267,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! end # @@ -283,7 +283,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -297,6 +297,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -343,8 +344,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [HybridConnection] operation results. # - def get(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def get(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -360,8 +361,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! end # @@ -376,7 +377,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -390,6 +391,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -446,8 +448,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers) first_page.get_all_items end @@ -463,8 +465,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! end # @@ -479,7 +481,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -493,6 +495,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -551,8 +554,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AuthorizationRule] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -570,8 +573,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -588,7 +591,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -605,7 +608,6 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -670,8 +672,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -688,8 +690,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -705,7 +707,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -721,6 +723,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -768,8 +771,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AuthorizationRule] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -786,8 +789,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -803,7 +806,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -819,6 +822,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -876,8 +880,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def list_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -894,8 +898,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -911,7 +915,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -927,6 +931,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -987,8 +992,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1008,8 +1013,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1028,7 +1033,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1045,7 +1050,6 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1108,8 +1112,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [HybridConnectionListResult] operation results. # - def list_by_namespace_next(next_page_link, custom_headers = nil) - response = list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next(next_page_link, custom_headers:nil) + response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1123,8 +1127,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil) - list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1137,11 +1141,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_next_async(next_page_link, custom_headers = nil) + def list_by_namespace_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1195,8 +1200,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1210,8 +1215,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1224,11 +1229,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1284,12 +1290,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # @return [HybridConnectionListResult] which provide lazy access to pages of # the response. # - def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_namespace_next_async(next_page_link, custom_headers) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1308,12 +1314,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # @return [AuthorizationRuleListResult] which provide lazy access to pages of # the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, hybrid_connection_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/namespaces.rb b/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/namespaces.rb index 7b54a3cc3..1abdd61df 100644 --- a/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/namespaces.rb +++ b/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/namespaces.rb @@ -32,8 +32,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability_method(parameters, custom_headers = nil) - response = check_name_availability_method_async(parameters, custom_headers).value! + def check_name_availability_method(parameters, custom_headers:nil) + response = check_name_availability_method_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -47,8 +47,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_method_with_http_info(parameters, custom_headers = nil) - check_name_availability_method_async(parameters, custom_headers).value! + def check_name_availability_method_with_http_info(parameters, custom_headers:nil) + check_name_availability_method_async(parameters, custom_headers:custom_headers).value! end # @@ -61,14 +61,13 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_method_async(parameters, custom_headers = nil) + def check_name_availability_method_async(parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -130,8 +129,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -144,8 +143,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -157,12 +156,13 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -217,8 +217,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -232,8 +232,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -246,7 +246,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -255,6 +255,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -312,8 +313,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [RelayNamespace] operation results. # - def create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -329,9 +330,9 @@ module Azure::Relay::Mgmt::V2017_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -357,8 +358,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, namespace_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, custom_headers).value! + def delete(resource_group_name, namespace_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -372,9 +373,9 @@ module Azure::Relay::Mgmt::V2017_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, namespace_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, namespace_name, custom_headers) + promise = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -399,8 +400,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [RelayNamespace] operation results. # - def get(resource_group_name, namespace_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, custom_headers).value! + def get(resource_group_name, namespace_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -415,8 +416,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -430,7 +431,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -442,6 +443,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,8 +502,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [RelayNamespace] operation results. # - def update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -519,8 +521,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -537,7 +539,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -550,7 +552,6 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -624,8 +625,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -640,8 +641,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -655,7 +656,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -667,6 +668,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -724,8 +726,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AuthorizationRule] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -742,8 +744,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -759,7 +761,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -774,7 +776,6 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -838,8 +839,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -855,8 +856,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -871,7 +872,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -885,6 +886,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -931,8 +933,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AuthorizationRule] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -948,8 +950,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -964,7 +966,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -978,6 +980,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1034,8 +1037,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1051,8 +1054,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -1067,7 +1070,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1081,6 +1084,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1139,8 +1143,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1158,8 +1162,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1176,7 +1180,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1191,7 +1195,6 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1257,8 +1260,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [RelayNamespace] operation results. # - def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1275,8 +1278,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -1292,7 +1295,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1305,7 +1308,6 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1379,8 +1381,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, namespace_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete(resource_group_name, namespace_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -1396,8 +1398,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -1412,7 +1414,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil) + def begin_delete_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1424,6 +1426,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1469,8 +1472,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [RelayNamespaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1485,8 +1488,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1500,11 +1503,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1558,8 +1562,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [RelayNamespaceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1573,8 +1577,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1587,11 +1591,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1645,8 +1650,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1660,8 +1665,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1674,11 +1679,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1732,12 +1738,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # @return [RelayNamespaceListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1754,12 +1760,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # @return [RelayNamespaceListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1777,12 +1783,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # @return [AuthorizationRuleListResult] which provide lazy access to pages of # the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/operations.rb b/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/operations.rb index 8e75210f3..6c43e165c 100644 --- a/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/operations.rb +++ b/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/operations.rb @@ -30,8 +30,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -43,8 +43,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -55,11 +55,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -113,8 +114,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -128,8 +129,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -142,11 +143,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -199,12 +201,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/wcfrelays.rb b/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/wcfrelays.rb index 53e4de878..8b26e0b88 100644 --- a/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/wcfrelays.rb +++ b/management/azure_mgmt_relay/lib/2017-04-01/generated/azure_mgmt_relay/wcfrelays.rb @@ -33,8 +33,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -64,7 +64,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil) + def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -76,6 +76,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [WcfRelay] operation results. # - def create_or_update(resource_group_name, namespace_name, relay_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, relay_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, relay_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, relay_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers:custom_headers).value! end # @@ -168,7 +169,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, relay_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -183,7 +184,6 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -247,8 +247,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, relay_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def delete(resource_group_name, namespace_name, relay_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! nil end @@ -264,8 +264,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -280,7 +280,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, relay_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -294,6 +294,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -340,8 +341,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [WcfRelay] operation results. # - def get(resource_group_name, namespace_name, relay_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def get(resource_group_name, namespace_name, relay_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -357,8 +358,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -373,7 +374,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, relay_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -387,6 +388,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -443,8 +445,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, relay_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, relay_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers) first_page.get_all_items end @@ -460,8 +462,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, relay_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -476,7 +478,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -490,6 +492,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -548,8 +551,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AuthorizationRule] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -567,8 +570,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -585,7 +588,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -602,7 +605,6 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -667,8 +669,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -685,8 +687,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -702,7 +704,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -718,6 +720,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -765,8 +768,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AuthorizationRule] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -783,8 +786,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -800,7 +803,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -816,6 +819,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -873,8 +877,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def list_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -891,8 +895,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -908,7 +912,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -924,6 +928,7 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -983,8 +988,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1003,8 +1008,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1022,7 +1027,7 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, relay_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1039,7 +1044,6 @@ module Azure::Relay::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1102,8 +1106,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [WcfRelaysListResult] operation results. # - def list_by_namespace_next(next_page_link, custom_headers = nil) - response = list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next(next_page_link, custom_headers:nil) + response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1117,8 +1121,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil) - list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1131,11 +1135,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_next_async(next_page_link, custom_headers = nil) + def list_by_namespace_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1189,8 +1194,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [AuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1204,8 +1209,8 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1218,11 +1223,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1278,12 +1284,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # @return [WcfRelaysListResult] which provide lazy access to pages of the # response. # - def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_namespace_next_async(next_page_link, custom_headers) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1302,12 +1308,12 @@ module Azure::Relay::Mgmt::V2017_04_01 # @return [AuthorizationRuleListResult] which provide lazy access to pages of # the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, relay_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, relay_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_relay/lib/profiles/latest/modules/relay_profile_module.rb b/management/azure_mgmt_relay/lib/profiles/latest/modules/relay_profile_module.rb index b8014e112..40d9edda9 100644 --- a/management/azure_mgmt_relay/lib/profiles/latest/modules/relay_profile_module.rb +++ b/management/azure_mgmt_relay/lib/profiles/latest/modules/relay_profile_module.rb @@ -60,15 +60,15 @@ module Azure::Relay::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Relay::Mgmt::V2017_04_01::RelayManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Relay::Mgmt::V2017_04_01::RelayManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @namespaces = client_0.namespaces - @hybrid_connections = client_0.hybrid_connections - @wcfrelays = client_0.wcfrelays + add_telemetry(@client_0) + @operations = @client_0.operations + @namespaces = @client_0.namespaces + @hybrid_connections = @client_0.hybrid_connections + @wcfrelays = @client_0.wcfrelays @model_classes = ModelClasses.new end @@ -78,6 +78,14 @@ module Azure::Relay::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/deployment_operations.rb b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/deployment_operations.rb index 8755aef10..084615c45 100644 --- a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/deployment_operations.rb +++ b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/deployment_operations.rb @@ -33,8 +33,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [DeploymentOperation] operation results. # - def get(resource_group_name, deployment_name, operation_id, custom_headers = nil) - response = get_async(resource_group_name, deployment_name, operation_id, custom_headers).value! + def get(resource_group_name, deployment_name, operation_id, custom_headers:nil) + response = get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers = nil) - get_async(resource_group_name, deployment_name, operation_id, custom_headers).value! + def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers:nil) + get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, deployment_name, operation_id, custom_headers = nil) + def get_async(resource_group_name, deployment_name, operation_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -78,6 +78,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Array] operation results. # - def list(resource_group_name, deployment_name, top = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, deployment_name, top, custom_headers) + def list(resource_group_name, deployment_name, top:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, deployment_name, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -151,8 +152,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, deployment_name, top = nil, custom_headers = nil) - list_async(resource_group_name, deployment_name, top, custom_headers).value! + def list_with_http_info(resource_group_name, deployment_name, top:nil, custom_headers:nil) + list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value! end # @@ -167,7 +168,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, deployment_name, top = nil, custom_headers = nil) + def list_async(resource_group_name, deployment_name, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -178,6 +179,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -232,8 +234,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [DeploymentOperationsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -247,8 +249,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -261,11 +263,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -322,12 +325,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # @return [DeploymentOperationsListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, deployment_name, top = nil, custom_headers = nil) - response = list_async(resource_group_name, deployment_name, top, custom_headers).value! + def list_as_lazy(resource_group_name, deployment_name, top:nil, custom_headers:nil) + response = list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/deployments.rb b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/deployments.rb index dd2084f59..af6161b92 100644 --- a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/deployments.rb +++ b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/deployments.rb @@ -30,8 +30,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, deployment_name, custom_headers = nil) - response = delete_async(resource_group_name, deployment_name, custom_headers).value! + def delete(resource_group_name, deployment_name, custom_headers:nil) + response = delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Resources::Mgmt::V2016_02_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, deployment_name, custom_headers = nil) + def delete_async(resource_group_name, deployment_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, deployment_name, custom_headers) + promise = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, deployment_name, custom_headers = nil) - response = check_existence_async(resource_group_name, deployment_name, custom_headers).value! + def check_existence(resource_group_name, deployment_name, custom_headers:nil) + response = check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - check_existence_async(resource_group_name, deployment_name, custom_headers).value! + def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, deployment_name, custom_headers = nil) + def check_existence_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -114,6 +114,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -162,8 +163,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [DeploymentExtended] operation results. # - def create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -179,9 +180,9 @@ module Azure::Resources::Mgmt::V2016_02_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -208,8 +209,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [DeploymentExtended] operation results. # - def get(resource_group_name, deployment_name, custom_headers = nil) - response = get_async(resource_group_name, deployment_name, custom_headers).value! + def get(resource_group_name, deployment_name, custom_headers:nil) + response = get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -224,8 +225,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - get_async(resource_group_name, deployment_name, custom_headers).value! + def get_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -239,7 +240,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, deployment_name, custom_headers = nil) + def get_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -250,6 +251,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -304,8 +306,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # will be added to the HTTP request. # # - def cancel(resource_group_name, deployment_name, custom_headers = nil) - response = cancel_async(resource_group_name, deployment_name, custom_headers).value! + def cancel(resource_group_name, deployment_name, custom_headers:nil) + response = cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -320,8 +322,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def cancel_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - cancel_async(resource_group_name, deployment_name, custom_headers).value! + def cancel_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -335,7 +337,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def cancel_async(resource_group_name, deployment_name, custom_headers = nil) + def cancel_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -346,6 +348,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +395,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [DeploymentValidateResult] operation results. # - def validate(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = validate_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def validate(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -409,8 +412,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers = nil) - validate_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil) + validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! end # @@ -425,7 +428,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def validate_async(resource_group_name, deployment_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -437,7 +440,6 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -511,8 +513,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [DeploymentExportResult] operation results. # - def export_template(resource_group_name, deployment_name, custom_headers = nil) - response = export_template_async(resource_group_name, deployment_name, custom_headers).value! + def export_template(resource_group_name, deployment_name, custom_headers:nil) + response = export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -527,8 +529,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_template_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - export_template_async(resource_group_name, deployment_name, custom_headers).value! + def export_template_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -542,7 +544,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_template_async(resource_group_name, deployment_name, custom_headers = nil) + def export_template_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -553,6 +555,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -610,8 +613,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Array] operation results. # - def list(resource_group_name, filter = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, filter, top, custom_headers) + def list(resource_group_name, filter:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, filter:filter, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -628,8 +631,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, filter = nil, top = nil, custom_headers = nil) - list_async(resource_group_name, filter, top, custom_headers).value! + def list_with_http_info(resource_group_name, filter:nil, top:nil, custom_headers:nil) + list_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value! end # @@ -645,7 +648,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, filter = nil, top = nil, custom_headers = nil) + def list_async(resource_group_name, filter:nil, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -655,6 +658,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -709,8 +713,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, deployment_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, deployment_name, custom_headers).value! + def begin_delete(resource_group_name, deployment_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -725,8 +729,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - begin_delete_async(resource_group_name, deployment_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -740,7 +744,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, deployment_name, custom_headers = nil) + def begin_delete_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -751,6 +755,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -798,8 +803,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [DeploymentExtended] operation results. # - def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -816,8 +821,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! end # @@ -833,7 +838,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -845,7 +850,6 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -918,8 +922,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [DeploymentListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -933,8 +937,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -947,11 +951,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1009,12 +1014,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # @return [DeploymentListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, filter = nil, top = nil, custom_headers = nil) - response = list_async(resource_group_name, filter, top, custom_headers).value! + def list_as_lazy(resource_group_name, filter:nil, top:nil, custom_headers:nil) + response = list_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/providers.rb b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/providers.rb index ef28c1a0d..949657077 100644 --- a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/providers.rb +++ b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/providers.rb @@ -31,8 +31,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Provider] operation results. # - def unregister(resource_provider_namespace, custom_headers = nil) - response = unregister_async(resource_provider_namespace, custom_headers).value! + def unregister(resource_provider_namespace, custom_headers:nil) + response = unregister_async(resource_provider_namespace, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def unregister_with_http_info(resource_provider_namespace, custom_headers = nil) - unregister_async(resource_provider_namespace, custom_headers).value! + def unregister_with_http_info(resource_provider_namespace, custom_headers:nil) + unregister_async(resource_provider_namespace, custom_headers:custom_headers).value! end # @@ -60,13 +60,14 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def unregister_async(resource_provider_namespace, custom_headers = nil) + def unregister_async(resource_provider_namespace, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -121,8 +122,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Provider] operation results. # - def register(resource_provider_namespace, custom_headers = nil) - response = register_async(resource_provider_namespace, custom_headers).value! + def register(resource_provider_namespace, custom_headers:nil) + response = register_async(resource_provider_namespace, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -136,8 +137,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def register_with_http_info(resource_provider_namespace, custom_headers = nil) - register_async(resource_provider_namespace, custom_headers).value! + def register_with_http_info(resource_provider_namespace, custom_headers:nil) + register_async(resource_provider_namespace, custom_headers:custom_headers).value! end # @@ -150,13 +151,14 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def register_async(resource_provider_namespace, custom_headers = nil) + def register_async(resource_provider_namespace, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -213,8 +215,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Array] operation results. # - def list(top = nil, expand = nil, custom_headers = nil) - first_page = list_as_lazy(top, expand, custom_headers) + def list(top:nil, expand:nil, custom_headers:nil) + first_page = list_as_lazy(top:top, expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -230,8 +232,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(top = nil, expand = nil, custom_headers = nil) - list_async(top, expand, custom_headers).value! + def list_with_http_info(top:nil, expand:nil, custom_headers:nil) + list_async(top:top, expand:expand, custom_headers:custom_headers).value! end # @@ -246,12 +248,13 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(top = nil, expand = nil, custom_headers = nil) + def list_async(top:nil, expand:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +311,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Provider] operation results. # - def get(resource_provider_namespace, expand = nil, custom_headers = nil) - response = get_async(resource_provider_namespace, expand, custom_headers).value! + def get(resource_provider_namespace, expand:nil, custom_headers:nil) + response = get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -325,8 +328,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_provider_namespace, expand = nil, custom_headers = nil) - get_async(resource_provider_namespace, expand, custom_headers).value! + def get_with_http_info(resource_provider_namespace, expand:nil, custom_headers:nil) + get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value! end # @@ -341,13 +344,14 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_provider_namespace, expand = nil, custom_headers = nil) + def get_async(resource_provider_namespace, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -402,8 +406,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [ProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -417,8 +421,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -431,11 +435,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -492,12 +497,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # @return [ProviderListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(top = nil, expand = nil, custom_headers = nil) - response = list_async(top, expand, custom_headers).value! + def list_as_lazy(top:nil, expand:nil, custom_headers:nil) + response = list_async(top:top, expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb index 2ad3632c8..16c4fb0b9 100644 --- a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb +++ b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb @@ -35,8 +35,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Array] operation results. # - def list_resources(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - first_page = list_resources_as_lazy(resource_group_name, filter, expand, top, custom_headers) + def list_resources(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + first_page = list_resources_as_lazy(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -54,8 +54,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resources_with_http_info(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - list_resources_async(resource_group_name, filter, expand, top, custom_headers).value! + def list_resources_with_http_info(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + list_resources_async(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resources_async(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) + def list_resources_async(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -82,6 +82,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -136,8 +137,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, custom_headers = nil) - response = check_existence_async(resource_group_name, custom_headers).value! + def check_existence(resource_group_name, custom_headers:nil) + response = check_existence_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, custom_headers = nil) - check_existence_async(resource_group_name, custom_headers).value! + def check_existence_with_http_info(resource_group_name, custom_headers:nil) + check_existence_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -165,7 +166,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, custom_headers = nil) + def check_existence_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -175,6 +176,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +224,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [ResourceGroup] operation results. # - def create_or_update(resource_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -239,8 +241,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -255,7 +257,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -266,7 +268,6 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -337,8 +338,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, custom_headers = nil) - response = delete_async(resource_group_name, custom_headers).value! + def delete(resource_group_name, custom_headers:nil) + response = delete_async(resource_group_name, custom_headers:custom_headers).value! nil end @@ -351,9 +352,9 @@ module Azure::Resources::Mgmt::V2016_02_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, custom_headers = nil) + def delete_async(resource_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -377,8 +378,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [ResourceGroup] operation results. # - def get(resource_group_name, custom_headers = nil) - response = get_async(resource_group_name, custom_headers).value! + def get(resource_group_name, custom_headers:nil) + response = get_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -392,8 +393,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, custom_headers = nil) - get_async(resource_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, custom_headers:nil) + get_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -406,7 +407,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, custom_headers = nil) + def get_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -416,6 +417,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -475,8 +477,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [ResourceGroup] operation results. # - def patch(resource_group_name, parameters, custom_headers = nil) - response = patch_async(resource_group_name, parameters, custom_headers).value! + def patch(resource_group_name, parameters, custom_headers:nil) + response = patch_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -495,8 +497,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def patch_with_http_info(resource_group_name, parameters, custom_headers = nil) - patch_async(resource_group_name, parameters, custom_headers).value! + def patch_with_http_info(resource_group_name, parameters, custom_headers:nil) + patch_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -514,7 +516,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def patch_async(resource_group_name, parameters, custom_headers = nil) + def patch_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -525,7 +527,6 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -590,8 +591,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [ResourceGroupExportResult] operation results. # - def export_template(resource_group_name, parameters, custom_headers = nil) - response = export_template_async(resource_group_name, parameters, custom_headers).value! + def export_template(resource_group_name, parameters, custom_headers:nil) + response = export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -607,8 +608,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_template_with_http_info(resource_group_name, parameters, custom_headers = nil) - export_template_async(resource_group_name, parameters, custom_headers).value! + def export_template_with_http_info(resource_group_name, parameters, custom_headers:nil) + export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -623,7 +624,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_template_async(resource_group_name, parameters, custom_headers = nil) + def export_template_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -634,7 +635,6 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -698,8 +698,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Array] operation results. # - def list(filter = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(filter, top, custom_headers) + def list(filter:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -714,8 +714,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, top = nil, custom_headers = nil) - list_async(filter, top, custom_headers).value! + def list_with_http_info(filter:nil, top:nil, custom_headers:nil) + list_async(filter:filter, top:top, custom_headers:custom_headers).value! end # @@ -729,12 +729,13 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, top = nil, custom_headers = nil) + def list_async(filter:nil, top:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -788,8 +789,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, custom_headers).value! + def begin_delete(resource_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, custom_headers:custom_headers).value! nil end @@ -803,8 +804,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -817,7 +818,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -827,6 +828,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -871,8 +873,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [ResourceListResult] operation results. # - def list_resources_next(next_page_link, custom_headers = nil) - response = list_resources_next_async(next_page_link, custom_headers).value! + def list_resources_next(next_page_link, custom_headers:nil) + response = list_resources_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -886,8 +888,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resources_next_with_http_info(next_page_link, custom_headers = nil) - list_resources_next_async(next_page_link, custom_headers).value! + def list_resources_next_with_http_info(next_page_link, custom_headers:nil) + list_resources_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -900,11 +902,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resources_next_async(next_page_link, custom_headers = nil) + def list_resources_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -958,8 +961,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [ResourceGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -973,8 +976,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -987,11 +990,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1050,12 +1054,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # @return [ResourceListResult] which provide lazy access to pages of the # response. # - def list_resources_as_lazy(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - response = list_resources_async(resource_group_name, filter, expand, top, custom_headers).value! + def list_resources_as_lazy(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + response = list_resources_async(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resources_next_async(next_page_link, custom_headers) + list_resources_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1073,12 +1077,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # @return [ResourceGroupListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(filter = nil, top = nil, custom_headers = nil) - response = list_async(filter, top, custom_headers).value! + def list_as_lazy(filter:nil, top:nil, custom_headers:nil) + response = list_async(filter:filter, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/resources.rb b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/resources.rb index c96fd9d9f..8d2195a44 100644 --- a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/resources.rb +++ b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/resources.rb @@ -30,8 +30,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def move_resources(source_resource_group_name, parameters, custom_headers = nil) - response = move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def move_resources(source_resource_group_name, parameters, custom_headers:nil) + response = move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! nil end @@ -44,9 +44,9 @@ module Azure::Resources::Mgmt::V2016_02_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def move_resources_async(source_resource_group_name, parameters, custom_headers = nil) + def move_resources_async(source_resource_group_name, parameters, custom_headers:nil) # Send request - promise = begin_move_resources_async(source_resource_group_name, parameters, custom_headers) + promise = begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Array] operation results. # - def list(filter = nil, expand = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(filter, expand, top, custom_headers) + def list(filter:nil, expand:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, expand:expand, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -89,8 +89,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, expand = nil, top = nil, custom_headers = nil) - list_async(filter, expand, top, custom_headers).value! + def list_with_http_info(filter:nil, expand:nil, top:nil, custom_headers:nil) + list_async(filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! end # @@ -105,12 +105,13 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, expand = nil, top = nil, custom_headers = nil) + def list_async(filter:nil, expand:nil, top:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -170,8 +171,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def check_existence(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -190,8 +191,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def check_existence_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -209,7 +210,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -223,6 +224,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -273,8 +275,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # will be added to the HTTP request. # # - def delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! nil end @@ -293,8 +295,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def delete_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -312,7 +314,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -326,6 +328,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -377,8 +380,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [GenericResource] operation results. # - def create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers).value! + def create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -398,8 +401,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value! end # @@ -418,7 +421,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -433,7 +436,6 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -512,8 +514,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [GenericResource] operation results. # - def get(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def get(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -532,8 +534,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def get_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -551,7 +553,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -565,6 +567,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -620,8 +623,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # will be added to the HTTP request. # # - def begin_move_resources(source_resource_group_name, parameters, custom_headers = nil) - response = begin_move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def begin_move_resources(source_resource_group_name, parameters, custom_headers:nil) + response = begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! nil end @@ -636,8 +639,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers = nil) - begin_move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def begin_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers:nil) + begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -651,7 +654,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_move_resources_async(source_resource_group_name, parameters, custom_headers = nil) + def begin_move_resources_async(source_resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'source_resource_group_name is nil' if source_resource_group_name.nil? fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !source_resource_group_name.nil? && source_resource_group_name.length > 90 fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !source_resource_group_name.nil? && source_resource_group_name.length < 1 @@ -662,7 +665,6 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -715,8 +717,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [ResourceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -730,8 +732,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -744,11 +746,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -805,12 +808,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # @return [ResourceListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(filter = nil, expand = nil, top = nil, custom_headers = nil) - response = list_async(filter, expand, top, custom_headers).value! + def list_as_lazy(filter:nil, expand:nil, top:nil, custom_headers:nil) + response = list_async(filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/tags.rb b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/tags.rb index 266f0c40e..f73b86f49 100644 --- a/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/tags.rb +++ b/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/tags.rb @@ -30,8 +30,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # will be added to the HTTP request. # # - def delete_value(tag_name, tag_value, custom_headers = nil) - response = delete_value_async(tag_name, tag_value, custom_headers).value! + def delete_value(tag_name, tag_value, custom_headers:nil) + response = delete_value_async(tag_name, tag_value, custom_headers:custom_headers).value! nil end @@ -45,8 +45,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_value_with_http_info(tag_name, tag_value, custom_headers = nil) - delete_value_async(tag_name, tag_value, custom_headers).value! + def delete_value_with_http_info(tag_name, tag_value, custom_headers:nil) + delete_value_async(tag_name, tag_value, custom_headers:custom_headers).value! end # @@ -59,7 +59,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_value_async(tag_name, tag_value, custom_headers = nil) + def delete_value_async(tag_name, tag_value, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, 'tag_value is nil' if tag_value.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -67,6 +67,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -111,8 +112,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [TagValue] operation results. # - def create_or_update_value(tag_name, tag_value, custom_headers = nil) - response = create_or_update_value_async(tag_name, tag_value, custom_headers).value! + def create_or_update_value(tag_name, tag_value, custom_headers:nil) + response = create_or_update_value_async(tag_name, tag_value, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -126,8 +127,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_value_with_http_info(tag_name, tag_value, custom_headers = nil) - create_or_update_value_async(tag_name, tag_value, custom_headers).value! + def create_or_update_value_with_http_info(tag_name, tag_value, custom_headers:nil) + create_or_update_value_async(tag_name, tag_value, custom_headers:custom_headers).value! end # @@ -140,7 +141,7 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_value_async(tag_name, tag_value, custom_headers = nil) + def create_or_update_value_async(tag_name, tag_value, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, 'tag_value is nil' if tag_value.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -148,6 +149,7 @@ module Azure::Resources::Mgmt::V2016_02_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -211,8 +213,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [TagDetails] operation results. # - def create_or_update(tag_name, custom_headers = nil) - response = create_or_update_async(tag_name, custom_headers).value! + def create_or_update(tag_name, custom_headers:nil) + response = create_or_update_async(tag_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -225,8 +227,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(tag_name, custom_headers = nil) - create_or_update_async(tag_name, custom_headers).value! + def create_or_update_with_http_info(tag_name, custom_headers:nil) + create_or_update_async(tag_name, custom_headers:custom_headers).value! end # @@ -238,13 +240,14 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(tag_name, custom_headers = nil) + def create_or_update_async(tag_name, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +310,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # will be added to the HTTP request. # # - def delete(tag_name, custom_headers = nil) - response = delete_async(tag_name, custom_headers).value! + def delete(tag_name, custom_headers:nil) + response = delete_async(tag_name, custom_headers:custom_headers).value! nil end @@ -321,8 +324,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(tag_name, custom_headers = nil) - delete_async(tag_name, custom_headers).value! + def delete_with_http_info(tag_name, custom_headers:nil) + delete_async(tag_name, custom_headers:custom_headers).value! end # @@ -334,13 +337,14 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(tag_name, custom_headers = nil) + def delete_async(tag_name, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -383,8 +387,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -396,8 +400,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -408,12 +412,13 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -468,8 +473,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [TagsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -483,8 +488,8 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -497,11 +502,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -553,12 +559,12 @@ module Azure::Resources::Mgmt::V2016_02_01 # # @return [TagsListResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb index 073718763..78b4265a6 100644 --- a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb +++ b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb @@ -33,8 +33,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [DeploymentOperation] operation results. # - def get(resource_group_name, deployment_name, operation_id, custom_headers = nil) - response = get_async(resource_group_name, deployment_name, operation_id, custom_headers).value! + def get(resource_group_name, deployment_name, operation_id, custom_headers:nil) + response = get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers = nil) - get_async(resource_group_name, deployment_name, operation_id, custom_headers).value! + def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers:nil) + get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, deployment_name, operation_id, custom_headers = nil) + def get_async(resource_group_name, deployment_name, operation_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -78,6 +78,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list(resource_group_name, deployment_name, top = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, deployment_name, top, custom_headers) + def list(resource_group_name, deployment_name, top:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, deployment_name, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -151,8 +152,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, deployment_name, top = nil, custom_headers = nil) - list_async(resource_group_name, deployment_name, top, custom_headers).value! + def list_with_http_info(resource_group_name, deployment_name, top:nil, custom_headers:nil) + list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value! end # @@ -167,7 +168,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, deployment_name, top = nil, custom_headers = nil) + def list_async(resource_group_name, deployment_name, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -178,6 +179,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -232,8 +234,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [DeploymentOperationsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -247,8 +249,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -261,11 +263,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -322,12 +325,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # @return [DeploymentOperationsListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, deployment_name, top = nil, custom_headers = nil) - response = list_async(resource_group_name, deployment_name, top, custom_headers).value! + def list_as_lazy(resource_group_name, deployment_name, top:nil, custom_headers:nil) + response = list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb index edea1ed17..2a89b432d 100644 --- a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb +++ b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb @@ -30,8 +30,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, deployment_name, custom_headers = nil) - response = delete_async(resource_group_name, deployment_name, custom_headers).value! + def delete(resource_group_name, deployment_name, custom_headers:nil) + response = delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -45,9 +45,9 @@ module Azure::Resources::Mgmt::V2016_07_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, deployment_name, custom_headers = nil) + def delete_async(resource_group_name, deployment_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, deployment_name, custom_headers) + promise = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, deployment_name, custom_headers = nil) - response = check_existence_async(resource_group_name, deployment_name, custom_headers).value! + def check_existence(resource_group_name, deployment_name, custom_headers:nil) + response = check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -88,8 +88,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - check_existence_async(resource_group_name, deployment_name, custom_headers).value! + def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -103,7 +103,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, deployment_name, custom_headers = nil) + def check_existence_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -114,6 +114,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -162,8 +163,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [DeploymentExtended] operation results. # - def create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -179,9 +180,9 @@ module Azure::Resources::Mgmt::V2016_07_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -208,8 +209,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [DeploymentExtended] operation results. # - def get(resource_group_name, deployment_name, custom_headers = nil) - response = get_async(resource_group_name, deployment_name, custom_headers).value! + def get(resource_group_name, deployment_name, custom_headers:nil) + response = get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -224,8 +225,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - get_async(resource_group_name, deployment_name, custom_headers).value! + def get_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -239,7 +240,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, deployment_name, custom_headers = nil) + def get_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -250,6 +251,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -304,8 +306,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def cancel(resource_group_name, deployment_name, custom_headers = nil) - response = cancel_async(resource_group_name, deployment_name, custom_headers).value! + def cancel(resource_group_name, deployment_name, custom_headers:nil) + response = cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -320,8 +322,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def cancel_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - cancel_async(resource_group_name, deployment_name, custom_headers).value! + def cancel_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -335,7 +337,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def cancel_async(resource_group_name, deployment_name, custom_headers = nil) + def cancel_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -346,6 +348,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +395,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [DeploymentValidateResult] operation results. # - def validate(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = validate_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def validate(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -409,8 +412,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers = nil) - validate_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil) + validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! end # @@ -425,7 +428,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def validate_async(resource_group_name, deployment_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -437,7 +440,6 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -511,8 +513,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [DeploymentExportResult] operation results. # - def export_template(resource_group_name, deployment_name, custom_headers = nil) - response = export_template_async(resource_group_name, deployment_name, custom_headers).value! + def export_template(resource_group_name, deployment_name, custom_headers:nil) + response = export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -527,8 +529,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_template_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - export_template_async(resource_group_name, deployment_name, custom_headers).value! + def export_template_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -542,7 +544,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_template_async(resource_group_name, deployment_name, custom_headers = nil) + def export_template_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -553,6 +555,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -610,8 +613,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list(resource_group_name, filter = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, filter, top, custom_headers) + def list(resource_group_name, filter:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, filter:filter, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -628,8 +631,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, filter = nil, top = nil, custom_headers = nil) - list_async(resource_group_name, filter, top, custom_headers).value! + def list_with_http_info(resource_group_name, filter:nil, top:nil, custom_headers:nil) + list_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value! end # @@ -645,7 +648,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, filter = nil, top = nil, custom_headers = nil) + def list_async(resource_group_name, filter:nil, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -655,6 +658,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -709,8 +713,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, deployment_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, deployment_name, custom_headers).value! + def begin_delete(resource_group_name, deployment_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -725,8 +729,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - begin_delete_async(resource_group_name, deployment_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -740,7 +744,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, deployment_name, custom_headers = nil) + def begin_delete_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -751,6 +755,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -798,8 +803,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [DeploymentExtended] operation results. # - def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -816,8 +821,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! end # @@ -833,7 +838,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -845,7 +850,6 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -918,8 +922,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [DeploymentListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -933,8 +937,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -947,11 +951,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1009,12 +1014,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # @return [DeploymentListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, filter = nil, top = nil, custom_headers = nil) - response = list_async(resource_group_name, filter, top, custom_headers).value! + def list_as_lazy(resource_group_name, filter:nil, top:nil, custom_headers:nil) + response = list_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/providers.rb b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/providers.rb index 1b9226022..0ca9edbf1 100644 --- a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/providers.rb +++ b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/providers.rb @@ -31,8 +31,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Provider] operation results. # - def unregister(resource_provider_namespace, custom_headers = nil) - response = unregister_async(resource_provider_namespace, custom_headers).value! + def unregister(resource_provider_namespace, custom_headers:nil) + response = unregister_async(resource_provider_namespace, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def unregister_with_http_info(resource_provider_namespace, custom_headers = nil) - unregister_async(resource_provider_namespace, custom_headers).value! + def unregister_with_http_info(resource_provider_namespace, custom_headers:nil) + unregister_async(resource_provider_namespace, custom_headers:custom_headers).value! end # @@ -60,13 +60,14 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def unregister_async(resource_provider_namespace, custom_headers = nil) + def unregister_async(resource_provider_namespace, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -121,8 +122,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Provider] operation results. # - def register(resource_provider_namespace, custom_headers = nil) - response = register_async(resource_provider_namespace, custom_headers).value! + def register(resource_provider_namespace, custom_headers:nil) + response = register_async(resource_provider_namespace, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -136,8 +137,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def register_with_http_info(resource_provider_namespace, custom_headers = nil) - register_async(resource_provider_namespace, custom_headers).value! + def register_with_http_info(resource_provider_namespace, custom_headers:nil) + register_async(resource_provider_namespace, custom_headers:custom_headers).value! end # @@ -150,13 +151,14 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def register_async(resource_provider_namespace, custom_headers = nil) + def register_async(resource_provider_namespace, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -213,8 +215,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list(top = nil, expand = nil, custom_headers = nil) - first_page = list_as_lazy(top, expand, custom_headers) + def list(top:nil, expand:nil, custom_headers:nil) + first_page = list_as_lazy(top:top, expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -230,8 +232,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(top = nil, expand = nil, custom_headers = nil) - list_async(top, expand, custom_headers).value! + def list_with_http_info(top:nil, expand:nil, custom_headers:nil) + list_async(top:top, expand:expand, custom_headers:custom_headers).value! end # @@ -246,12 +248,13 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(top = nil, expand = nil, custom_headers = nil) + def list_async(top:nil, expand:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -308,8 +311,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Provider] operation results. # - def get(resource_provider_namespace, expand = nil, custom_headers = nil) - response = get_async(resource_provider_namespace, expand, custom_headers).value! + def get(resource_provider_namespace, expand:nil, custom_headers:nil) + response = get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -325,8 +328,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_provider_namespace, expand = nil, custom_headers = nil) - get_async(resource_provider_namespace, expand, custom_headers).value! + def get_with_http_info(resource_provider_namespace, expand:nil, custom_headers:nil) + get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value! end # @@ -341,13 +344,14 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_provider_namespace, expand = nil, custom_headers = nil) + def get_async(resource_provider_namespace, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -402,8 +406,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [ProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -417,8 +421,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -431,11 +435,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -492,12 +497,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # @return [ProviderListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(top = nil, expand = nil, custom_headers = nil) - response = list_async(top, expand, custom_headers).value! + def list_as_lazy(top:nil, expand:nil, custom_headers:nil) + response = list_async(top:top, expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/resource_groups.rb b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/resource_groups.rb index 69e5eec52..f352411de 100644 --- a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/resource_groups.rb +++ b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/resource_groups.rb @@ -35,8 +35,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list_resources(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - first_page = list_resources_as_lazy(resource_group_name, filter, expand, top, custom_headers) + def list_resources(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + first_page = list_resources_as_lazy(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -54,8 +54,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resources_with_http_info(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - list_resources_async(resource_group_name, filter, expand, top, custom_headers).value! + def list_resources_with_http_info(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + list_resources_async(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resources_async(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) + def list_resources_async(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -82,6 +82,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -136,8 +137,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, custom_headers = nil) - response = check_existence_async(resource_group_name, custom_headers).value! + def check_existence(resource_group_name, custom_headers:nil) + response = check_existence_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, custom_headers = nil) - check_existence_async(resource_group_name, custom_headers).value! + def check_existence_with_http_info(resource_group_name, custom_headers:nil) + check_existence_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -165,7 +166,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, custom_headers = nil) + def check_existence_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -175,6 +176,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +224,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [ResourceGroup] operation results. # - def create_or_update(resource_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -239,8 +241,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -255,7 +257,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -266,7 +268,6 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -337,8 +338,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, custom_headers = nil) - response = delete_async(resource_group_name, custom_headers).value! + def delete(resource_group_name, custom_headers:nil) + response = delete_async(resource_group_name, custom_headers:custom_headers).value! nil end @@ -351,9 +352,9 @@ module Azure::Resources::Mgmt::V2016_07_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, custom_headers = nil) + def delete_async(resource_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -377,8 +378,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [ResourceGroup] operation results. # - def get(resource_group_name, custom_headers = nil) - response = get_async(resource_group_name, custom_headers).value! + def get(resource_group_name, custom_headers:nil) + response = get_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -392,8 +393,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, custom_headers = nil) - get_async(resource_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, custom_headers:nil) + get_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -406,7 +407,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, custom_headers = nil) + def get_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -416,6 +417,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -475,8 +477,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [ResourceGroup] operation results. # - def patch(resource_group_name, parameters, custom_headers = nil) - response = patch_async(resource_group_name, parameters, custom_headers).value! + def patch(resource_group_name, parameters, custom_headers:nil) + response = patch_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -495,8 +497,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def patch_with_http_info(resource_group_name, parameters, custom_headers = nil) - patch_async(resource_group_name, parameters, custom_headers).value! + def patch_with_http_info(resource_group_name, parameters, custom_headers:nil) + patch_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -514,7 +516,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def patch_async(resource_group_name, parameters, custom_headers = nil) + def patch_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -525,7 +527,6 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -590,8 +591,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [ResourceGroupExportResult] operation results. # - def export_template(resource_group_name, parameters, custom_headers = nil) - response = export_template_async(resource_group_name, parameters, custom_headers).value! + def export_template(resource_group_name, parameters, custom_headers:nil) + response = export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -607,8 +608,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_template_with_http_info(resource_group_name, parameters, custom_headers = nil) - export_template_async(resource_group_name, parameters, custom_headers).value! + def export_template_with_http_info(resource_group_name, parameters, custom_headers:nil) + export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -623,7 +624,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_template_async(resource_group_name, parameters, custom_headers = nil) + def export_template_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -634,7 +635,6 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -698,8 +698,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list(filter = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(filter, top, custom_headers) + def list(filter:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -714,8 +714,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, top = nil, custom_headers = nil) - list_async(filter, top, custom_headers).value! + def list_with_http_info(filter:nil, top:nil, custom_headers:nil) + list_async(filter:filter, top:top, custom_headers:custom_headers).value! end # @@ -729,12 +729,13 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, top = nil, custom_headers = nil) + def list_async(filter:nil, top:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -788,8 +789,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, custom_headers).value! + def begin_delete(resource_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, custom_headers:custom_headers).value! nil end @@ -803,8 +804,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -817,7 +818,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -827,6 +828,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -871,8 +873,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [ResourceListResult] operation results. # - def list_resources_next(next_page_link, custom_headers = nil) - response = list_resources_next_async(next_page_link, custom_headers).value! + def list_resources_next(next_page_link, custom_headers:nil) + response = list_resources_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -886,8 +888,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resources_next_with_http_info(next_page_link, custom_headers = nil) - list_resources_next_async(next_page_link, custom_headers).value! + def list_resources_next_with_http_info(next_page_link, custom_headers:nil) + list_resources_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -900,11 +902,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resources_next_async(next_page_link, custom_headers = nil) + def list_resources_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -958,8 +961,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [ResourceGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -973,8 +976,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -987,11 +990,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1050,12 +1054,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # @return [ResourceListResult] which provide lazy access to pages of the # response. # - def list_resources_as_lazy(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - response = list_resources_async(resource_group_name, filter, expand, top, custom_headers).value! + def list_resources_as_lazy(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + response = list_resources_async(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resources_next_async(next_page_link, custom_headers) + list_resources_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1073,12 +1077,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # @return [ResourceGroupListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(filter = nil, top = nil, custom_headers = nil) - response = list_async(filter, top, custom_headers).value! + def list_as_lazy(filter:nil, top:nil, custom_headers:nil) + response = list_async(filter:filter, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/resources.rb b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/resources.rb index 0cce3f0f7..0196447fa 100644 --- a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/resources.rb +++ b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/resources.rb @@ -30,8 +30,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def move_resources(source_resource_group_name, parameters, custom_headers = nil) - response = move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def move_resources(source_resource_group_name, parameters, custom_headers:nil) + response = move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! nil end @@ -44,9 +44,9 @@ module Azure::Resources::Mgmt::V2016_07_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def move_resources_async(source_resource_group_name, parameters, custom_headers = nil) + def move_resources_async(source_resource_group_name, parameters, custom_headers:nil) # Send request - promise = begin_move_resources_async(source_resource_group_name, parameters, custom_headers) + promise = begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -72,8 +72,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list(filter = nil, expand = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(filter, expand, top, custom_headers) + def list(filter:nil, expand:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, expand:expand, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -89,8 +89,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, expand = nil, top = nil, custom_headers = nil) - list_async(filter, expand, top, custom_headers).value! + def list_with_http_info(filter:nil, expand:nil, top:nil, custom_headers:nil) + list_async(filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! end # @@ -105,12 +105,13 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, expand = nil, top = nil, custom_headers = nil) + def list_async(filter:nil, expand:nil, top:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -170,8 +171,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def check_existence(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -190,8 +191,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def check_existence_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -209,7 +210,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -223,6 +224,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -273,8 +275,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! nil end @@ -293,8 +295,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def delete_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -312,7 +314,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -326,6 +328,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -377,8 +380,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [GenericResource] operation results. # - def create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers).value! + def create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -398,8 +401,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value! end # @@ -418,7 +421,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -433,7 +436,6 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -512,8 +514,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [GenericResource] operation results. # - def get(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def get(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -532,8 +534,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def get_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -551,7 +553,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -565,6 +567,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -620,8 +623,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def begin_move_resources(source_resource_group_name, parameters, custom_headers = nil) - response = begin_move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def begin_move_resources(source_resource_group_name, parameters, custom_headers:nil) + response = begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! nil end @@ -636,8 +639,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers = nil) - begin_move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def begin_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers:nil) + begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -651,7 +654,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_move_resources_async(source_resource_group_name, parameters, custom_headers = nil) + def begin_move_resources_async(source_resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'source_resource_group_name is nil' if source_resource_group_name.nil? fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !source_resource_group_name.nil? && source_resource_group_name.length > 90 fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !source_resource_group_name.nil? && source_resource_group_name.length < 1 @@ -662,7 +665,6 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -715,8 +717,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [ResourceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -730,8 +732,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -744,11 +746,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -805,12 +808,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # @return [ResourceListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(filter = nil, expand = nil, top = nil, custom_headers = nil) - response = list_async(filter, expand, top, custom_headers).value! + def list_as_lazy(filter:nil, expand:nil, top:nil, custom_headers:nil) + response = list_async(filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/tags.rb b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/tags.rb index bda7ca6c2..2a99b1484 100644 --- a/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/tags.rb +++ b/management/azure_mgmt_resources/lib/2016-07-01/generated/azure_mgmt_resources/tags.rb @@ -30,8 +30,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def delete_value(tag_name, tag_value, custom_headers = nil) - response = delete_value_async(tag_name, tag_value, custom_headers).value! + def delete_value(tag_name, tag_value, custom_headers:nil) + response = delete_value_async(tag_name, tag_value, custom_headers:custom_headers).value! nil end @@ -45,8 +45,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_value_with_http_info(tag_name, tag_value, custom_headers = nil) - delete_value_async(tag_name, tag_value, custom_headers).value! + def delete_value_with_http_info(tag_name, tag_value, custom_headers:nil) + delete_value_async(tag_name, tag_value, custom_headers:custom_headers).value! end # @@ -59,7 +59,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_value_async(tag_name, tag_value, custom_headers = nil) + def delete_value_async(tag_name, tag_value, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, 'tag_value is nil' if tag_value.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -67,6 +67,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -111,8 +112,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [TagValue] operation results. # - def create_or_update_value(tag_name, tag_value, custom_headers = nil) - response = create_or_update_value_async(tag_name, tag_value, custom_headers).value! + def create_or_update_value(tag_name, tag_value, custom_headers:nil) + response = create_or_update_value_async(tag_name, tag_value, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -126,8 +127,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_value_with_http_info(tag_name, tag_value, custom_headers = nil) - create_or_update_value_async(tag_name, tag_value, custom_headers).value! + def create_or_update_value_with_http_info(tag_name, tag_value, custom_headers:nil) + create_or_update_value_async(tag_name, tag_value, custom_headers:custom_headers).value! end # @@ -140,7 +141,7 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_value_async(tag_name, tag_value, custom_headers = nil) + def create_or_update_value_async(tag_name, tag_value, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, 'tag_value is nil' if tag_value.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -148,6 +149,7 @@ module Azure::Resources::Mgmt::V2016_07_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -211,8 +213,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [TagDetails] operation results. # - def create_or_update(tag_name, custom_headers = nil) - response = create_or_update_async(tag_name, custom_headers).value! + def create_or_update(tag_name, custom_headers:nil) + response = create_or_update_async(tag_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -225,8 +227,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(tag_name, custom_headers = nil) - create_or_update_async(tag_name, custom_headers).value! + def create_or_update_with_http_info(tag_name, custom_headers:nil) + create_or_update_async(tag_name, custom_headers:custom_headers).value! end # @@ -238,13 +240,14 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(tag_name, custom_headers = nil) + def create_or_update_async(tag_name, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,8 +310,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # will be added to the HTTP request. # # - def delete(tag_name, custom_headers = nil) - response = delete_async(tag_name, custom_headers).value! + def delete(tag_name, custom_headers:nil) + response = delete_async(tag_name, custom_headers:custom_headers).value! nil end @@ -321,8 +324,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(tag_name, custom_headers = nil) - delete_async(tag_name, custom_headers).value! + def delete_with_http_info(tag_name, custom_headers:nil) + delete_async(tag_name, custom_headers:custom_headers).value! end # @@ -334,13 +337,14 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(tag_name, custom_headers = nil) + def delete_async(tag_name, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -383,8 +387,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -396,8 +400,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -408,12 +412,13 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -468,8 +473,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [TagsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -483,8 +488,8 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -497,11 +502,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -553,12 +559,12 @@ module Azure::Resources::Mgmt::V2016_07_01 # # @return [TagsListResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/deployment_operations.rb b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/deployment_operations.rb index 01d58e979..e1153316e 100644 --- a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/deployment_operations.rb +++ b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/deployment_operations.rb @@ -33,8 +33,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [DeploymentOperation] operation results. # - def get(resource_group_name, deployment_name, operation_id, custom_headers = nil) - response = get_async(resource_group_name, deployment_name, operation_id, custom_headers).value! + def get(resource_group_name, deployment_name, operation_id, custom_headers:nil) + response = get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers = nil) - get_async(resource_group_name, deployment_name, operation_id, custom_headers).value! + def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers:nil) + get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, deployment_name, operation_id, custom_headers = nil) + def get_async(resource_group_name, deployment_name, operation_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -81,6 +81,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -138,8 +139,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, deployment_name, top = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, deployment_name, top, custom_headers) + def list(resource_group_name, deployment_name, top:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, deployment_name, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -156,8 +157,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, deployment_name, top = nil, custom_headers = nil) - list_async(resource_group_name, deployment_name, top, custom_headers).value! + def list_with_http_info(resource_group_name, deployment_name, top:nil, custom_headers:nil) + list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value! end # @@ -173,7 +174,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, deployment_name, top = nil, custom_headers = nil) + def list_async(resource_group_name, deployment_name, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -187,6 +188,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +243,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [DeploymentOperationsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -256,8 +258,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -270,11 +272,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -332,12 +335,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [DeploymentOperationsListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, deployment_name, top = nil, custom_headers = nil) - response = list_async(resource_group_name, deployment_name, top, custom_headers).value! + def list_as_lazy(resource_group_name, deployment_name, top:nil, custom_headers:nil) + response = list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb index c592a71ee..c4049755c 100644 --- a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb +++ b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb @@ -41,8 +41,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, deployment_name, custom_headers = nil) - response = delete_async(resource_group_name, deployment_name, custom_headers).value! + def delete(resource_group_name, deployment_name, custom_headers:nil) + response = delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -56,9 +56,9 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, deployment_name, custom_headers = nil) + def delete_async(resource_group_name, deployment_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, deployment_name, custom_headers) + promise = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, deployment_name, custom_headers = nil) - response = check_existence_async(resource_group_name, deployment_name, custom_headers).value! + def check_existence(resource_group_name, deployment_name, custom_headers:nil) + response = check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - check_existence_async(resource_group_name, deployment_name, custom_headers).value! + def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, deployment_name, custom_headers = nil) + def check_existence_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -128,6 +128,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -180,8 +181,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [DeploymentExtended] operation results. # - def create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -198,9 +199,9 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -227,8 +228,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [DeploymentExtended] operation results. # - def get(resource_group_name, deployment_name, custom_headers = nil) - response = get_async(resource_group_name, deployment_name, custom_headers).value! + def get(resource_group_name, deployment_name, custom_headers:nil) + response = get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -243,8 +244,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - get_async(resource_group_name, deployment_name, custom_headers).value! + def get_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -258,7 +259,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, deployment_name, custom_headers = nil) + def get_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -272,6 +273,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -331,8 +333,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def cancel(resource_group_name, deployment_name, custom_headers = nil) - response = cancel_async(resource_group_name, deployment_name, custom_headers).value! + def cancel(resource_group_name, deployment_name, custom_headers:nil) + response = cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -352,8 +354,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def cancel_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - cancel_async(resource_group_name, deployment_name, custom_headers).value! + def cancel_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -372,7 +374,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def cancel_async(resource_group_name, deployment_name, custom_headers = nil) + def cancel_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -386,6 +388,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -433,8 +436,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [DeploymentValidateResult] operation results. # - def validate(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = validate_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def validate(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -451,8 +454,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers = nil) - validate_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil) + validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! end # @@ -468,7 +471,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def validate_async(resource_group_name, deployment_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -483,7 +486,6 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -558,8 +560,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [DeploymentExportResult] operation results. # - def export_template(resource_group_name, deployment_name, custom_headers = nil) - response = export_template_async(resource_group_name, deployment_name, custom_headers).value! + def export_template(resource_group_name, deployment_name, custom_headers:nil) + response = export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -575,8 +577,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_template_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - export_template_async(resource_group_name, deployment_name, custom_headers).value! + def export_template_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -591,7 +593,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_template_async(resource_group_name, deployment_name, custom_headers = nil) + def export_template_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -605,6 +607,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +666,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(resource_group_name, filter = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, filter, top, custom_headers) + def list(resource_group_name, filter:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, filter:filter, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -682,8 +685,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, filter = nil, top = nil, custom_headers = nil) - list_async(resource_group_name, filter, top, custom_headers).value! + def list_with_http_info(resource_group_name, filter:nil, top:nil, custom_headers:nil) + list_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value! end # @@ -700,7 +703,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, filter = nil, top = nil, custom_headers = nil) + def list_async(resource_group_name, filter:nil, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -710,6 +713,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -775,8 +779,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, deployment_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, deployment_name, custom_headers).value! + def begin_delete(resource_group_name, deployment_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -802,8 +806,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - begin_delete_async(resource_group_name, deployment_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -828,7 +832,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, deployment_name, custom_headers = nil) + def begin_delete_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -842,6 +846,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -893,8 +898,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [DeploymentExtended] operation results. # - def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -915,8 +920,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! end # @@ -936,7 +941,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -951,7 +956,6 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1024,8 +1028,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [DeploymentListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1039,8 +1043,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1053,11 +1057,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1116,12 +1121,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [DeploymentListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(resource_group_name, filter = nil, top = nil, custom_headers = nil) - response = list_async(resource_group_name, filter, top, custom_headers).value! + def list_as_lazy(resource_group_name, filter:nil, top:nil, custom_headers:nil) + response = list_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/providers.rb b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/providers.rb index 9785603d9..c5cf60a7b 100644 --- a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/providers.rb +++ b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/providers.rb @@ -31,8 +31,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Provider] operation results. # - def unregister(resource_provider_namespace, custom_headers = nil) - response = unregister_async(resource_provider_namespace, custom_headers).value! + def unregister(resource_provider_namespace, custom_headers:nil) + response = unregister_async(resource_provider_namespace, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def unregister_with_http_info(resource_provider_namespace, custom_headers = nil) - unregister_async(resource_provider_namespace, custom_headers).value! + def unregister_with_http_info(resource_provider_namespace, custom_headers:nil) + unregister_async(resource_provider_namespace, custom_headers:custom_headers).value! end # @@ -60,13 +60,14 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def unregister_async(resource_provider_namespace, custom_headers = nil) + def unregister_async(resource_provider_namespace, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -121,8 +122,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Provider] operation results. # - def register(resource_provider_namespace, custom_headers = nil) - response = register_async(resource_provider_namespace, custom_headers).value! + def register(resource_provider_namespace, custom_headers:nil) + response = register_async(resource_provider_namespace, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -136,8 +137,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def register_with_http_info(resource_provider_namespace, custom_headers = nil) - register_async(resource_provider_namespace, custom_headers).value! + def register_with_http_info(resource_provider_namespace, custom_headers:nil) + register_async(resource_provider_namespace, custom_headers:custom_headers).value! end # @@ -150,13 +151,14 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def register_async(resource_provider_namespace, custom_headers = nil) + def register_async(resource_provider_namespace, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -215,8 +217,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(top = nil, expand = nil, custom_headers = nil) - first_page = list_as_lazy(top, expand, custom_headers) + def list(top:nil, expand:nil, custom_headers:nil) + first_page = list_as_lazy(top:top, expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -234,8 +236,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(top = nil, expand = nil, custom_headers = nil) - list_async(top, expand, custom_headers).value! + def list_with_http_info(top:nil, expand:nil, custom_headers:nil) + list_async(top:top, expand:expand, custom_headers:custom_headers).value! end # @@ -252,12 +254,13 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(top = nil, expand = nil, custom_headers = nil) + def list_async(top:nil, expand:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +317,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Provider] operation results. # - def get(resource_provider_namespace, expand = nil, custom_headers = nil) - response = get_async(resource_provider_namespace, expand, custom_headers).value! + def get(resource_provider_namespace, expand:nil, custom_headers:nil) + response = get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -331,8 +334,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_provider_namespace, expand = nil, custom_headers = nil) - get_async(resource_provider_namespace, expand, custom_headers).value! + def get_with_http_info(resource_provider_namespace, expand:nil, custom_headers:nil) + get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value! end # @@ -347,13 +350,14 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_provider_namespace, expand = nil, custom_headers = nil) + def get_async(resource_provider_namespace, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -408,8 +412,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [ProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -423,8 +427,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -437,11 +441,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,12 +505,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [ProviderListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(top = nil, expand = nil, custom_headers = nil) - response = list_async(top, expand, custom_headers).value! + def list_as_lazy(top:nil, expand:nil, custom_headers:nil) + response = list_async(top:top, expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/resource_groups.rb b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/resource_groups.rb index 5e2a8d448..d07093a24 100644 --- a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/resource_groups.rb +++ b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/resource_groups.rb @@ -35,8 +35,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_resources(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - first_page = list_resources_as_lazy(resource_group_name, filter, expand, top, custom_headers) + def list_resources(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + first_page = list_resources_as_lazy(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -54,8 +54,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resources_with_http_info(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - list_resources_async(resource_group_name, filter, expand, top, custom_headers).value! + def list_resources_with_http_info(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + list_resources_async(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resources_async(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) + def list_resources_async(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -82,6 +82,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -136,8 +137,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, custom_headers = nil) - response = check_existence_async(resource_group_name, custom_headers).value! + def check_existence(resource_group_name, custom_headers:nil) + response = check_existence_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -151,8 +152,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, custom_headers = nil) - check_existence_async(resource_group_name, custom_headers).value! + def check_existence_with_http_info(resource_group_name, custom_headers:nil) + check_existence_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -165,7 +166,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, custom_headers = nil) + def check_existence_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -175,6 +176,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +224,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [ResourceGroup] operation results. # - def create_or_update(resource_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -239,8 +241,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -255,7 +257,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -266,7 +268,6 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -341,8 +342,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, custom_headers = nil) - response = delete_async(resource_group_name, custom_headers).value! + def delete(resource_group_name, custom_headers:nil) + response = delete_async(resource_group_name, custom_headers:custom_headers).value! nil end @@ -355,9 +356,9 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, custom_headers = nil) + def delete_async(resource_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -381,8 +382,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [ResourceGroup] operation results. # - def get(resource_group_name, custom_headers = nil) - response = get_async(resource_group_name, custom_headers).value! + def get(resource_group_name, custom_headers:nil) + response = get_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -396,8 +397,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, custom_headers = nil) - get_async(resource_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, custom_headers:nil) + get_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -410,7 +411,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, custom_headers = nil) + def get_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -420,6 +421,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -480,8 +482,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [ResourceGroup] operation results. # - def patch(resource_group_name, parameters, custom_headers = nil) - response = patch_async(resource_group_name, parameters, custom_headers).value! + def patch(resource_group_name, parameters, custom_headers:nil) + response = patch_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -501,8 +503,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def patch_with_http_info(resource_group_name, parameters, custom_headers = nil) - patch_async(resource_group_name, parameters, custom_headers).value! + def patch_with_http_info(resource_group_name, parameters, custom_headers:nil) + patch_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -521,7 +523,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def patch_async(resource_group_name, parameters, custom_headers = nil) + def patch_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -532,7 +534,6 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -597,8 +598,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [ResourceGroupExportResult] operation results. # - def export_template(resource_group_name, parameters, custom_headers = nil) - response = export_template_async(resource_group_name, parameters, custom_headers).value! + def export_template(resource_group_name, parameters, custom_headers:nil) + response = export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -614,8 +615,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_template_with_http_info(resource_group_name, parameters, custom_headers = nil) - export_template_async(resource_group_name, parameters, custom_headers).value! + def export_template_with_http_info(resource_group_name, parameters, custom_headers:nil) + export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -630,7 +631,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_template_async(resource_group_name, parameters, custom_headers = nil) + def export_template_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -641,7 +642,6 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -705,8 +705,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(filter = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(filter, top, custom_headers) + def list(filter:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -721,8 +721,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, top = nil, custom_headers = nil) - list_async(filter, top, custom_headers).value! + def list_with_http_info(filter:nil, top:nil, custom_headers:nil) + list_async(filter:filter, top:top, custom_headers:custom_headers).value! end # @@ -736,12 +736,13 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, top = nil, custom_headers = nil) + def list_async(filter:nil, top:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -799,8 +800,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, custom_headers).value! + def begin_delete(resource_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, custom_headers:custom_headers).value! nil end @@ -818,8 +819,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -836,7 +837,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -846,6 +847,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -890,8 +892,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [ResourceListResult] operation results. # - def list_resources_next(next_page_link, custom_headers = nil) - response = list_resources_next_async(next_page_link, custom_headers).value! + def list_resources_next(next_page_link, custom_headers:nil) + response = list_resources_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -905,8 +907,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resources_next_with_http_info(next_page_link, custom_headers = nil) - list_resources_next_async(next_page_link, custom_headers).value! + def list_resources_next_with_http_info(next_page_link, custom_headers:nil) + list_resources_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -919,11 +921,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resources_next_async(next_page_link, custom_headers = nil) + def list_resources_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -977,8 +980,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [ResourceGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -992,8 +995,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1006,11 +1009,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1069,12 +1073,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [ResourceListResult] which provide lazy access to pages of the # response. # - def list_resources_as_lazy(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - response = list_resources_async(resource_group_name, filter, expand, top, custom_headers).value! + def list_resources_as_lazy(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + response = list_resources_async(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resources_next_async(next_page_link, custom_headers) + list_resources_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1092,12 +1096,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [ResourceGroupListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(filter = nil, top = nil, custom_headers = nil) - response = list_async(filter, top, custom_headers).value! + def list_as_lazy(filter:nil, top:nil, custom_headers:nil) + response = list_async(filter:filter, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb index 714f86b48..eaf9b3e75 100644 --- a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb +++ b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb @@ -36,8 +36,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def move_resources(source_resource_group_name, parameters, custom_headers = nil) - response = move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def move_resources(source_resource_group_name, parameters, custom_headers:nil) + response = move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! nil end @@ -51,9 +51,9 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def move_resources_async(source_resource_group_name, parameters, custom_headers = nil) + def move_resources_async(source_resource_group_name, parameters, custom_headers:nil) # Send request - promise = begin_move_resources_async(source_resource_group_name, parameters, custom_headers) + promise = begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -79,8 +79,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(filter = nil, expand = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(filter, expand, top, custom_headers) + def list(filter:nil, expand:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, expand:expand, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -96,8 +96,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, expand = nil, top = nil, custom_headers = nil) - list_async(filter, expand, top, custom_headers).value! + def list_with_http_info(filter:nil, expand:nil, top:nil, custom_headers:nil) + list_async(filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! end # @@ -112,12 +112,13 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, expand = nil, top = nil, custom_headers = nil) + def list_async(filter:nil, expand:nil, top:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -179,8 +180,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def check_existence(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -201,8 +202,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def check_existence_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -222,7 +223,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -236,6 +237,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -286,8 +288,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! nil end @@ -306,9 +308,9 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers) + promise = begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -340,8 +342,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [GenericResource] operation results. # - def create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers).value! + def create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -362,9 +364,9 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -396,8 +398,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [GenericResource] operation results. # - def get(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def get(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -417,8 +419,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def get_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -437,7 +439,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -451,6 +453,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -508,8 +511,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Boolean] operation results. # - def check_existence_by_id(resource_id, api_version, custom_headers = nil) - response = check_existence_by_id_async(resource_id, api_version, custom_headers).value! + def check_existence_by_id(resource_id, api_version, custom_headers:nil) + response = check_existence_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -525,8 +528,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_by_id_with_http_info(resource_id, api_version, custom_headers = nil) - check_existence_by_id_async(resource_id, api_version, custom_headers).value! + def check_existence_by_id_with_http_info(resource_id, api_version, custom_headers:nil) + check_existence_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! end # @@ -541,12 +544,13 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_by_id_async(resource_id, api_version, custom_headers = nil) + def check_existence_by_id_async(resource_id, api_version, custom_headers:nil) fail ArgumentError, 'resource_id is nil' if resource_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -592,8 +596,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete_by_id(resource_id, api_version, custom_headers = nil) - response = delete_by_id_async(resource_id, api_version, custom_headers).value! + def delete_by_id(resource_id, api_version, custom_headers:nil) + response = delete_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! nil end @@ -608,9 +612,9 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_by_id_async(resource_id, api_version, custom_headers = nil) + def delete_by_id_async(resource_id, api_version, custom_headers:nil) # Send request - promise = begin_delete_by_id_async(resource_id, api_version, custom_headers) + promise = begin_delete_by_id_async(resource_id, api_version, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -637,8 +641,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [GenericResource] operation results. # - def create_or_update_by_id(resource_id, api_version, parameters, custom_headers = nil) - response = create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers).value! + def create_or_update_by_id(resource_id, api_version, parameters, custom_headers:nil) + response = create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -654,9 +658,9 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers = nil) + def create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers) + promise = begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -684,8 +688,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [GenericResource] operation results. # - def get_by_id(resource_id, api_version, custom_headers = nil) - response = get_by_id_async(resource_id, api_version, custom_headers).value! + def get_by_id(resource_id, api_version, custom_headers:nil) + response = get_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -701,8 +705,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_id_with_http_info(resource_id, api_version, custom_headers = nil) - get_by_id_async(resource_id, api_version, custom_headers).value! + def get_by_id_with_http_info(resource_id, api_version, custom_headers:nil) + get_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! end # @@ -717,12 +721,13 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_id_async(resource_id, api_version, custom_headers = nil) + def get_by_id_async(resource_id, api_version, custom_headers:nil) fail ArgumentError, 'resource_id is nil' if resource_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -783,8 +788,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_move_resources(source_resource_group_name, parameters, custom_headers = nil) - response = begin_move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def begin_move_resources(source_resource_group_name, parameters, custom_headers:nil) + response = begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! nil end @@ -805,8 +810,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers = nil) - begin_move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def begin_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers:nil) + begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -826,7 +831,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_move_resources_async(source_resource_group_name, parameters, custom_headers = nil) + def begin_move_resources_async(source_resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'source_resource_group_name is nil' if source_resource_group_name.nil? fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !source_resource_group_name.nil? && source_resource_group_name.length > 90 fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !source_resource_group_name.nil? && source_resource_group_name.length < 1 @@ -837,7 +842,6 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -895,8 +899,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def begin_delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! nil end @@ -916,8 +920,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -936,7 +940,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -950,6 +954,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1003,8 +1008,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [GenericResource] operation results. # - def begin_create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1026,8 +1031,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value! end # @@ -1048,7 +1053,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1063,7 +1068,6 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1138,8 +1142,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete_by_id(resource_id, api_version, custom_headers = nil) - response = begin_delete_by_id_async(resource_id, api_version, custom_headers).value! + def begin_delete_by_id(resource_id, api_version, custom_headers:nil) + response = begin_delete_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! nil end @@ -1155,8 +1159,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_by_id_with_http_info(resource_id, api_version, custom_headers = nil) - begin_delete_by_id_async(resource_id, api_version, custom_headers).value! + def begin_delete_by_id_with_http_info(resource_id, api_version, custom_headers:nil) + begin_delete_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! end # @@ -1171,12 +1175,13 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_by_id_async(resource_id, api_version, custom_headers = nil) + def begin_delete_by_id_async(resource_id, api_version, custom_headers:nil) fail ArgumentError, 'resource_id is nil' if resource_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1224,8 +1229,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [GenericResource] operation results. # - def begin_create_or_update_by_id(resource_id, api_version, parameters, custom_headers = nil) - response = begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers).value! + def begin_create_or_update_by_id(resource_id, api_version, parameters, custom_headers:nil) + response = begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1242,8 +1247,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_by_id_with_http_info(resource_id, api_version, parameters, custom_headers = nil) - begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers).value! + def begin_create_or_update_by_id_with_http_info(resource_id, api_version, parameters, custom_headers:nil) + begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value! end # @@ -1259,14 +1264,13 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers = nil) + def begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:nil) fail ArgumentError, 'resource_id is nil' if resource_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1339,8 +1343,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [ResourceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1354,8 +1358,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1368,11 +1372,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1429,12 +1434,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # @return [ResourceListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(filter = nil, expand = nil, top = nil, custom_headers = nil) - response = list_async(filter, expand, top, custom_headers).value! + def list_as_lazy(filter:nil, expand:nil, top:nil, custom_headers:nil) + response = list_async(filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/tags.rb b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/tags.rb index 16f09c51b..367b37f82 100644 --- a/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/tags.rb +++ b/management/azure_mgmt_resources/lib/2016-09-01/generated/azure_mgmt_resources/tags.rb @@ -30,8 +30,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def delete_value(tag_name, tag_value, custom_headers = nil) - response = delete_value_async(tag_name, tag_value, custom_headers).value! + def delete_value(tag_name, tag_value, custom_headers:nil) + response = delete_value_async(tag_name, tag_value, custom_headers:custom_headers).value! nil end @@ -45,8 +45,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_value_with_http_info(tag_name, tag_value, custom_headers = nil) - delete_value_async(tag_name, tag_value, custom_headers).value! + def delete_value_with_http_info(tag_name, tag_value, custom_headers:nil) + delete_value_async(tag_name, tag_value, custom_headers:custom_headers).value! end # @@ -59,7 +59,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_value_async(tag_name, tag_value, custom_headers = nil) + def delete_value_async(tag_name, tag_value, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, 'tag_value is nil' if tag_value.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -67,6 +67,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -111,8 +112,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [TagValue] operation results. # - def create_or_update_value(tag_name, tag_value, custom_headers = nil) - response = create_or_update_value_async(tag_name, tag_value, custom_headers).value! + def create_or_update_value(tag_name, tag_value, custom_headers:nil) + response = create_or_update_value_async(tag_name, tag_value, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -126,8 +127,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_value_with_http_info(tag_name, tag_value, custom_headers = nil) - create_or_update_value_async(tag_name, tag_value, custom_headers).value! + def create_or_update_value_with_http_info(tag_name, tag_value, custom_headers:nil) + create_or_update_value_async(tag_name, tag_value, custom_headers:custom_headers).value! end # @@ -140,7 +141,7 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_value_async(tag_name, tag_value, custom_headers = nil) + def create_or_update_value_async(tag_name, tag_value, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, 'tag_value is nil' if tag_value.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -148,6 +149,7 @@ module Azure::Resources::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -215,8 +217,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [TagDetails] operation results. # - def create_or_update(tag_name, custom_headers = nil) - response = create_or_update_async(tag_name, custom_headers).value! + def create_or_update(tag_name, custom_headers:nil) + response = create_or_update_async(tag_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -233,8 +235,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(tag_name, custom_headers = nil) - create_or_update_async(tag_name, custom_headers).value! + def create_or_update_with_http_info(tag_name, custom_headers:nil) + create_or_update_async(tag_name, custom_headers:custom_headers).value! end # @@ -250,13 +252,14 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(tag_name, custom_headers = nil) + def create_or_update_async(tag_name, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -321,8 +324,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def delete(tag_name, custom_headers = nil) - response = delete_async(tag_name, custom_headers).value! + def delete(tag_name, custom_headers:nil) + response = delete_async(tag_name, custom_headers:custom_headers).value! nil end @@ -337,8 +340,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(tag_name, custom_headers = nil) - delete_async(tag_name, custom_headers).value! + def delete_with_http_info(tag_name, custom_headers:nil) + delete_async(tag_name, custom_headers:custom_headers).value! end # @@ -352,13 +355,14 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(tag_name, custom_headers = nil) + def delete_async(tag_name, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -402,8 +406,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -416,8 +420,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -429,12 +433,13 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -490,8 +495,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [TagsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -506,8 +511,8 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -521,11 +526,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -578,12 +584,12 @@ module Azure::Resources::Mgmt::V2016_09_01 # # @return [TagsListResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb index ad857bb42..0fe1e3766 100644 --- a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb +++ b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb @@ -33,8 +33,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [DeploymentOperation] operation results. # - def get(resource_group_name, deployment_name, operation_id, custom_headers = nil) - response = get_async(resource_group_name, deployment_name, operation_id, custom_headers).value! + def get(resource_group_name, deployment_name, operation_id, custom_headers:nil) + response = get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers = nil) - get_async(resource_group_name, deployment_name, operation_id, custom_headers).value! + def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers:nil) + get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, deployment_name, operation_id, custom_headers = nil) + def get_async(resource_group_name, deployment_name, operation_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -81,6 +81,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -138,8 +139,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Array] operation results. # - def list(resource_group_name, deployment_name, top = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, deployment_name, top, custom_headers) + def list(resource_group_name, deployment_name, top:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, deployment_name, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -156,8 +157,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, deployment_name, top = nil, custom_headers = nil) - list_async(resource_group_name, deployment_name, top, custom_headers).value! + def list_with_http_info(resource_group_name, deployment_name, top:nil, custom_headers:nil) + list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value! end # @@ -173,7 +174,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, deployment_name, top = nil, custom_headers = nil) + def list_async(resource_group_name, deployment_name, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -187,6 +188,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +243,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [DeploymentOperationsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -256,8 +258,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -270,11 +272,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -332,12 +335,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [DeploymentOperationsListResult] which provide lazy access to pages # of the response. # - def list_as_lazy(resource_group_name, deployment_name, top = nil, custom_headers = nil) - response = list_async(resource_group_name, deployment_name, top, custom_headers).value! + def list_as_lazy(resource_group_name, deployment_name, top:nil, custom_headers:nil) + response = list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/deployments.rb b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/deployments.rb index 0916c8b00..bff5c2dd5 100644 --- a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/deployments.rb +++ b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/deployments.rb @@ -41,8 +41,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, deployment_name, custom_headers = nil) - response = delete_async(resource_group_name, deployment_name, custom_headers).value! + def delete(resource_group_name, deployment_name, custom_headers:nil) + response = delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -56,9 +56,9 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, deployment_name, custom_headers = nil) + def delete_async(resource_group_name, deployment_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, deployment_name, custom_headers) + promise = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -83,8 +83,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, deployment_name, custom_headers = nil) - response = check_existence_async(resource_group_name, deployment_name, custom_headers).value! + def check_existence(resource_group_name, deployment_name, custom_headers:nil) + response = check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -99,8 +99,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - check_existence_async(resource_group_name, deployment_name, custom_headers).value! + def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -114,7 +114,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, deployment_name, custom_headers = nil) + def check_existence_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -128,6 +128,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -180,8 +181,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [DeploymentExtended] operation results. # - def create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -198,9 +199,9 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -227,8 +228,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [DeploymentExtended] operation results. # - def get(resource_group_name, deployment_name, custom_headers = nil) - response = get_async(resource_group_name, deployment_name, custom_headers).value! + def get(resource_group_name, deployment_name, custom_headers:nil) + response = get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -243,8 +244,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - get_async(resource_group_name, deployment_name, custom_headers).value! + def get_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -258,7 +259,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, deployment_name, custom_headers = nil) + def get_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -272,6 +273,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -331,8 +333,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # will be added to the HTTP request. # # - def cancel(resource_group_name, deployment_name, custom_headers = nil) - response = cancel_async(resource_group_name, deployment_name, custom_headers).value! + def cancel(resource_group_name, deployment_name, custom_headers:nil) + response = cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -352,8 +354,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def cancel_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - cancel_async(resource_group_name, deployment_name, custom_headers).value! + def cancel_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -372,7 +374,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def cancel_async(resource_group_name, deployment_name, custom_headers = nil) + def cancel_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -386,6 +388,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -433,8 +436,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [DeploymentValidateResult] operation results. # - def validate(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = validate_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def validate(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -451,8 +454,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers = nil) - validate_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil) + validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! end # @@ -468,7 +471,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def validate_async(resource_group_name, deployment_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -483,7 +486,6 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -558,8 +560,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [DeploymentExportResult] operation results. # - def export_template(resource_group_name, deployment_name, custom_headers = nil) - response = export_template_async(resource_group_name, deployment_name, custom_headers).value! + def export_template(resource_group_name, deployment_name, custom_headers:nil) + response = export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -575,8 +577,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_template_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - export_template_async(resource_group_name, deployment_name, custom_headers).value! + def export_template_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -591,7 +593,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_template_async(resource_group_name, deployment_name, custom_headers = nil) + def export_template_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -605,6 +607,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -663,8 +666,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, filter = nil, top = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, filter, top, custom_headers) + def list_by_resource_group(resource_group_name, filter:nil, top:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -682,8 +685,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, filter = nil, top = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, filter, top, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value! end # @@ -700,7 +703,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, filter = nil, top = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, filter:nil, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -710,6 +713,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -775,8 +779,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, deployment_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, deployment_name, custom_headers).value! + def begin_delete(resource_group_name, deployment_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! nil end @@ -802,8 +806,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers = nil) - begin_delete_async(resource_group_name, deployment_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers:nil) + begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value! end # @@ -828,7 +832,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, deployment_name, custom_headers = nil) + def begin_delete_async(resource_group_name, deployment_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -842,6 +846,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -893,8 +898,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [DeploymentExtended] operation results. # - def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -915,8 +920,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value! end # @@ -936,7 +941,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -951,7 +956,6 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1024,8 +1028,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [DeploymentListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1039,8 +1043,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1053,11 +1057,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1116,12 +1121,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [DeploymentListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, filter = nil, top = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, filter, top, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/providers.rb b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/providers.rb index 5b114ece8..ad58ae710 100644 --- a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/providers.rb +++ b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/providers.rb @@ -31,8 +31,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Provider] operation results. # - def unregister(resource_provider_namespace, custom_headers = nil) - response = unregister_async(resource_provider_namespace, custom_headers).value! + def unregister(resource_provider_namespace, custom_headers:nil) + response = unregister_async(resource_provider_namespace, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def unregister_with_http_info(resource_provider_namespace, custom_headers = nil) - unregister_async(resource_provider_namespace, custom_headers).value! + def unregister_with_http_info(resource_provider_namespace, custom_headers:nil) + unregister_async(resource_provider_namespace, custom_headers:custom_headers).value! end # @@ -60,13 +60,14 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def unregister_async(resource_provider_namespace, custom_headers = nil) + def unregister_async(resource_provider_namespace, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -121,8 +122,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Provider] operation results. # - def register(resource_provider_namespace, custom_headers = nil) - response = register_async(resource_provider_namespace, custom_headers).value! + def register(resource_provider_namespace, custom_headers:nil) + response = register_async(resource_provider_namespace, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -136,8 +137,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def register_with_http_info(resource_provider_namespace, custom_headers = nil) - register_async(resource_provider_namespace, custom_headers).value! + def register_with_http_info(resource_provider_namespace, custom_headers:nil) + register_async(resource_provider_namespace, custom_headers:custom_headers).value! end # @@ -150,13 +151,14 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def register_async(resource_provider_namespace, custom_headers = nil) + def register_async(resource_provider_namespace, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -215,8 +217,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Array] operation results. # - def list(top = nil, expand = nil, custom_headers = nil) - first_page = list_as_lazy(top, expand, custom_headers) + def list(top:nil, expand:nil, custom_headers:nil) + first_page = list_as_lazy(top:top, expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -234,8 +236,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(top = nil, expand = nil, custom_headers = nil) - list_async(top, expand, custom_headers).value! + def list_with_http_info(top:nil, expand:nil, custom_headers:nil) + list_async(top:top, expand:expand, custom_headers:custom_headers).value! end # @@ -252,12 +254,13 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(top = nil, expand = nil, custom_headers = nil) + def list_async(top:nil, expand:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -314,8 +317,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Provider] operation results. # - def get(resource_provider_namespace, expand = nil, custom_headers = nil) - response = get_async(resource_provider_namespace, expand, custom_headers).value! + def get(resource_provider_namespace, expand:nil, custom_headers:nil) + response = get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -331,8 +334,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_provider_namespace, expand = nil, custom_headers = nil) - get_async(resource_provider_namespace, expand, custom_headers).value! + def get_with_http_info(resource_provider_namespace, expand:nil, custom_headers:nil) + get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value! end # @@ -347,13 +350,14 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_provider_namespace, expand = nil, custom_headers = nil) + def get_async(resource_provider_namespace, expand:nil, custom_headers:nil) fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -408,8 +412,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [ProviderListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -423,8 +427,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -437,11 +441,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,12 +505,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [ProviderListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(top = nil, expand = nil, custom_headers = nil) - response = list_async(top, expand, custom_headers).value! + def list_as_lazy(top:nil, expand:nil, custom_headers:nil) + response = list_async(top:top, expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/resource_groups.rb b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/resource_groups.rb index cfe4384ee..9c7180a66 100644 --- a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/resource_groups.rb +++ b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/resource_groups.rb @@ -31,8 +31,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, custom_headers = nil) - response = check_existence_async(resource_group_name, custom_headers).value! + def check_existence(resource_group_name, custom_headers:nil) + response = check_existence_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, custom_headers = nil) - check_existence_async(resource_group_name, custom_headers).value! + def check_existence_with_http_info(resource_group_name, custom_headers:nil) + check_existence_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, custom_headers = nil) + def check_existence_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -70,6 +70,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -117,8 +118,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [ResourceGroup] operation results. # - def create_or_update(resource_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +135,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -150,7 +151,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -161,7 +162,6 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -236,8 +236,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, custom_headers = nil) - response = delete_async(resource_group_name, custom_headers).value! + def delete(resource_group_name, custom_headers:nil) + response = delete_async(resource_group_name, custom_headers:custom_headers).value! nil end @@ -250,9 +250,9 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, custom_headers = nil) + def delete_async(resource_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -276,8 +276,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [ResourceGroup] operation results. # - def get(resource_group_name, custom_headers = nil) - response = get_async(resource_group_name, custom_headers).value! + def get(resource_group_name, custom_headers:nil) + response = get_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -291,8 +291,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, custom_headers = nil) - get_async(resource_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, custom_headers:nil) + get_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -305,7 +305,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, custom_headers = nil) + def get_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -315,6 +315,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -375,8 +376,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [ResourceGroup] operation results. # - def update(resource_group_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, parameters, custom_headers).value! + def update(resource_group_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -396,8 +397,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, parameters, custom_headers = nil) - update_async(resource_group_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, parameters, custom_headers:nil) + update_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -416,7 +417,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, parameters, custom_headers = nil) + def update_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -427,7 +428,6 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -492,8 +492,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [ResourceGroupExportResult] operation results. # - def export_template(resource_group_name, parameters, custom_headers = nil) - response = export_template_async(resource_group_name, parameters, custom_headers).value! + def export_template(resource_group_name, parameters, custom_headers:nil) + response = export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -509,8 +509,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def export_template_with_http_info(resource_group_name, parameters, custom_headers = nil) - export_template_async(resource_group_name, parameters, custom_headers).value! + def export_template_with_http_info(resource_group_name, parameters, custom_headers:nil) + export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -525,7 +525,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def export_template_async(resource_group_name, parameters, custom_headers = nil) + def export_template_async(resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -536,7 +536,6 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -600,8 +599,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Array] operation results. # - def list(filter = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(filter, top, custom_headers) + def list(filter:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -616,8 +615,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, top = nil, custom_headers = nil) - list_async(filter, top, custom_headers).value! + def list_with_http_info(filter:nil, top:nil, custom_headers:nil) + list_async(filter:filter, top:top, custom_headers:custom_headers).value! end # @@ -631,12 +630,13 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, top = nil, custom_headers = nil) + def list_async(filter:nil, top:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -694,8 +694,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, custom_headers).value! + def begin_delete(resource_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, custom_headers:custom_headers).value! nil end @@ -713,8 +713,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -731,7 +731,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -741,6 +741,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -785,8 +786,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [ResourceGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -800,8 +801,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -814,11 +815,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -874,12 +876,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [ResourceGroupListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(filter = nil, top = nil, custom_headers = nil) - response = list_async(filter, top, custom_headers).value! + def list_as_lazy(filter:nil, top:nil, custom_headers:nil) + response = list_async(filter:filter, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/resources.rb b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/resources.rb index 1368b82ee..f22a36980 100644 --- a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/resources.rb +++ b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/resources.rb @@ -35,8 +35,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, filter, expand, top, custom_headers) + def list_by_resource_group(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -54,8 +54,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, filter, expand, top, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -82,6 +82,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -141,8 +142,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def move_resources(source_resource_group_name, parameters, custom_headers = nil) - response = move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def move_resources(source_resource_group_name, parameters, custom_headers:nil) + response = move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! nil end @@ -156,9 +157,9 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def move_resources_async(source_resource_group_name, parameters, custom_headers = nil) + def move_resources_async(source_resource_group_name, parameters, custom_headers:nil) # Send request - promise = begin_move_resources_async(source_resource_group_name, parameters, custom_headers) + promise = begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -190,8 +191,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def validate_move_resources(source_resource_group_name, parameters, custom_headers = nil) - response = validate_move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def validate_move_resources(source_resource_group_name, parameters, custom_headers:nil) + response = validate_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! nil end @@ -205,9 +206,9 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def validate_move_resources_async(source_resource_group_name, parameters, custom_headers = nil) + def validate_move_resources_async(source_resource_group_name, parameters, custom_headers:nil) # Send request - promise = begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers) + promise = begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -233,8 +234,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Array] operation results. # - def list(filter = nil, expand = nil, top = nil, custom_headers = nil) - first_page = list_as_lazy(filter, expand, top, custom_headers) + def list(filter:nil, expand:nil, top:nil, custom_headers:nil) + first_page = list_as_lazy(filter:filter, expand:expand, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -250,8 +251,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(filter = nil, expand = nil, top = nil, custom_headers = nil) - list_async(filter, expand, top, custom_headers).value! + def list_with_http_info(filter:nil, expand:nil, top:nil, custom_headers:nil) + list_async(filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! end # @@ -266,12 +267,13 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(filter = nil, expand = nil, top = nil, custom_headers = nil) + def list_async(filter:nil, expand:nil, top:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -333,8 +335,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Boolean] operation results. # - def check_existence(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def check_existence(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -355,8 +357,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def check_existence_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -376,7 +378,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def check_existence_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -390,6 +392,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +443,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! nil end @@ -460,9 +463,9 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers) + promise = begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -494,8 +497,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [GenericResource] operation results. # - def create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers).value! + def create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -516,9 +519,9 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -550,8 +553,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [GenericResource] operation results. # - def get(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def get(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -571,8 +574,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def get_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -591,7 +594,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def get_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -605,6 +608,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -662,8 +666,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Boolean] operation results. # - def check_existence_by_id(resource_id, api_version, custom_headers = nil) - response = check_existence_by_id_async(resource_id, api_version, custom_headers).value! + def check_existence_by_id(resource_id, api_version, custom_headers:nil) + response = check_existence_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -679,8 +683,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_existence_by_id_with_http_info(resource_id, api_version, custom_headers = nil) - check_existence_by_id_async(resource_id, api_version, custom_headers).value! + def check_existence_by_id_with_http_info(resource_id, api_version, custom_headers:nil) + check_existence_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! end # @@ -695,12 +699,13 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_existence_by_id_async(resource_id, api_version, custom_headers = nil) + def check_existence_by_id_async(resource_id, api_version, custom_headers:nil) fail ArgumentError, 'resource_id is nil' if resource_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -746,8 +751,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete_by_id(resource_id, api_version, custom_headers = nil) - response = delete_by_id_async(resource_id, api_version, custom_headers).value! + def delete_by_id(resource_id, api_version, custom_headers:nil) + response = delete_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! nil end @@ -762,9 +767,9 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_by_id_async(resource_id, api_version, custom_headers = nil) + def delete_by_id_async(resource_id, api_version, custom_headers:nil) # Send request - promise = begin_delete_by_id_async(resource_id, api_version, custom_headers) + promise = begin_delete_by_id_async(resource_id, api_version, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -791,8 +796,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [GenericResource] operation results. # - def create_or_update_by_id(resource_id, api_version, parameters, custom_headers = nil) - response = create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers).value! + def create_or_update_by_id(resource_id, api_version, parameters, custom_headers:nil) + response = create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -808,9 +813,9 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers = nil) + def create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers) + promise = begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -838,8 +843,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [GenericResource] operation results. # - def get_by_id(resource_id, api_version, custom_headers = nil) - response = get_by_id_async(resource_id, api_version, custom_headers).value! + def get_by_id(resource_id, api_version, custom_headers:nil) + response = get_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -855,8 +860,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_id_with_http_info(resource_id, api_version, custom_headers = nil) - get_by_id_async(resource_id, api_version, custom_headers).value! + def get_by_id_with_http_info(resource_id, api_version, custom_headers:nil) + get_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! end # @@ -871,12 +876,13 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_id_async(resource_id, api_version, custom_headers = nil) + def get_by_id_async(resource_id, api_version, custom_headers:nil) fail ArgumentError, 'resource_id is nil' if resource_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -937,8 +943,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # will be added to the HTTP request. # # - def begin_move_resources(source_resource_group_name, parameters, custom_headers = nil) - response = begin_move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def begin_move_resources(source_resource_group_name, parameters, custom_headers:nil) + response = begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! nil end @@ -959,8 +965,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers = nil) - begin_move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def begin_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers:nil) + begin_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -980,7 +986,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_move_resources_async(source_resource_group_name, parameters, custom_headers = nil) + def begin_move_resources_async(source_resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'source_resource_group_name is nil' if source_resource_group_name.nil? fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !source_resource_group_name.nil? && source_resource_group_name.length > 90 fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !source_resource_group_name.nil? && source_resource_group_name.length < 1 @@ -991,7 +997,6 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1053,8 +1058,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # will be added to the HTTP request. # # - def begin_validate_move_resources(source_resource_group_name, parameters, custom_headers = nil) - response = begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def begin_validate_move_resources(source_resource_group_name, parameters, custom_headers:nil) + response = begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! nil end @@ -1078,8 +1083,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_validate_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers = nil) - begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers).value! + def begin_validate_move_resources_with_http_info(source_resource_group_name, parameters, custom_headers:nil) + begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers:custom_headers).value! end # @@ -1102,7 +1107,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers = nil) + def begin_validate_move_resources_async(source_resource_group_name, parameters, custom_headers:nil) fail ArgumentError, 'source_resource_group_name is nil' if source_resource_group_name.nil? fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !source_resource_group_name.nil? && source_resource_group_name.length > 90 fail ArgumentError, "'source_resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !source_resource_group_name.nil? && source_resource_group_name.length < 1 @@ -1113,7 +1118,6 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1171,8 +1175,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - response = begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def begin_delete(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + response = begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! nil end @@ -1192,8 +1196,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) - begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) + begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:custom_headers).value! end # @@ -1212,7 +1216,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers = nil) + def begin_delete_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1226,6 +1230,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1279,8 +1284,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [GenericResource] operation results. # - def begin_create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1302,8 +1307,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:custom_headers).value! end # @@ -1324,7 +1329,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1339,7 +1344,6 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1414,8 +1418,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # will be added to the HTTP request. # # - def begin_delete_by_id(resource_id, api_version, custom_headers = nil) - response = begin_delete_by_id_async(resource_id, api_version, custom_headers).value! + def begin_delete_by_id(resource_id, api_version, custom_headers:nil) + response = begin_delete_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! nil end @@ -1431,8 +1435,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_by_id_with_http_info(resource_id, api_version, custom_headers = nil) - begin_delete_by_id_async(resource_id, api_version, custom_headers).value! + def begin_delete_by_id_with_http_info(resource_id, api_version, custom_headers:nil) + begin_delete_by_id_async(resource_id, api_version, custom_headers:custom_headers).value! end # @@ -1447,12 +1451,13 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_by_id_async(resource_id, api_version, custom_headers = nil) + def begin_delete_by_id_async(resource_id, api_version, custom_headers:nil) fail ArgumentError, 'resource_id is nil' if resource_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1500,8 +1505,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [GenericResource] operation results. # - def begin_create_or_update_by_id(resource_id, api_version, parameters, custom_headers = nil) - response = begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers).value! + def begin_create_or_update_by_id(resource_id, api_version, parameters, custom_headers:nil) + response = begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1518,8 +1523,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_by_id_with_http_info(resource_id, api_version, parameters, custom_headers = nil) - begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers).value! + def begin_create_or_update_by_id_with_http_info(resource_id, api_version, parameters, custom_headers:nil) + begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:custom_headers).value! end # @@ -1535,14 +1540,13 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers = nil) + def begin_create_or_update_by_id_async(resource_id, api_version, parameters, custom_headers:nil) fail ArgumentError, 'resource_id is nil' if resource_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1615,8 +1619,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [ResourceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1630,8 +1634,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1644,11 +1648,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1702,8 +1707,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [ResourceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1717,8 +1722,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1731,11 +1736,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1794,12 +1800,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [ResourceListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, filter = nil, expand = nil, top = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, filter, expand, top, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1818,12 +1824,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # @return [ResourceListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(filter = nil, expand = nil, top = nil, custom_headers = nil) - response = list_async(filter, expand, top, custom_headers).value! + def list_as_lazy(filter:nil, expand:nil, top:nil, custom_headers:nil) + response = list_async(filter:filter, expand:expand, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/tags.rb b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/tags.rb index 742481c7e..bcc6494f3 100644 --- a/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/tags.rb +++ b/management/azure_mgmt_resources/lib/2017-05-10/generated/azure_mgmt_resources/tags.rb @@ -30,8 +30,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # will be added to the HTTP request. # # - def delete_value(tag_name, tag_value, custom_headers = nil) - response = delete_value_async(tag_name, tag_value, custom_headers).value! + def delete_value(tag_name, tag_value, custom_headers:nil) + response = delete_value_async(tag_name, tag_value, custom_headers:custom_headers).value! nil end @@ -45,8 +45,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_value_with_http_info(tag_name, tag_value, custom_headers = nil) - delete_value_async(tag_name, tag_value, custom_headers).value! + def delete_value_with_http_info(tag_name, tag_value, custom_headers:nil) + delete_value_async(tag_name, tag_value, custom_headers:custom_headers).value! end # @@ -59,7 +59,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_value_async(tag_name, tag_value, custom_headers = nil) + def delete_value_async(tag_name, tag_value, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, 'tag_value is nil' if tag_value.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -67,6 +67,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -111,8 +112,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [TagValue] operation results. # - def create_or_update_value(tag_name, tag_value, custom_headers = nil) - response = create_or_update_value_async(tag_name, tag_value, custom_headers).value! + def create_or_update_value(tag_name, tag_value, custom_headers:nil) + response = create_or_update_value_async(tag_name, tag_value, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -126,8 +127,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_value_with_http_info(tag_name, tag_value, custom_headers = nil) - create_or_update_value_async(tag_name, tag_value, custom_headers).value! + def create_or_update_value_with_http_info(tag_name, tag_value, custom_headers:nil) + create_or_update_value_async(tag_name, tag_value, custom_headers:custom_headers).value! end # @@ -140,7 +141,7 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_value_async(tag_name, tag_value, custom_headers = nil) + def create_or_update_value_async(tag_name, tag_value, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, 'tag_value is nil' if tag_value.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -148,6 +149,7 @@ module Azure::Resources::Mgmt::V2017_05_10 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -215,8 +217,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [TagDetails] operation results. # - def create_or_update(tag_name, custom_headers = nil) - response = create_or_update_async(tag_name, custom_headers).value! + def create_or_update(tag_name, custom_headers:nil) + response = create_or_update_async(tag_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -233,8 +235,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(tag_name, custom_headers = nil) - create_or_update_async(tag_name, custom_headers).value! + def create_or_update_with_http_info(tag_name, custom_headers:nil) + create_or_update_async(tag_name, custom_headers:custom_headers).value! end # @@ -250,13 +252,14 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(tag_name, custom_headers = nil) + def create_or_update_async(tag_name, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -321,8 +324,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # will be added to the HTTP request. # # - def delete(tag_name, custom_headers = nil) - response = delete_async(tag_name, custom_headers).value! + def delete(tag_name, custom_headers:nil) + response = delete_async(tag_name, custom_headers:custom_headers).value! nil end @@ -337,8 +340,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(tag_name, custom_headers = nil) - delete_async(tag_name, custom_headers).value! + def delete_with_http_info(tag_name, custom_headers:nil) + delete_async(tag_name, custom_headers:custom_headers).value! end # @@ -352,13 +355,14 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(tag_name, custom_headers = nil) + def delete_async(tag_name, custom_headers:nil) fail ArgumentError, 'tag_name is nil' if tag_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -402,8 +406,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -416,8 +420,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -429,12 +433,13 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -490,8 +495,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [TagsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -506,8 +511,8 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -521,11 +526,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -578,12 +584,12 @@ module Azure::Resources::Mgmt::V2017_05_10 # # @return [TagsListResult] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources/lib/profiles/latest/modules/resources_profile_module.rb b/management/azure_mgmt_resources/lib/profiles/latest/modules/resources_profile_module.rb index 2c7b1e488..b926f588d 100644 --- a/management/azure_mgmt_resources/lib/profiles/latest/modules/resources_profile_module.rb +++ b/management/azure_mgmt_resources/lib/profiles/latest/modules/resources_profile_module.rb @@ -82,17 +82,17 @@ module Azure::Resources::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Resources::Mgmt::V2017_05_10::ResourceManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Resources::Mgmt::V2017_05_10::ResourceManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @deployments = client_0.deployments - @providers = client_0.providers - @resources = client_0.resources - @resource_groups = client_0.resource_groups - @tags = client_0.tags - @deployment_operations = client_0.deployment_operations + add_telemetry(@client_0) + @deployments = @client_0.deployments + @providers = @client_0.providers + @resources = @client_0.resources + @resource_groups = @client_0.resource_groups + @tags = @client_0.tags + @deployment_operations = @client_0.deployment_operations @model_classes = ModelClasses.new end @@ -102,6 +102,14 @@ module Azure::Resources::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_resources/lib/profiles/v2017_03_09/modules/resources_profile_module.rb b/management/azure_mgmt_resources/lib/profiles/v2017_03_09/modules/resources_profile_module.rb index f34262693..0b8924eb0 100644 --- a/management/azure_mgmt_resources/lib/profiles/v2017_03_09/modules/resources_profile_module.rb +++ b/management/azure_mgmt_resources/lib/profiles/v2017_03_09/modules/resources_profile_module.rb @@ -81,17 +81,17 @@ module Azure::Resources::Profiles::V2017_03_09 @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Resources::Mgmt::V2016_02_01::ResourceManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Resources::Mgmt::V2016_02_01::ResourceManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @deployments = client_0.deployments - @providers = client_0.providers - @resource_groups = client_0.resource_groups - @resources = client_0.resources - @tags = client_0.tags - @deployment_operations = client_0.deployment_operations + add_telemetry(@client_0) + @deployments = @client_0.deployments + @providers = @client_0.providers + @resource_groups = @client_0.resource_groups + @resources = @client_0.resources + @tags = @client_0.tags + @deployment_operations = @client_0.deployment_operations @model_classes = ModelClasses.new end @@ -101,6 +101,14 @@ module Azure::Resources::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_resources/spec/2017-05-10/deployment_operations_spec.rb b/management/azure_mgmt_resources/spec/2017-05-10/deployment_operations_spec.rb index 6a60fe8f1..5af80184c 100644 --- a/management/azure_mgmt_resources/spec/2017-05-10/deployment_operations_spec.rb +++ b/management/azure_mgmt_resources/spec/2017-05-10/deployment_operations_spec.rb @@ -34,7 +34,7 @@ describe 'Deployment Operations' do end it 'should get a list of deployment operation restricted with top parameter' do - result = @client.list_async(@resource_group.name, @deployment.name, 1).value! + result = @client.list_async(@resource_group.name, @deployment.name, top:1).value! expect(result.response.status).to eq(200) expect(result.body).not_to be_nil expect(result.body.value).to be_a(Array) diff --git a/management/azure_mgmt_resources/spec/2017-05-10/deployment_spec.rb b/management/azure_mgmt_resources/spec/2017-05-10/deployment_spec.rb index a759324c5..ec924eee9 100644 --- a/management/azure_mgmt_resources/spec/2017-05-10/deployment_spec.rb +++ b/management/azure_mgmt_resources/spec/2017-05-10/deployment_spec.rb @@ -89,7 +89,7 @@ describe 'Template Deployments' do it 'should list filtered results restricted with top parameter' do filter = "provisioningState eq 'Running'" - result = @client.list_by_resource_group_async(@resource_group.name, filter, 1).value! + result = @client.list_by_resource_group_async(@resource_group.name, filter:filter, top:1).value! expect(result.body.value).not_to be_nil expect(result.body.value).to be_a(Array) diff --git a/management/azure_mgmt_resources/spec/2017-05-10/providers_spec.rb b/management/azure_mgmt_resources/spec/2017-05-10/providers_spec.rb index 2b287d1d4..108702075 100644 --- a/management/azure_mgmt_resources/spec/2017-05-10/providers_spec.rb +++ b/management/azure_mgmt_resources/spec/2017-05-10/providers_spec.rb @@ -45,7 +45,7 @@ describe 'Providers' do end it 'should list providers with top restriction parameter' do - result = @client.list_async(1).value! + result = @client.list_async(top:1).value! expect(result.body.value).not_to be_nil expect(result.body.value).to be_a(Array) diff --git a/management/azure_mgmt_resources/spec/2017-05-10/resource_groups_spec.rb b/management/azure_mgmt_resources/spec/2017-05-10/resource_groups_spec.rb index 374348459..5ca23d7ac 100644 --- a/management/azure_mgmt_resources/spec/2017-05-10/resource_groups_spec.rb +++ b/management/azure_mgmt_resources/spec/2017-05-10/resource_groups_spec.rb @@ -133,7 +133,7 @@ describe 'Resource Groups' do it 'should list resource groups with tag_name and value filter and top parameter' do filter = "tagName eq 'tagName' and tagValue eq 'tagValue'" - result = @client.list_async(filter, 1).value! + result = @client.list_async(filter:filter, top:1).value! expect(result.body.value).not_to be_nil expect(result.body.value).to be_a(Array) @@ -146,7 +146,7 @@ describe 'Resource Groups' do it 'should resource groups with tag_name and value filter and top parameter' do filter = "tagName eq 'tagName' and tagValue eq 'tagValue'" - result = @client.list_async(filter, 1).value! + result = @client.list_async(filter:filter, top:1).value! expect(result.body.value).not_to be_nil expect(result.body.value).to be_a(Array) diff --git a/management/azure_mgmt_resources/spec/2017-05-10/resources_spec.rb b/management/azure_mgmt_resources/spec/2017-05-10/resources_spec.rb index 2cd2c1de3..95ff04520 100644 --- a/management/azure_mgmt_resources/spec/2017-05-10/resources_spec.rb +++ b/management/azure_mgmt_resources/spec/2017-05-10/resources_spec.rb @@ -142,7 +142,7 @@ describe 'Resources' do it 'should list list resources in resource group with tag_name and value filter and top parameter' do filter = "tagName eq 'tagName' and tagValue eq 'tagValue'" - result = @client.list_by_resource_group_async(@resource_group.name, filter, 1).value! + result = @client.list_by_resource_group_async(@resource_group.name, filter:filter, top:1).value! expect(result.body.value).not_to be_nil expect(result.body.value).to be_a(Array) @@ -156,7 +156,7 @@ describe 'Resources' do it 'should filter resources and work with top parameter' do filter = "tagName eq 'tagName' and tagValue eq 'tagValue'" - result = @client.list_async(filter, 1).value! + result = @client.list_async(filter:filter, top:1).value! expect(result.body.value).not_to be_nil expect(result.body.value).to be_a(Array) diff --git a/management/azure_mgmt_resources_management/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups.rb b/management/azure_mgmt_resources_management/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups.rb index e674c8a35..a188962c0 100644 --- a/management/azure_mgmt_resources_management/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups.rb +++ b/management/azure_mgmt_resources_management/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/management_groups.rb @@ -40,8 +40,8 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [Array] operation results. # - def list(skiptoken = nil, custom_headers = nil) - first_page = list_as_lazy(skiptoken, custom_headers) + def list(skiptoken:nil, custom_headers:nil) + first_page = list_as_lazy(skiptoken:skiptoken, custom_headers:custom_headers) first_page.get_all_items end @@ -60,8 +60,8 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(skiptoken = nil, custom_headers = nil) - list_async(skiptoken, custom_headers).value! + def list_with_http_info(skiptoken:nil, custom_headers:nil) + list_async(skiptoken:skiptoken, custom_headers:custom_headers).value! end # @@ -79,11 +79,12 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(skiptoken = nil, custom_headers = nil) + def list_async(skiptoken:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -141,8 +142,8 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [ManagementGroupWithHierarchy] operation results. # - def get(expand = nil, recurse = nil, custom_headers = nil) - response = get_async(expand, recurse, custom_headers).value! + def get(expand:nil, recurse:nil, custom_headers:nil) + response = get_async(expand:expand, recurse:recurse, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -160,8 +161,8 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(expand = nil, recurse = nil, custom_headers = nil) - get_async(expand, recurse, custom_headers).value! + def get_with_http_info(expand:nil, recurse:nil, custom_headers:nil) + get_async(expand:expand, recurse:recurse, custom_headers:custom_headers).value! end # @@ -178,12 +179,13 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(expand = nil, recurse = nil, custom_headers = nil) + def get_async(expand:nil, recurse:nil, custom_headers:nil) fail ArgumentError, '@client.group_id is nil' if @client.group_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -239,8 +241,8 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [ManagementGroupListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -255,8 +257,8 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -270,11 +272,12 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -334,12 +337,12 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # @return [ManagementGroupListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(skiptoken = nil, custom_headers = nil) - response = list_async(skiptoken, custom_headers).value! + def list_as_lazy(skiptoken:nil, custom_headers:nil) + response = list_async(skiptoken:skiptoken, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources_management/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/operations.rb b/management/azure_mgmt_resources_management/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/operations.rb index a43598286..431fccc83 100644 --- a/management/azure_mgmt_resources_management/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/operations.rb +++ b/management/azure_mgmt_resources_management/lib/2017-08-31-preview/generated/azure_mgmt_resources_management/operations.rb @@ -33,8 +33,8 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -58,11 +58,12 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -116,8 +117,8 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -131,8 +132,8 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -145,11 +146,12 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -202,12 +204,12 @@ module Azure::ResourcesManagement::Mgmt::V2017_08_31_preview # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_resources_management/lib/profiles/latest/modules/resourcesmanagement_profile_module.rb b/management/azure_mgmt_resources_management/lib/profiles/latest/modules/resourcesmanagement_profile_module.rb index 5c205d71b..e12b928bf 100644 --- a/management/azure_mgmt_resources_management/lib/profiles/latest/modules/resourcesmanagement_profile_module.rb +++ b/management/azure_mgmt_resources_management/lib/profiles/latest/modules/resourcesmanagement_profile_module.rb @@ -45,13 +45,13 @@ module Azure::ResourcesManagement::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::ManagementGroupsAPI.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ResourcesManagement::Mgmt::V2017_08_31_preview::ManagementGroupsAPI.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @management_groups = client_0.management_groups - @operations = client_0.operations + add_telemetry(@client_0) + @management_groups = @client_0.management_groups + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -61,6 +61,14 @@ module Azure::ResourcesManagement::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/job_collections.rb b/management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/job_collections.rb index 0de19f891..797906296 100644 --- a/management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/job_collections.rb +++ b/management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/job_collections.rb @@ -29,8 +29,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_by_subscription(custom_headers = nil) - first_page = list_by_subscription_as_lazy(custom_headers) + def list_by_subscription(custom_headers:nil) + first_page = list_by_subscription_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -113,8 +114,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -127,8 +128,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -140,13 +141,14 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -201,8 +203,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [JobCollectionDefinition] operation results. # - def get(resource_group_name, job_collection_name, custom_headers = nil) - response = get_async(resource_group_name, job_collection_name, custom_headers).value! + def get(resource_group_name, job_collection_name, custom_headers:nil) + response = get_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -216,8 +218,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, job_collection_name, custom_headers = nil) - get_async(resource_group_name, job_collection_name, custom_headers).value! + def get_with_http_info(resource_group_name, job_collection_name, custom_headers:nil) + get_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! end # @@ -230,7 +232,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, job_collection_name, custom_headers = nil) + def get_async(resource_group_name, job_collection_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -238,6 +240,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -294,8 +297,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [JobCollectionDefinition] operation results. # - def create_or_update(resource_group_name, job_collection_name, job_collection, custom_headers = nil) - response = create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers).value! + def create_or_update(resource_group_name, job_collection_name, job_collection, custom_headers:nil) + response = create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -311,8 +314,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers = nil) - create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers:nil) + create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value! end # @@ -327,7 +330,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers = nil) + def create_or_update_async(resource_group_name, job_collection_name, job_collection, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -336,7 +339,6 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -411,8 +413,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [JobCollectionDefinition] operation results. # - def patch(resource_group_name, job_collection_name, job_collection, custom_headers = nil) - response = patch_async(resource_group_name, job_collection_name, job_collection, custom_headers).value! + def patch(resource_group_name, job_collection_name, job_collection, custom_headers:nil) + response = patch_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -428,8 +430,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def patch_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers = nil) - patch_async(resource_group_name, job_collection_name, job_collection, custom_headers).value! + def patch_with_http_info(resource_group_name, job_collection_name, job_collection, custom_headers:nil) + patch_async(resource_group_name, job_collection_name, job_collection, custom_headers:custom_headers).value! end # @@ -444,7 +446,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def patch_async(resource_group_name, job_collection_name, job_collection, custom_headers = nil) + def patch_async(resource_group_name, job_collection_name, job_collection, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -453,7 +455,6 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -514,8 +515,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, job_collection_name, custom_headers = nil) - response = delete_async(resource_group_name, job_collection_name, custom_headers).value! + def delete(resource_group_name, job_collection_name, custom_headers:nil) + response = delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! nil end @@ -528,9 +529,9 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, job_collection_name, custom_headers = nil) + def delete_async(resource_group_name, job_collection_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, job_collection_name, custom_headers) + promise = begin_delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -552,8 +553,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def enable(resource_group_name, job_collection_name, custom_headers = nil) - response = enable_async(resource_group_name, job_collection_name, custom_headers).value! + def enable(resource_group_name, job_collection_name, custom_headers:nil) + response = enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! nil end @@ -566,9 +567,9 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def enable_async(resource_group_name, job_collection_name, custom_headers = nil) + def enable_async(resource_group_name, job_collection_name, custom_headers:nil) # Send request - promise = begin_enable_async(resource_group_name, job_collection_name, custom_headers) + promise = begin_enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -590,8 +591,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def disable(resource_group_name, job_collection_name, custom_headers = nil) - response = disable_async(resource_group_name, job_collection_name, custom_headers).value! + def disable(resource_group_name, job_collection_name, custom_headers:nil) + response = disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! nil end @@ -604,9 +605,9 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def disable_async(resource_group_name, job_collection_name, custom_headers = nil) + def disable_async(resource_group_name, job_collection_name, custom_headers:nil) # Send request - promise = begin_disable_async(resource_group_name, job_collection_name, custom_headers) + promise = begin_disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -629,8 +630,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, job_collection_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, job_collection_name, custom_headers).value! + def begin_delete(resource_group_name, job_collection_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! nil end @@ -644,8 +645,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, job_collection_name, custom_headers = nil) - begin_delete_async(resource_group_name, job_collection_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, job_collection_name, custom_headers:nil) + begin_delete_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! end # @@ -658,7 +659,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, job_collection_name, custom_headers = nil) + def begin_delete_async(resource_group_name, job_collection_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -666,6 +667,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -709,8 +711,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def begin_enable(resource_group_name, job_collection_name, custom_headers = nil) - response = begin_enable_async(resource_group_name, job_collection_name, custom_headers).value! + def begin_enable(resource_group_name, job_collection_name, custom_headers:nil) + response = begin_enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! nil end @@ -724,8 +726,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_enable_with_http_info(resource_group_name, job_collection_name, custom_headers = nil) - begin_enable_async(resource_group_name, job_collection_name, custom_headers).value! + def begin_enable_with_http_info(resource_group_name, job_collection_name, custom_headers:nil) + begin_enable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! end # @@ -738,7 +740,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_enable_async(resource_group_name, job_collection_name, custom_headers = nil) + def begin_enable_async(resource_group_name, job_collection_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -746,6 +748,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -789,8 +792,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def begin_disable(resource_group_name, job_collection_name, custom_headers = nil) - response = begin_disable_async(resource_group_name, job_collection_name, custom_headers).value! + def begin_disable(resource_group_name, job_collection_name, custom_headers:nil) + response = begin_disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! nil end @@ -804,8 +807,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_disable_with_http_info(resource_group_name, job_collection_name, custom_headers = nil) - begin_disable_async(resource_group_name, job_collection_name, custom_headers).value! + def begin_disable_with_http_info(resource_group_name, job_collection_name, custom_headers:nil) + begin_disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! end # @@ -818,7 +821,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_disable_async(resource_group_name, job_collection_name, custom_headers = nil) + def begin_disable_async(resource_group_name, job_collection_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -826,6 +829,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -870,8 +874,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [JobCollectionListResult] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -885,8 +889,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -899,11 +903,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -957,8 +962,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [JobCollectionListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -972,8 +977,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -986,11 +991,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1043,12 +1049,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # @return [JobCollectionListResult] which provide lazy access to pages of the # response. # - def list_by_subscription_as_lazy(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription_as_lazy(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1064,12 +1070,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # @return [JobCollectionListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/jobs.rb b/management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/jobs.rb index 32787ee9f..c8c06eb96 100644 --- a/management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/jobs.rb +++ b/management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/jobs.rb @@ -32,8 +32,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [JobDefinition] operation results. # - def get(resource_group_name, job_collection_name, job_name, custom_headers = nil) - response = get_async(resource_group_name, job_collection_name, job_name, custom_headers).value! + def get(resource_group_name, job_collection_name, job_name, custom_headers:nil) + response = get_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers = nil) - get_async(resource_group_name, job_collection_name, job_name, custom_headers).value! + def get_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers:nil) + get_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, job_collection_name, job_name, custom_headers = nil) + def get_async(resource_group_name, job_collection_name, job_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -72,6 +72,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -128,8 +129,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [JobDefinition] operation results. # - def create_or_update(resource_group_name, job_collection_name, job_name, job, custom_headers = nil) - response = create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers).value! + def create_or_update(resource_group_name, job_collection_name, job_name, job, custom_headers:nil) + response = create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -145,8 +146,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, job_collection_name, job_name, job, custom_headers = nil) - create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, job_collection_name, job_name, job, custom_headers:nil) + create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers:custom_headers).value! end # @@ -161,7 +162,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers = nil) + def create_or_update_async(resource_group_name, job_collection_name, job_name, job, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -171,7 +172,6 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -246,8 +246,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [JobDefinition] operation results. # - def patch(resource_group_name, job_collection_name, job_name, job, custom_headers = nil) - response = patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers).value! + def patch(resource_group_name, job_collection_name, job_name, job, custom_headers:nil) + response = patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -263,8 +263,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def patch_with_http_info(resource_group_name, job_collection_name, job_name, job, custom_headers = nil) - patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers).value! + def patch_with_http_info(resource_group_name, job_collection_name, job_name, job, custom_headers:nil) + patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers:custom_headers).value! end # @@ -279,7 +279,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers = nil) + def patch_async(resource_group_name, job_collection_name, job_name, job, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -289,7 +289,6 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -352,8 +351,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def delete(resource_group_name, job_collection_name, job_name, custom_headers = nil) - response = delete_async(resource_group_name, job_collection_name, job_name, custom_headers).value! + def delete(resource_group_name, job_collection_name, job_name, custom_headers:nil) + response = delete_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value! nil end @@ -368,8 +367,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers = nil) - delete_async(resource_group_name, job_collection_name, job_name, custom_headers).value! + def delete_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers:nil) + delete_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value! end # @@ -383,7 +382,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, job_collection_name, job_name, custom_headers = nil) + def delete_async(resource_group_name, job_collection_name, job_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -392,6 +391,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -436,8 +436,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def run(resource_group_name, job_collection_name, job_name, custom_headers = nil) - response = run_async(resource_group_name, job_collection_name, job_name, custom_headers).value! + def run(resource_group_name, job_collection_name, job_name, custom_headers:nil) + response = run_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value! nil end @@ -452,8 +452,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def run_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers = nil) - run_async(resource_group_name, job_collection_name, job_name, custom_headers).value! + def run_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers:nil) + run_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value! end # @@ -467,7 +467,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def run_async(resource_group_name, job_collection_name, job_name, custom_headers = nil) + def run_async(resource_group_name, job_collection_name, job_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -476,6 +476,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -525,8 +526,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, job_collection_name, top, skip, filter, custom_headers) + def list(resource_group_name, job_collection_name, top:nil, skip:nil, filter:nil, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, job_collection_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -545,8 +546,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil) - list_async(resource_group_name, job_collection_name, top, skip, filter, custom_headers).value! + def list_with_http_info(resource_group_name, job_collection_name, top:nil, skip:nil, filter:nil, custom_headers:nil) + list_async(resource_group_name, job_collection_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers).value! end # @@ -564,7 +565,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil) + def list_async(resource_group_name, job_collection_name, top:nil, skip:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -574,6 +575,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -634,8 +636,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_job_history(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil) - first_page = list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top, skip, filter, custom_headers) + def list_job_history(resource_group_name, job_collection_name, job_name, top:nil, skip:nil, filter:nil, custom_headers:nil) + first_page = list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -655,8 +657,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_job_history_with_http_info(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil) - list_job_history_async(resource_group_name, job_collection_name, job_name, top, skip, filter, custom_headers).value! + def list_job_history_with_http_info(resource_group_name, job_collection_name, job_name, top:nil, skip:nil, filter:nil, custom_headers:nil) + list_job_history_async(resource_group_name, job_collection_name, job_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers).value! end # @@ -675,7 +677,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_job_history_async(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil) + def list_job_history_async(resource_group_name, job_collection_name, job_name, top:nil, skip:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil? @@ -686,6 +688,7 @@ module Azure::Scheduler::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -740,8 +743,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [JobListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -755,8 +758,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -769,11 +772,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -827,8 +831,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [JobHistoryListResult] operation results. # - def list_job_history_next(next_page_link, custom_headers = nil) - response = list_job_history_next_async(next_page_link, custom_headers).value! + def list_job_history_next(next_page_link, custom_headers:nil) + response = list_job_history_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -842,8 +846,8 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_job_history_next_with_http_info(next_page_link, custom_headers = nil) - list_job_history_next_async(next_page_link, custom_headers).value! + def list_job_history_next_with_http_info(next_page_link, custom_headers:nil) + list_job_history_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -856,11 +860,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_job_history_next_async(next_page_link, custom_headers = nil) + def list_job_history_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -919,12 +924,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # # @return [JobListResult] which provide lazy access to pages of the response. # - def list_as_lazy(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil) - response = list_async(resource_group_name, job_collection_name, top, skip, filter, custom_headers).value! + def list_as_lazy(resource_group_name, job_collection_name, top:nil, skip:nil, filter:nil, custom_headers:nil) + response = list_async(resource_group_name, job_collection_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -947,12 +952,12 @@ module Azure::Scheduler::Mgmt::V2016_03_01 # @return [JobHistoryListResult] which provide lazy access to pages of the # response. # - def list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil) - response = list_job_history_async(resource_group_name, job_collection_name, job_name, top, skip, filter, custom_headers).value! + def list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top:nil, skip:nil, filter:nil, custom_headers:nil) + response = list_job_history_async(resource_group_name, job_collection_name, job_name, top:top, skip:skip, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_job_history_next_async(next_page_link, custom_headers) + list_job_history_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_scheduler/lib/profiles/latest/modules/scheduler_profile_module.rb b/management/azure_mgmt_scheduler/lib/profiles/latest/modules/scheduler_profile_module.rb index 1080b3ac1..897206504 100644 --- a/management/azure_mgmt_scheduler/lib/profiles/latest/modules/scheduler_profile_module.rb +++ b/management/azure_mgmt_scheduler/lib/profiles/latest/modules/scheduler_profile_module.rb @@ -76,13 +76,13 @@ module Azure::Scheduler::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Scheduler::Mgmt::V2016_03_01::SchedulerManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Scheduler::Mgmt::V2016_03_01::SchedulerManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @job_collections = client_0.job_collections - @jobs = client_0.jobs + add_telemetry(@client_0) + @job_collections = @client_0.job_collections + @jobs = @client_0.jobs @model_classes = ModelClasses.new end @@ -92,6 +92,14 @@ module Azure::Scheduler::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/admin_keys.rb b/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/admin_keys.rb index 541d34714..9c4a243e5 100644 --- a/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/admin_keys.rb +++ b/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/admin_keys.rb @@ -37,8 +37,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [AdminKeyResult] operation results. # - def get(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) - response = get_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value! + def get(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) + response = get_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -58,8 +58,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) - get_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value! + def get_with_http_info(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) + get_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) + def get_async(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'search_service_name is nil' if search_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -90,6 +90,7 @@ module Azure::Search::Mgmt::V2015_08_19 end request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -154,8 +155,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [AdminKeyResult] operation results. # - def regenerate(resource_group_name, search_service_name, key_kind, search_management_request_options = nil, custom_headers = nil) - response = regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options, custom_headers).value! + def regenerate(resource_group_name, search_service_name, key_kind, search_management_request_options:nil, custom_headers:nil) + response = regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -178,8 +179,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_with_http_info(resource_group_name, search_service_name, key_kind, search_management_request_options = nil, custom_headers = nil) - regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options, custom_headers).value! + def regenerate_with_http_info(resource_group_name, search_service_name, key_kind, search_management_request_options:nil, custom_headers:nil) + regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! end # @@ -201,7 +202,7 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options = nil, custom_headers = nil) + def regenerate_async(resource_group_name, search_service_name, key_kind, search_management_request_options:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'search_service_name is nil' if search_service_name.nil? fail ArgumentError, 'key_kind is nil' if key_kind.nil? @@ -214,6 +215,7 @@ module Azure::Search::Mgmt::V2015_08_19 end request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/query_keys.rb b/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/query_keys.rb index 908afd4bc..697e52778 100644 --- a/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/query_keys.rb +++ b/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/query_keys.rb @@ -38,8 +38,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [QueryKey] operation results. # - def create(resource_group_name, search_service_name, name, search_management_request_options = nil, custom_headers = nil) - response = create_async(resource_group_name, search_service_name, name, search_management_request_options, custom_headers).value! + def create(resource_group_name, search_service_name, name, search_management_request_options:nil, custom_headers:nil) + response = create_async(resource_group_name, search_service_name, name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, search_service_name, name, search_management_request_options = nil, custom_headers = nil) - create_async(resource_group_name, search_service_name, name, search_management_request_options, custom_headers).value! + def create_with_http_info(resource_group_name, search_service_name, name, search_management_request_options:nil, custom_headers:nil) + create_async(resource_group_name, search_service_name, name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, search_service_name, name, search_management_request_options = nil, custom_headers = nil) + def create_async(resource_group_name, search_service_name, name, search_management_request_options:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'search_service_name is nil' if search_service_name.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -94,6 +94,7 @@ module Azure::Search::Mgmt::V2015_08_19 end request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -154,8 +155,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [ListQueryKeysResult] operation results. # - def list_by_search_service(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) - response = list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value! + def list_by_search_service(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) + response = list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -174,8 +175,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_search_service_with_http_info(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) - list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value! + def list_by_search_service_with_http_info(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) + list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! end # @@ -193,7 +194,7 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) + def list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'search_service_name is nil' if search_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -205,6 +206,7 @@ module Azure::Search::Mgmt::V2015_08_19 end request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -268,8 +270,8 @@ module Azure::Search::Mgmt::V2015_08_19 # will be added to the HTTP request. # # - def delete(resource_group_name, search_service_name, key, search_management_request_options = nil, custom_headers = nil) - response = delete_async(resource_group_name, search_service_name, key, search_management_request_options, custom_headers).value! + def delete(resource_group_name, search_service_name, key, search_management_request_options:nil, custom_headers:nil) + response = delete_async(resource_group_name, search_service_name, key, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! nil end @@ -292,8 +294,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, search_service_name, key, search_management_request_options = nil, custom_headers = nil) - delete_async(resource_group_name, search_service_name, key, search_management_request_options, custom_headers).value! + def delete_with_http_info(resource_group_name, search_service_name, key, search_management_request_options:nil, custom_headers:nil) + delete_async(resource_group_name, search_service_name, key, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! end # @@ -315,7 +317,7 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, search_service_name, key, search_management_request_options = nil, custom_headers = nil) + def delete_async(resource_group_name, search_service_name, key, search_management_request_options:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'search_service_name is nil' if search_service_name.nil? fail ArgumentError, 'key is nil' if key.nil? @@ -328,6 +330,7 @@ module Azure::Search::Mgmt::V2015_08_19 end request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/services.rb b/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/services.rb index 0fb37ce1c..ecfb11a7a 100644 --- a/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/services.rb +++ b/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/services.rb @@ -45,8 +45,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [SearchService] operation results. # - def create_or_update(resource_group_name, search_service_name, service, search_management_request_options = nil, custom_headers = nil) - response = create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options, custom_headers).value! + def create_or_update(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil) + response = create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -71,9 +71,9 @@ module Azure::Search::Mgmt::V2015_08_19 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options = nil, custom_headers = nil) + def create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options, custom_headers) + promise = begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -104,8 +104,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [SearchService] operation results. # - def get(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) - response = get_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value! + def get(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) + response = get_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -124,8 +124,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) - get_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value! + def get_with_http_info(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) + get_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! end # @@ -143,7 +143,7 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) + def get_async(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'search_service_name is nil' if search_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -155,6 +155,7 @@ module Azure::Search::Mgmt::V2015_08_19 end request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -215,8 +216,8 @@ module Azure::Search::Mgmt::V2015_08_19 # will be added to the HTTP request. # # - def delete(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) - response = delete_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value! + def delete(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) + response = delete_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! nil end @@ -236,8 +237,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) - delete_async(resource_group_name, search_service_name, search_management_request_options, custom_headers).value! + def delete_with_http_info(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) + delete_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! end # @@ -256,7 +257,7 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, search_service_name, search_management_request_options = nil, custom_headers = nil) + def delete_async(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'search_service_name is nil' if search_service_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -268,6 +269,7 @@ module Azure::Search::Mgmt::V2015_08_19 end request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -316,8 +318,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [SearchServiceListResult] operation results. # - def list_by_resource_group(resource_group_name, search_management_request_options = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, search_management_request_options, custom_headers).value! + def list_by_resource_group(resource_group_name, search_management_request_options:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -334,8 +336,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, search_management_request_options = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, search_management_request_options, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, search_management_request_options:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! end # @@ -351,7 +353,7 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, search_management_request_options = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, search_management_request_options:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -362,6 +364,7 @@ module Azure::Search::Mgmt::V2015_08_19 end request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -423,8 +426,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [CheckNameAvailabilityOutput] operation results. # - def check_name_availability(name, search_management_request_options = nil, custom_headers = nil) - response = check_name_availability_async(name, search_management_request_options, custom_headers).value! + def check_name_availability(name, search_management_request_options:nil, custom_headers:nil) + response = check_name_availability_async(name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -444,8 +447,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(name, search_management_request_options = nil, custom_headers = nil) - check_name_availability_async(name, search_management_request_options, custom_headers).value! + def check_name_availability_with_http_info(name, search_management_request_options:nil, custom_headers:nil) + check_name_availability_async(name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! end # @@ -464,7 +467,7 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(name, search_management_request_options = nil, custom_headers = nil) + def check_name_availability_async(name, search_management_request_options:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -479,7 +482,6 @@ module Azure::Search::Mgmt::V2015_08_19 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -557,8 +559,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [SearchService] operation results. # - def begin_create_or_update(resource_group_name, search_service_name, service, search_management_request_options = nil, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options, custom_headers).value! + def begin_create_or_update(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -586,8 +588,8 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, search_service_name, service, search_management_request_options = nil, custom_headers = nil) - begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil) + begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! end # @@ -614,7 +616,7 @@ module Azure::Search::Mgmt::V2015_08_19 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options = nil, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, search_service_name, service, search_management_request_options:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'search_service_name is nil' if search_service_name.nil? fail ArgumentError, 'service is nil' if service.nil? @@ -627,7 +629,6 @@ module Azure::Search::Mgmt::V2015_08_19 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_search/lib/profiles/latest/modules/search_profile_module.rb b/management/azure_mgmt_search/lib/profiles/latest/modules/search_profile_module.rb index 0a86708cd..5ac6829c7 100644 --- a/management/azure_mgmt_search/lib/profiles/latest/modules/search_profile_module.rb +++ b/management/azure_mgmt_search/lib/profiles/latest/modules/search_profile_module.rb @@ -46,14 +46,14 @@ module Azure::Search::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Search::Mgmt::V2015_08_19::SearchManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Search::Mgmt::V2015_08_19::SearchManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @admin_keys = client_0.admin_keys - @query_keys = client_0.query_keys - @services = client_0.services + add_telemetry(@client_0) + @admin_keys = @client_0.admin_keys + @query_keys = @client_0.query_keys + @services = @client_0.services @model_classes = ModelClasses.new end @@ -63,6 +63,14 @@ module Azure::Search::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/gateway.rb b/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/gateway.rb index 1b67a2f64..1cc08a14f 100644 --- a/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/gateway.rb +++ b/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/gateway.rb @@ -38,8 +38,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [GatewayResource] operation results. # - def create(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil) - response = create_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value! + def create(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil) + response = create_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -59,9 +59,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil) + def create_async(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers) + promise = begin_create_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -94,8 +94,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [GatewayResource] operation results. # - def update(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil) - response = update_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value! + def update(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil) + response = update_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -115,9 +115,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil) + def update_async(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers) + promise = begin_update_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -143,8 +143,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # will be added to the HTTP request. # # - def delete(resource_group_name, gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, gateway_name, custom_headers).value! + def delete(resource_group_name, gateway_name, custom_headers:nil) + response = delete_async(resource_group_name, gateway_name, custom_headers:custom_headers).value! nil end @@ -159,8 +159,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, gateway_name, custom_headers = nil) - delete_async(resource_group_name, gateway_name, custom_headers).value! + def delete_with_http_info(resource_group_name, gateway_name, custom_headers:nil) + delete_async(resource_group_name, gateway_name, custom_headers:custom_headers).value! end # @@ -174,7 +174,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, gateway_name, custom_headers = nil) + def delete_async(resource_group_name, gateway_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -187,6 +187,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -236,8 +237,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [GatewayResource] operation results. # - def get(resource_group_name, gateway_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, gateway_name, expand, custom_headers).value! + def get(resource_group_name, gateway_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, gateway_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -256,8 +257,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, gateway_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, gateway_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, gateway_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, gateway_name, expand:expand, custom_headers:custom_headers).value! end # @@ -275,7 +276,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, gateway_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, gateway_name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -288,6 +289,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -340,8 +342,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -353,8 +355,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -365,12 +367,13 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -425,8 +428,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Array] operation results. # - def list_for_resource_group(resource_group_name, custom_headers = nil) - first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers) + def list_for_resource_group(resource_group_name, custom_headers:nil) + first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -440,8 +443,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_for_resource_group_async(resource_group_name, custom_headers).value! + def list_for_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -454,7 +457,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_async(resource_group_name, custom_headers = nil) + def list_for_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -463,6 +466,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -516,8 +520,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def upgrade(resource_group_name, gateway_name, custom_headers = nil) - response = upgrade_async(resource_group_name, gateway_name, custom_headers).value! + def upgrade(resource_group_name, gateway_name, custom_headers:nil) + response = upgrade_async(resource_group_name, gateway_name, custom_headers:custom_headers).value! nil end @@ -531,9 +535,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def upgrade_async(resource_group_name, gateway_name, custom_headers = nil) + def upgrade_async(resource_group_name, gateway_name, custom_headers:nil) # Send request - promise = begin_upgrade_async(resource_group_name, gateway_name, custom_headers) + promise = begin_upgrade_async(resource_group_name, gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -556,8 +560,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def regenerate_profile(resource_group_name, gateway_name, custom_headers = nil) - response = regenerate_profile_async(resource_group_name, gateway_name, custom_headers).value! + def regenerate_profile(resource_group_name, gateway_name, custom_headers:nil) + response = regenerate_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value! nil end @@ -571,9 +575,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def regenerate_profile_async(resource_group_name, gateway_name, custom_headers = nil) + def regenerate_profile_async(resource_group_name, gateway_name, custom_headers:nil) # Send request - promise = begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers) + promise = begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -598,8 +602,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [GatewayProfile] operation results. # - def get_profile(resource_group_name, gateway_name, custom_headers = nil) - response = get_profile_async(resource_group_name, gateway_name, custom_headers).value! + def get_profile(resource_group_name, gateway_name, custom_headers:nil) + response = get_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -613,9 +617,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def get_profile_async(resource_group_name, gateway_name, custom_headers = nil) + def get_profile_async(resource_group_name, gateway_name, custom_headers:nil) # Send request - promise = begin_get_profile_async(resource_group_name, gateway_name, custom_headers) + promise = begin_get_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -648,8 +652,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [GatewayResource] operation results. # - def begin_create(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil) - response = begin_create_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value! + def begin_create(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil) + response = begin_create_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -670,8 +674,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil) - begin_create_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value! + def begin_create_with_http_info(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil) + begin_create_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value! end # @@ -691,7 +695,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil) + def begin_create_async(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -710,7 +714,6 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -790,8 +793,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [GatewayResource] operation results. # - def begin_update(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil) - response = begin_update_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value! + def begin_update(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil) + response = begin_update_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -812,8 +815,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil) - begin_update_async(resource_group_name, gateway_name, location, tags, upgrade_mode, custom_headers).value! + def begin_update_with_http_info(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil) + begin_update_async(resource_group_name, gateway_name, location:location, tags:tags, upgrade_mode:upgrade_mode, custom_headers:custom_headers).value! end # @@ -833,7 +836,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, gateway_name, location = nil, tags = nil, upgrade_mode = nil, custom_headers = nil) + def begin_update_async(resource_group_name, gateway_name, location:nil, tags:nil, upgrade_mode:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -852,7 +855,6 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -915,8 +917,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # will be added to the HTTP request. # # - def begin_upgrade(resource_group_name, gateway_name, custom_headers = nil) - response = begin_upgrade_async(resource_group_name, gateway_name, custom_headers).value! + def begin_upgrade(resource_group_name, gateway_name, custom_headers:nil) + response = begin_upgrade_async(resource_group_name, gateway_name, custom_headers:custom_headers).value! nil end @@ -931,8 +933,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_upgrade_with_http_info(resource_group_name, gateway_name, custom_headers = nil) - begin_upgrade_async(resource_group_name, gateway_name, custom_headers).value! + def begin_upgrade_with_http_info(resource_group_name, gateway_name, custom_headers:nil) + begin_upgrade_async(resource_group_name, gateway_name, custom_headers:custom_headers).value! end # @@ -946,7 +948,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_upgrade_async(resource_group_name, gateway_name, custom_headers = nil) + def begin_upgrade_async(resource_group_name, gateway_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -959,6 +961,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1003,8 +1006,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # will be added to the HTTP request. # # - def begin_regenerate_profile(resource_group_name, gateway_name, custom_headers = nil) - response = begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers).value! + def begin_regenerate_profile(resource_group_name, gateway_name, custom_headers:nil) + response = begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value! nil end @@ -1019,8 +1022,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_regenerate_profile_with_http_info(resource_group_name, gateway_name, custom_headers = nil) - begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers).value! + def begin_regenerate_profile_with_http_info(resource_group_name, gateway_name, custom_headers:nil) + begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value! end # @@ -1034,7 +1037,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers = nil) + def begin_regenerate_profile_async(resource_group_name, gateway_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1047,6 +1050,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1092,8 +1096,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [GatewayProfile] operation results. # - def begin_get_profile(resource_group_name, gateway_name, custom_headers = nil) - response = begin_get_profile_async(resource_group_name, gateway_name, custom_headers).value! + def begin_get_profile(resource_group_name, gateway_name, custom_headers:nil) + response = begin_get_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1108,8 +1112,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_get_profile_with_http_info(resource_group_name, gateway_name, custom_headers = nil) - begin_get_profile_async(resource_group_name, gateway_name, custom_headers).value! + def begin_get_profile_with_http_info(resource_group_name, gateway_name, custom_headers:nil) + begin_get_profile_async(resource_group_name, gateway_name, custom_headers:custom_headers).value! end # @@ -1123,7 +1127,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_get_profile_async(resource_group_name, gateway_name, custom_headers = nil) + def begin_get_profile_async(resource_group_name, gateway_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1136,6 +1140,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1190,8 +1195,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [GatewayResources] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1205,8 +1210,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1219,11 +1224,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1277,8 +1283,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [GatewayResources] operation results. # - def list_for_resource_group_next(next_page_link, custom_headers = nil) - response = list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next(next_page_link, custom_headers:nil) + response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1292,8 +1298,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1306,11 +1312,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_next_async(next_page_link, custom_headers = nil) + def list_for_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1363,12 +1370,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [GatewayResources] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1385,12 +1392,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [GatewayResources] which provide lazy access to pages of the # response. # - def list_for_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_for_resource_group_async(resource_group_name, custom_headers).value! + def list_for_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_group_next_async(next_page_link, custom_headers) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/node.rb b/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/node.rb index f3adb245e..61558cc47 100644 --- a/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/node.rb +++ b/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/node.rb @@ -38,8 +38,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [NodeResource] operation results. # - def create(resource_group_name, node_name, location = nil, tags = nil, gateway_id = nil, connection_name = nil, user_name = nil, password = nil, custom_headers = nil) - response = create_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value! + def create(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil) + response = create_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -59,9 +59,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, node_name, location = nil, tags = nil, gateway_id = nil, connection_name = nil, user_name = nil, password = nil, custom_headers = nil) + def create_async(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers) + promise = begin_create_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -94,8 +94,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [NodeResource] operation results. # - def update(resource_group_name, node_name, location = nil, tags = nil, gateway_id = nil, connection_name = nil, user_name = nil, password = nil, custom_headers = nil) - response = update_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value! + def update(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil) + response = update_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -115,9 +115,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, node_name, location = nil, tags = nil, gateway_id = nil, connection_name = nil, user_name = nil, password = nil, custom_headers = nil) + def update_async(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers) + promise = begin_update_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -143,8 +143,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # will be added to the HTTP request. # # - def delete(resource_group_name, node_name, custom_headers = nil) - response = delete_async(resource_group_name, node_name, custom_headers).value! + def delete(resource_group_name, node_name, custom_headers:nil) + response = delete_async(resource_group_name, node_name, custom_headers:custom_headers).value! nil end @@ -159,8 +159,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, node_name, custom_headers = nil) - delete_async(resource_group_name, node_name, custom_headers).value! + def delete_with_http_info(resource_group_name, node_name, custom_headers:nil) + delete_async(resource_group_name, node_name, custom_headers:custom_headers).value! end # @@ -174,7 +174,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, node_name, custom_headers = nil) + def delete_async(resource_group_name, node_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -187,6 +187,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -232,8 +233,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [NodeResource] operation results. # - def get(resource_group_name, node_name, custom_headers = nil) - response = get_async(resource_group_name, node_name, custom_headers).value! + def get(resource_group_name, node_name, custom_headers:nil) + response = get_async(resource_group_name, node_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -248,8 +249,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, node_name, custom_headers = nil) - get_async(resource_group_name, node_name, custom_headers).value! + def get_with_http_info(resource_group_name, node_name, custom_headers:nil) + get_async(resource_group_name, node_name, custom_headers:custom_headers).value! end # @@ -263,7 +264,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, node_name, custom_headers = nil) + def get_async(resource_group_name, node_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -276,6 +277,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -328,8 +330,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -341,8 +343,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -353,12 +355,13 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -413,8 +416,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Array] operation results. # - def list_for_resource_group(resource_group_name, custom_headers = nil) - first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers) + def list_for_resource_group(resource_group_name, custom_headers:nil) + first_page = list_for_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -428,8 +431,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_for_resource_group_async(resource_group_name, custom_headers).value! + def list_for_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -442,7 +445,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_async(resource_group_name, custom_headers = nil) + def list_for_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -451,6 +454,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -512,8 +516,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [NodeResource] operation results. # - def begin_create(resource_group_name, node_name, location = nil, tags = nil, gateway_id = nil, connection_name = nil, user_name = nil, password = nil, custom_headers = nil) - response = begin_create_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value! + def begin_create(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil) + response = begin_create_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -534,8 +538,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, node_name, location = nil, tags = nil, gateway_id = nil, connection_name = nil, user_name = nil, password = nil, custom_headers = nil) - begin_create_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value! + def begin_create_with_http_info(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil) + begin_create_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers).value! end # @@ -555,7 +559,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, node_name, location = nil, tags = nil, gateway_id = nil, connection_name = nil, user_name = nil, password = nil, custom_headers = nil) + def begin_create_async(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -577,7 +581,6 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -657,8 +660,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [NodeResource] operation results. # - def begin_update(resource_group_name, node_name, location = nil, tags = nil, gateway_id = nil, connection_name = nil, user_name = nil, password = nil, custom_headers = nil) - response = begin_update_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value! + def begin_update(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil) + response = begin_update_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -679,8 +682,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, node_name, location = nil, tags = nil, gateway_id = nil, connection_name = nil, user_name = nil, password = nil, custom_headers = nil) - begin_update_async(resource_group_name, node_name, location, tags, gateway_id, connection_name, user_name, password, custom_headers).value! + def begin_update_with_http_info(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil) + begin_update_async(resource_group_name, node_name, location:location, tags:tags, gateway_id:gateway_id, connection_name:connection_name, user_name:user_name, password:password, custom_headers:custom_headers).value! end # @@ -700,7 +703,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, node_name, location = nil, tags = nil, gateway_id = nil, connection_name = nil, user_name = nil, password = nil, custom_headers = nil) + def begin_update_async(resource_group_name, node_name, location:nil, tags:nil, gateway_id:nil, connection_name:nil, user_name:nil, password:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -722,7 +725,6 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -785,8 +787,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [NodeResources] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -800,8 +802,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -814,11 +816,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -872,8 +875,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [NodeResources] operation results. # - def list_for_resource_group_next(next_page_link, custom_headers = nil) - response = list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next(next_page_link, custom_headers:nil) + response = list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -887,8 +890,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_for_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_for_resource_group_next_async(next_page_link, custom_headers).value! + def list_for_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -901,11 +904,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_for_resource_group_next_async(next_page_link, custom_headers = nil) + def list_for_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -957,12 +961,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [NodeResources] which provide lazy access to pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -978,12 +982,12 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [NodeResources] which provide lazy access to pages of the response. # - def list_for_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_for_resource_group_async(resource_group_name, custom_headers).value! + def list_for_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_for_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_for_resource_group_next_async(next_page_link, custom_headers) + list_for_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/power_shell.rb b/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/power_shell.rb index 114f3f6f7..678b2a9b9 100644 --- a/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/power_shell.rb +++ b/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/power_shell.rb @@ -33,8 +33,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [PowerShellSessionResources] operation results. # - def list_session(resource_group_name, node_name, session, custom_headers = nil) - response = list_session_async(resource_group_name, node_name, session, custom_headers).value! + def list_session(resource_group_name, node_name, session, custom_headers:nil) + response = list_session_async(resource_group_name, node_name, session, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_session_with_http_info(resource_group_name, node_name, session, custom_headers = nil) - list_session_async(resource_group_name, node_name, session, custom_headers).value! + def list_session_with_http_info(resource_group_name, node_name, session, custom_headers:nil) + list_session_async(resource_group_name, node_name, session, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_session_async(resource_group_name, node_name, session, custom_headers = nil) + def list_session_async(resource_group_name, node_name, session, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -80,6 +80,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -137,8 +138,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [PowerShellSessionResource] operation results. # - def create_session(resource_group_name, node_name, session, pssession, custom_headers = nil) - response = create_session_async(resource_group_name, node_name, session, pssession, custom_headers).value! + def create_session(resource_group_name, node_name, session, pssession, custom_headers:nil) + response = create_session_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -154,9 +155,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_session_async(resource_group_name, node_name, session, pssession, custom_headers = nil) + def create_session_async(resource_group_name, node_name, session, pssession, custom_headers:nil) # Send request - promise = begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers) + promise = begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -187,8 +188,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [PowerShellCommandStatus] operation results. # - def get_command_status(resource_group_name, node_name, session, pssession, expand = nil, custom_headers = nil) - response = get_command_status_async(resource_group_name, node_name, session, pssession, expand, custom_headers).value! + def get_command_status(resource_group_name, node_name, session, pssession, expand:nil, custom_headers:nil) + response = get_command_status_async(resource_group_name, node_name, session, pssession, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -207,8 +208,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_command_status_with_http_info(resource_group_name, node_name, session, pssession, expand = nil, custom_headers = nil) - get_command_status_async(resource_group_name, node_name, session, pssession, expand, custom_headers).value! + def get_command_status_with_http_info(resource_group_name, node_name, session, pssession, expand:nil, custom_headers:nil) + get_command_status_async(resource_group_name, node_name, session, pssession, expand:expand, custom_headers:custom_headers).value! end # @@ -226,7 +227,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_command_status_async(resource_group_name, node_name, session, pssession, expand = nil, custom_headers = nil) + def get_command_status_async(resource_group_name, node_name, session, pssession, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -241,6 +242,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [PowerShellCommandResults] operation results. # - def update_command(resource_group_name, node_name, session, pssession, custom_headers = nil) - response = update_command_async(resource_group_name, node_name, session, pssession, custom_headers).value! + def update_command(resource_group_name, node_name, session, pssession, custom_headers:nil) + response = update_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -315,9 +317,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_command_async(resource_group_name, node_name, session, pssession, custom_headers = nil) + def update_command_async(resource_group_name, node_name, session, pssession, custom_headers:nil) # Send request - promise = begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers) + promise = begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -347,8 +349,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [PowerShellCommandResults] operation results. # - def invoke_command(resource_group_name, node_name, session, pssession, command = nil, custom_headers = nil) - response = invoke_command_async(resource_group_name, node_name, session, pssession, command, custom_headers).value! + def invoke_command(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil) + response = invoke_command_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -365,9 +367,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def invoke_command_async(resource_group_name, node_name, session, pssession, command = nil, custom_headers = nil) + def invoke_command_async(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil) # Send request - promise = begin_invoke_command_async(resource_group_name, node_name, session, pssession, command, custom_headers) + promise = begin_invoke_command_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -396,8 +398,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [PowerShellCommandResults] operation results. # - def cancel_command(resource_group_name, node_name, session, pssession, custom_headers = nil) - response = cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers).value! + def cancel_command(resource_group_name, node_name, session, pssession, custom_headers:nil) + response = cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -413,9 +415,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers = nil) + def cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:nil) # Send request - promise = begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers) + promise = begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -445,8 +447,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [PowerShellTabCompletionResults] operation results. # - def tab_completion(resource_group_name, node_name, session, pssession, command = nil, custom_headers = nil) - response = tab_completion_async(resource_group_name, node_name, session, pssession, command, custom_headers).value! + def tab_completion(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil) + response = tab_completion_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -464,8 +466,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def tab_completion_with_http_info(resource_group_name, node_name, session, pssession, command = nil, custom_headers = nil) - tab_completion_async(resource_group_name, node_name, session, pssession, command, custom_headers).value! + def tab_completion_with_http_info(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil) + tab_completion_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers).value! end # @@ -482,7 +484,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def tab_completion_async(resource_group_name, node_name, session, pssession, command = nil, custom_headers = nil) + def tab_completion_async(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -501,7 +503,6 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -567,8 +568,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [PowerShellSessionResource] operation results. # - def begin_create_session(resource_group_name, node_name, session, pssession, custom_headers = nil) - response = begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers).value! + def begin_create_session(resource_group_name, node_name, session, pssession, custom_headers:nil) + response = begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -585,8 +586,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_session_with_http_info(resource_group_name, node_name, session, pssession, custom_headers = nil) - begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers).value! + def begin_create_session_with_http_info(resource_group_name, node_name, session, pssession, custom_headers:nil) + begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value! end # @@ -602,7 +603,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers = nil) + def begin_create_session_async(resource_group_name, node_name, session, pssession, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -617,6 +618,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -674,8 +676,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [PowerShellCommandResults] operation results. # - def begin_update_command(resource_group_name, node_name, session, pssession, custom_headers = nil) - response = begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers).value! + def begin_update_command(resource_group_name, node_name, session, pssession, custom_headers:nil) + response = begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -692,8 +694,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_command_with_http_info(resource_group_name, node_name, session, pssession, custom_headers = nil) - begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers).value! + def begin_update_command_with_http_info(resource_group_name, node_name, session, pssession, custom_headers:nil) + begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value! end # @@ -709,7 +711,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers = nil) + def begin_update_command_async(resource_group_name, node_name, session, pssession, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -724,6 +726,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -782,8 +785,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [PowerShellCommandResults] operation results. # - def begin_invoke_command(resource_group_name, node_name, session, pssession, command = nil, custom_headers = nil) - response = begin_invoke_command_async(resource_group_name, node_name, session, pssession, command, custom_headers).value! + def begin_invoke_command(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil) + response = begin_invoke_command_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -801,8 +804,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_invoke_command_with_http_info(resource_group_name, node_name, session, pssession, command = nil, custom_headers = nil) - begin_invoke_command_async(resource_group_name, node_name, session, pssession, command, custom_headers).value! + def begin_invoke_command_with_http_info(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil) + begin_invoke_command_async(resource_group_name, node_name, session, pssession, command:command, custom_headers:custom_headers).value! end # @@ -819,7 +822,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_invoke_command_async(resource_group_name, node_name, session, pssession, command = nil, custom_headers = nil) + def begin_invoke_command_async(resource_group_name, node_name, session, pssession, command:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -838,7 +841,6 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -904,8 +906,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [PowerShellCommandResults] operation results. # - def begin_cancel_command(resource_group_name, node_name, session, pssession, custom_headers = nil) - response = begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers).value! + def begin_cancel_command(resource_group_name, node_name, session, pssession, custom_headers:nil) + response = begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -922,8 +924,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_cancel_command_with_http_info(resource_group_name, node_name, session, pssession, custom_headers = nil) - begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers).value! + def begin_cancel_command_with_http_info(resource_group_name, node_name, session, pssession, custom_headers:nil) + begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:custom_headers).value! end # @@ -939,7 +941,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers = nil) + def begin_cancel_command_async(resource_group_name, node_name, session, pssession, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -954,6 +956,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/session.rb b/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/session.rb index 9ab35332a..c01c80c79 100644 --- a/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/session.rb +++ b/management/azure_mgmt_server_management/lib/2016-07-01-preview/generated/azure_mgmt_server_management/session.rb @@ -41,8 +41,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [SessionResource] operation results. # - def create(resource_group_name, node_name, session, user_name = nil, password = nil, retention_period = nil, credential_data_format = nil, encryption_certificate_thumbprint = nil, custom_headers = nil) - response = create_async(resource_group_name, node_name, session, user_name, password, retention_period, credential_data_format, encryption_certificate_thumbprint, custom_headers).value! + def create(resource_group_name, node_name, session, user_name:nil, password:nil, retention_period:nil, credential_data_format:nil, encryption_certificate_thumbprint:nil, custom_headers:nil) + response = create_async(resource_group_name, node_name, session, user_name:user_name, password:password, retention_period:retention_period, credential_data_format:credential_data_format, encryption_certificate_thumbprint:encryption_certificate_thumbprint, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -65,9 +65,9 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, node_name, session, user_name = nil, password = nil, retention_period = nil, credential_data_format = nil, encryption_certificate_thumbprint = nil, custom_headers = nil) + def create_async(resource_group_name, node_name, session, user_name:nil, password:nil, retention_period:nil, credential_data_format:nil, encryption_certificate_thumbprint:nil, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, node_name, session, user_name, password, retention_period, credential_data_format, encryption_certificate_thumbprint, custom_headers) + promise = begin_create_async(resource_group_name, node_name, session, user_name:user_name, password:password, retention_period:retention_period, credential_data_format:credential_data_format, encryption_certificate_thumbprint:encryption_certificate_thumbprint, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -94,8 +94,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # will be added to the HTTP request. # # - def delete(resource_group_name, node_name, session, custom_headers = nil) - response = delete_async(resource_group_name, node_name, session, custom_headers).value! + def delete(resource_group_name, node_name, session, custom_headers:nil) + response = delete_async(resource_group_name, node_name, session, custom_headers:custom_headers).value! nil end @@ -111,8 +111,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, node_name, session, custom_headers = nil) - delete_async(resource_group_name, node_name, session, custom_headers).value! + def delete_with_http_info(resource_group_name, node_name, session, custom_headers:nil) + delete_async(resource_group_name, node_name, session, custom_headers:custom_headers).value! end # @@ -127,7 +127,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, node_name, session, custom_headers = nil) + def delete_async(resource_group_name, node_name, session, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -141,6 +141,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -187,8 +188,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [SessionResource] operation results. # - def get(resource_group_name, node_name, session, custom_headers = nil) - response = get_async(resource_group_name, node_name, session, custom_headers).value! + def get(resource_group_name, node_name, session, custom_headers:nil) + response = get_async(resource_group_name, node_name, session, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -204,8 +205,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, node_name, session, custom_headers = nil) - get_async(resource_group_name, node_name, session, custom_headers).value! + def get_with_http_info(resource_group_name, node_name, session, custom_headers:nil) + get_async(resource_group_name, node_name, session, custom_headers:custom_headers).value! end # @@ -220,7 +221,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, node_name, session, custom_headers = nil) + def get_async(resource_group_name, node_name, session, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -234,6 +235,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -298,8 +300,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [SessionResource] operation results. # - def begin_create(resource_group_name, node_name, session, user_name = nil, password = nil, retention_period = nil, credential_data_format = nil, encryption_certificate_thumbprint = nil, custom_headers = nil) - response = begin_create_async(resource_group_name, node_name, session, user_name, password, retention_period, credential_data_format, encryption_certificate_thumbprint, custom_headers).value! + def begin_create(resource_group_name, node_name, session, user_name:nil, password:nil, retention_period:nil, credential_data_format:nil, encryption_certificate_thumbprint:nil, custom_headers:nil) + response = begin_create_async(resource_group_name, node_name, session, user_name:user_name, password:password, retention_period:retention_period, credential_data_format:credential_data_format, encryption_certificate_thumbprint:encryption_certificate_thumbprint, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -323,8 +325,8 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, node_name, session, user_name = nil, password = nil, retention_period = nil, credential_data_format = nil, encryption_certificate_thumbprint = nil, custom_headers = nil) - begin_create_async(resource_group_name, node_name, session, user_name, password, retention_period, credential_data_format, encryption_certificate_thumbprint, custom_headers).value! + def begin_create_with_http_info(resource_group_name, node_name, session, user_name:nil, password:nil, retention_period:nil, credential_data_format:nil, encryption_certificate_thumbprint:nil, custom_headers:nil) + begin_create_async(resource_group_name, node_name, session, user_name:user_name, password:password, retention_period:retention_period, credential_data_format:credential_data_format, encryption_certificate_thumbprint:encryption_certificate_thumbprint, custom_headers:custom_headers).value! end # @@ -347,7 +349,7 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, node_name, session, user_name = nil, password = nil, retention_period = nil, credential_data_format = nil, encryption_certificate_thumbprint = nil, custom_headers = nil) + def begin_create_async(resource_group_name, node_name, session, user_name:nil, password:nil, retention_period:nil, credential_data_format:nil, encryption_certificate_thumbprint:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -369,7 +371,6 @@ module Azure::ServerManagement::Mgmt::V2016_07_01_preview end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_server_management/lib/profiles/latest/modules/servermanagement_profile_module.rb b/management/azure_mgmt_server_management/lib/profiles/latest/modules/servermanagement_profile_module.rb index f4d162159..e8bf96e90 100644 --- a/management/azure_mgmt_server_management/lib/profiles/latest/modules/servermanagement_profile_module.rb +++ b/management/azure_mgmt_server_management/lib/profiles/latest/modules/servermanagement_profile_module.rb @@ -63,15 +63,15 @@ module Azure::ServerManagement::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::ServerManagement::Mgmt::V2016_07_01_preview::ServerManagement.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ServerManagement::Mgmt::V2016_07_01_preview::ServerManagement.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @gateway = client_0.gateway - @node = client_0.node - @session = client_0.session - @power_shell = client_0.power_shell + add_telemetry(@client_0) + @gateway = @client_0.gateway + @node = @client_0.node + @session = @client_0.session + @power_shell = @client_0.power_shell @model_classes = ModelClasses.new end @@ -81,6 +81,14 @@ module Azure::ServerManagement::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb b/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb index e3ca012b7..508afecc6 100644 --- a/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb +++ b/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb @@ -31,8 +31,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability_method(parameters, custom_headers = nil) - response = check_name_availability_method_async(parameters, custom_headers).value! + def check_name_availability_method(parameters, custom_headers:nil) + response = check_name_availability_method_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_method_with_http_info(parameters, custom_headers = nil) - check_name_availability_method_async(parameters, custom_headers).value! + def check_name_availability_method_with_http_info(parameters, custom_headers:nil) + check_name_availability_method_async(parameters, custom_headers:custom_headers).value! end # @@ -60,14 +60,13 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_method_async(parameters, custom_headers = nil) + def check_name_availability_method_async(parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -129,8 +128,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_by_subscription(custom_headers = nil) - first_page = list_by_subscription_as_lazy(custom_headers) + def list_by_subscription(custom_headers:nil) + first_page = list_by_subscription_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -143,8 +142,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -156,12 +155,13 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -216,8 +216,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -231,8 +231,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -245,7 +245,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -254,6 +254,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -312,8 +313,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [NamespaceResource] operation results. # - def create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -329,9 +330,9 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -357,8 +358,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, namespace_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, custom_headers).value! + def delete(resource_group_name, namespace_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -372,9 +373,9 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, namespace_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, namespace_name, custom_headers) + promise = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -399,8 +400,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [NamespaceResource] operation results. # - def get(resource_group_name, namespace_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, custom_headers).value! + def get(resource_group_name, namespace_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -415,8 +416,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -430,7 +431,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -442,6 +443,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,8 +502,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [NamespaceResource] operation results. # - def update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -519,8 +521,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -537,7 +539,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -550,7 +552,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -624,8 +625,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -640,8 +641,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -655,7 +656,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -667,6 +668,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -725,8 +727,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -744,8 +746,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -762,7 +764,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -778,7 +780,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -842,8 +843,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -859,8 +860,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -875,7 +876,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -890,6 +891,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -936,8 +938,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -953,8 +955,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -969,7 +971,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -984,6 +986,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1040,8 +1043,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [ResourceListKeys] operation results. # - def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1057,8 +1060,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -1073,7 +1076,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1088,6 +1091,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1146,8 +1150,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [ResourceListKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1165,8 +1169,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1183,7 +1187,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1199,7 +1203,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1266,8 +1269,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [NamespaceResource] operation results. # - def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1285,8 +1288,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -1303,7 +1306,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1314,7 +1317,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1388,8 +1390,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, namespace_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete(resource_group_name, namespace_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -1405,8 +1407,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -1421,7 +1423,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil) + def begin_delete_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1433,6 +1435,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1478,8 +1481,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [NamespaceListResult] operation results. # - def list_by_subscription_next(next_page_link, custom_headers = nil) - response = list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next(next_page_link, custom_headers:nil) + response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1494,8 +1497,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscription_next_async(next_page_link, custom_headers).value! + def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1509,11 +1512,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_next_async(next_page_link, custom_headers = nil) + def list_by_subscription_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1567,8 +1571,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [NamespaceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1582,8 +1586,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1596,11 +1600,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1654,8 +1659,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1669,8 +1674,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1683,11 +1688,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1741,12 +1747,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # @return [NamespaceListResult] which provide lazy access to pages of the # response. # - def list_by_subscription_as_lazy(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription_as_lazy(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscription_next_async(next_page_link, custom_headers) + list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1763,12 +1769,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # @return [NamespaceListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1786,12 +1792,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access # to pages of the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/operations.rb b/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/operations.rb index 60f02a0ff..27d82db36 100644 --- a/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/operations.rb +++ b/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/operations.rb @@ -29,8 +29,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb b/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb index efefcd077..9284ee692 100644 --- a/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb +++ b/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb @@ -32,8 +32,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_all(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_all_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_all(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_all_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_all_async(resource_group_name, namespace_name, custom_headers).value! + def list_all_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_all_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(resource_group_name, namespace_name, custom_headers = nil) + def list_all_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -75,6 +75,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [QueueResource] operation results. # - def create_or_update(resource_group_name, namespace_name, queue_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, queue_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -152,8 +153,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, queue_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, queue_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -186,7 +187,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -250,8 +250,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, queue_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def delete(resource_group_name, namespace_name, queue_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! nil end @@ -267,8 +267,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! end # @@ -283,7 +283,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, queue_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, queue_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -298,6 +298,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -344,8 +345,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [QueueResource] operation results. # - def get(resource_group_name, namespace_name, queue_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def get(resource_group_name, namespace_name, queue_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -361,8 +362,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! end # @@ -377,7 +378,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, queue_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, queue_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -392,6 +393,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -448,8 +450,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, queue_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, queue_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers) first_page.get_all_items end @@ -465,8 +467,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! end # @@ -481,7 +483,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -496,6 +498,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -555,8 +558,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -575,8 +578,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -594,7 +597,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -613,7 +616,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -678,8 +680,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -696,8 +698,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -713,7 +715,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -731,6 +733,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -778,8 +781,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -796,8 +799,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -813,7 +816,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -831,6 +834,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -888,8 +892,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [ResourceListKeys] operation results. # - def list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -906,8 +910,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -923,7 +927,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -941,6 +945,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1000,8 +1005,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [ResourceListKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1020,8 +1025,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1039,7 +1044,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1058,7 +1063,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1121,8 +1125,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [QueueListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1136,8 +1140,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1150,11 +1154,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1208,8 +1213,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1223,8 +1228,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1237,11 +1242,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1296,12 +1302,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [QueueListResult] which provide lazy access to pages of the response. # - def list_all_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_all_async(resource_group_name, namespace_name, custom_headers).value! + def list_all_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_all_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1320,12 +1326,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access # to pages of the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/subscriptions.rb b/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/subscriptions.rb index e157e14cf..fa7de4c19 100644 --- a/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/subscriptions.rb +++ b/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/subscriptions.rb @@ -33,8 +33,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_all(resource_group_name, namespace_name, topic_name, custom_headers = nil) - first_page = list_all_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers) + def list_all(resource_group_name, namespace_name, topic_name, custom_headers:nil) + first_page = list_all_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers = nil) - list_all_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def list_all_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil) + list_all_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(resource_group_name, namespace_name, topic_name, custom_headers = nil) + def list_all_async(resource_group_name, namespace_name, topic_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -81,6 +81,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SubscriptionResource] operation results. # - def create_or_update(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -160,8 +161,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers:custom_headers).value! end # @@ -179,7 +180,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -198,7 +199,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -263,8 +263,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers).value! + def delete(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value! nil end @@ -281,8 +281,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value! end # @@ -298,7 +298,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -316,6 +316,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -363,8 +364,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SubscriptionResource] operation results. # - def get(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers).value! + def get(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -381,8 +382,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value! end # @@ -398,7 +399,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -416,6 +417,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -470,8 +472,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SubscriptionListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -485,8 +487,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -499,11 +501,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -560,12 +563,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # @return [SubscriptionListResult] which provide lazy access to pages of the # response. # - def list_all_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers = nil) - response = list_all_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def list_all_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:nil) + response = list_all_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/topics.rb b/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/topics.rb index 17f2c2bf4..4a7bc664b 100644 --- a/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/topics.rb +++ b/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/topics.rb @@ -32,8 +32,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_all(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_all_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_all(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_all_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_all_async(resource_group_name, namespace_name, custom_headers).value! + def list_all_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_all_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(resource_group_name, namespace_name, custom_headers = nil) + def list_all_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -75,6 +75,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [TopicResource] operation results. # - def create_or_update(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, topic_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -152,8 +153,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -186,7 +187,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -250,8 +250,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, topic_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def delete(resource_group_name, namespace_name, topic_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! nil end @@ -267,8 +267,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! end # @@ -283,7 +283,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, topic_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, topic_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -298,6 +298,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -344,8 +345,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [TopicResource] operation results. # - def get(resource_group_name, namespace_name, topic_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def get(resource_group_name, namespace_name, topic_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -361,8 +362,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! end # @@ -377,7 +378,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, topic_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, topic_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -392,6 +393,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -448,8 +450,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, topic_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, topic_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers) first_page.get_all_items end @@ -465,8 +467,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! end # @@ -481,7 +483,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -496,6 +498,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -555,8 +558,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -575,8 +578,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -594,7 +597,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -613,7 +616,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -679,8 +681,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleResource] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -697,8 +699,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -714,7 +716,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -732,6 +734,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -788,8 +791,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -806,8 +809,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -823,7 +826,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -841,6 +844,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -888,8 +892,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [ResourceListKeys] operation results. # - def list_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -906,8 +910,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -923,7 +927,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -941,6 +945,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1000,8 +1005,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [ResourceListKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1020,8 +1025,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1039,7 +1044,7 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1058,7 +1063,6 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1121,8 +1125,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [TopicListResult] operation results. # - def list_all_next(next_page_link, custom_headers = nil) - response = list_all_next_async(next_page_link, custom_headers).value! + def list_all_next(next_page_link, custom_headers:nil) + response = list_all_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1136,8 +1140,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_next_with_http_info(next_page_link, custom_headers = nil) - list_all_next_async(next_page_link, custom_headers).value! + def list_all_next_with_http_info(next_page_link, custom_headers:nil) + list_all_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1150,11 +1154,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_next_async(next_page_link, custom_headers = nil) + def list_all_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1208,8 +1213,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [SharedAccessAuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1223,8 +1228,8 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1237,11 +1242,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1296,12 +1302,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # # @return [TopicListResult] which provide lazy access to pages of the response. # - def list_all_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_all_async(resource_group_name, namespace_name, custom_headers).value! + def list_all_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_all_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_all_next_async(next_page_link, custom_headers) + list_all_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1320,12 +1326,12 @@ module Azure::ServiceBus::Mgmt::V2015_08_01 # @return [SharedAccessAuthorizationRuleListResult] which provide lazy access # to pages of the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/disaster_recovery_configs.rb b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/disaster_recovery_configs.rb index 3f9c53d5f..f04a6860a 100644 --- a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/disaster_recovery_configs.rb +++ b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/disaster_recovery_configs.rb @@ -32,8 +32,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, namespace_name, custom_headers) + def list(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_async(resource_group_name, namespace_name, custom_headers).value! + def list_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, namespace_name, custom_headers = nil) + def list_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -75,6 +75,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [ArmDisasterRecovery] operation results. # - def create_or_update(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -152,8 +153,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -186,7 +187,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -250,8 +250,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def delete(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! nil end @@ -267,8 +267,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! end # @@ -283,7 +283,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -298,6 +298,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -345,8 +346,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [ArmDisasterRecovery] operation results. # - def get(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def get(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -363,8 +364,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - get_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + get_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! end # @@ -380,7 +381,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) + def get_async(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -395,6 +396,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -451,8 +453,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def break_pairing(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - response = break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def break_pairing(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + response = break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! nil end @@ -469,8 +471,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def break_pairing_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def break_pairing_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! end # @@ -486,7 +488,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) + def break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -501,6 +503,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -547,8 +550,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def fail_over(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - response = fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def fail_over(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + response = fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! nil end @@ -565,8 +568,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def fail_over_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) - fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value! + def fail_over_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) + fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers:custom_headers).value! end # @@ -582,7 +585,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil) + def fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -597,6 +600,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -641,8 +645,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [ArmDisasterRecoveryListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -656,8 +660,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -670,11 +674,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -730,12 +735,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [ArmDisasterRecoveryListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_async(resource_group_name, namespace_name, custom_headers).value! + def list_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/event_hubs.rb b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/event_hubs.rb index e0b0816fa..dab253a04 100644 --- a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/event_hubs.rb +++ b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/event_hubs.rb @@ -32,8 +32,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil) + def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -75,6 +75,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -129,8 +130,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [EventHubListResult] operation results. # - def list_by_namespace_next(next_page_link, custom_headers = nil) - response = list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next(next_page_link, custom_headers:nil) + response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -144,8 +145,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil) - list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -158,11 +159,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_next_async(next_page_link, custom_headers = nil) + def list_by_namespace_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -218,12 +220,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [EventHubListResult] which provide lazy access to pages of the # response. # - def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_namespace_next_async(next_page_link, custom_headers) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/namespaces.rb b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/namespaces.rb index 682d32e64..e990191af 100644 --- a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/namespaces.rb +++ b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/namespaces.rb @@ -31,8 +31,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability_method(parameters, custom_headers = nil) - response = check_name_availability_method_async(parameters, custom_headers).value! + def check_name_availability_method(parameters, custom_headers:nil) + response = check_name_availability_method_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_method_with_http_info(parameters, custom_headers = nil) - check_name_availability_method_async(parameters, custom_headers).value! + def check_name_availability_method_with_http_info(parameters, custom_headers:nil) + check_name_availability_method_async(parameters, custom_headers:custom_headers).value! end # @@ -60,14 +60,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_method_async(parameters, custom_headers = nil) + def check_name_availability_method_async(parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -129,8 +128,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -143,8 +142,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -156,12 +155,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -216,8 +216,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -231,8 +231,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -245,7 +245,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -254,6 +254,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -312,8 +313,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBNamespace] operation results. # - def create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -329,9 +330,9 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -357,8 +358,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, namespace_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, custom_headers).value! + def delete(resource_group_name, namespace_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -372,9 +373,9 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, namespace_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, namespace_name, custom_headers) + promise = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -399,8 +400,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBNamespace] operation results. # - def get(resource_group_name, namespace_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, custom_headers).value! + def get(resource_group_name, namespace_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -415,8 +416,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -430,7 +431,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -442,6 +443,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,8 +502,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBNamespace] operation results. # - def update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -519,8 +521,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -537,7 +539,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -550,7 +552,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -624,8 +625,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -640,8 +641,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -655,7 +656,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -667,6 +668,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -724,8 +726,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBAuthorizationRule] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -742,8 +744,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -759,7 +761,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -775,7 +777,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -839,8 +840,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -856,8 +857,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -872,7 +873,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -887,6 +888,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -933,8 +935,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBAuthorizationRule] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -950,8 +952,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -966,7 +968,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -981,6 +983,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1037,8 +1040,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1054,8 +1057,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -1070,7 +1073,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1085,6 +1088,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1143,8 +1147,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1162,8 +1166,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1180,7 +1184,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1196,7 +1200,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1263,8 +1266,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBNamespace] operation results. # - def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, namespace_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1282,8 +1285,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, namespace_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:custom_headers).value! end # @@ -1300,7 +1303,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, namespace_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1311,7 +1314,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1385,8 +1387,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, namespace_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete(resource_group_name, namespace_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! nil end @@ -1402,8 +1404,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - begin_delete_async(resource_group_name, namespace_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + begin_delete_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -1418,7 +1420,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, namespace_name, custom_headers = nil) + def begin_delete_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1430,6 +1432,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1475,8 +1478,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBNamespaceListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1491,8 +1494,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1506,11 +1509,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1564,8 +1568,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBNamespaceListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1579,8 +1583,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1593,11 +1597,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1651,8 +1656,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBAuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1666,8 +1671,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1680,11 +1685,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1738,12 +1744,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [SBNamespaceListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1760,12 +1766,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [SBNamespaceListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1783,12 +1789,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [SBAuthorizationRuleListResult] which provide lazy access to pages of # the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/operations.rb b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/operations.rb index 6156fe267..b632b69eb 100644 --- a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/operations.rb +++ b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/operations.rb @@ -29,8 +29,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb index f9f717e05..7217f703d 100644 --- a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb +++ b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb @@ -29,8 +29,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -114,8 +115,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [PremiumMessagingRegionsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -129,8 +130,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -143,11 +144,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -200,12 +202,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [PremiumMessagingRegionsListResult] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/queues.rb b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/queues.rb index 440b8bdb0..e2dc56885 100644 --- a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/queues.rb +++ b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/queues.rb @@ -32,8 +32,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil) + def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -75,6 +75,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBQueue] operation results. # - def create_or_update(resource_group_name, namespace_name, queue_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, queue_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -152,8 +153,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, queue_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, queue_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, queue_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -185,7 +186,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -249,8 +249,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, queue_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def delete(resource_group_name, namespace_name, queue_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! nil end @@ -266,8 +266,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! end # @@ -282,7 +282,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, queue_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, queue_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -296,6 +296,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -342,8 +343,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBQueue] operation results. # - def get(resource_group_name, namespace_name, queue_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def get(resource_group_name, namespace_name, queue_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -359,8 +360,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! end # @@ -375,7 +376,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, queue_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, queue_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -389,6 +390,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -445,8 +447,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, queue_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, queue_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers) first_page.get_all_items end @@ -462,8 +464,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, queue_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! end # @@ -478,7 +480,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -492,6 +494,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -550,8 +553,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBAuthorizationRule] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -569,8 +572,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -587,7 +590,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -605,7 +608,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -670,8 +672,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -688,8 +690,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -705,7 +707,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -722,6 +724,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -769,8 +772,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBAuthorizationRule] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -787,8 +790,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -804,7 +807,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -821,6 +824,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -878,8 +882,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -896,8 +900,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -913,7 +917,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -930,6 +934,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -989,8 +994,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1009,8 +1014,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1028,7 +1033,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1046,7 +1051,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1109,8 +1113,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBQueueListResult] operation results. # - def list_by_namespace_next(next_page_link, custom_headers = nil) - response = list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next(next_page_link, custom_headers:nil) + response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1124,8 +1128,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil) - list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1138,11 +1142,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_next_async(next_page_link, custom_headers = nil) + def list_by_namespace_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1196,8 +1201,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBAuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1211,8 +1216,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1225,11 +1230,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1285,12 +1291,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [SBQueueListResult] which provide lazy access to pages of the # response. # - def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_namespace_next_async(next_page_link, custom_headers) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1309,12 +1315,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [SBAuthorizationRuleListResult] which provide lazy access to pages of # the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, queue_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, queue_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/regions.rb b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/regions.rb index 398590a2f..193ca2ede 100644 --- a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/regions.rb +++ b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/regions.rb @@ -30,8 +30,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_sku(sku, custom_headers = nil) - first_page = list_by_sku_as_lazy(sku, custom_headers) + def list_by_sku(sku, custom_headers:nil) + first_page = list_by_sku_as_lazy(sku, custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_sku_with_http_info(sku, custom_headers = nil) - list_by_sku_async(sku, custom_headers).value! + def list_by_sku_with_http_info(sku, custom_headers:nil) + list_by_sku_async(sku, custom_headers:custom_headers).value! end # @@ -57,7 +57,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_sku_async(sku, custom_headers = nil) + def list_by_sku_async(sku, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'sku is nil' if sku.nil? @@ -66,6 +66,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -120,8 +121,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [PremiumMessagingRegionsListResult] operation results. # - def list_by_sku_next(next_page_link, custom_headers = nil) - response = list_by_sku_next_async(next_page_link, custom_headers).value! + def list_by_sku_next(next_page_link, custom_headers:nil) + response = list_by_sku_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -135,8 +136,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_sku_next_with_http_info(next_page_link, custom_headers = nil) - list_by_sku_next_async(next_page_link, custom_headers).value! + def list_by_sku_next_with_http_info(next_page_link, custom_headers:nil) + list_by_sku_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -149,11 +150,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_sku_next_async(next_page_link, custom_headers = nil) + def list_by_sku_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -207,12 +209,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [PremiumMessagingRegionsListResult] which provide lazy access to # pages of the response. # - def list_by_sku_as_lazy(sku, custom_headers = nil) - response = list_by_sku_async(sku, custom_headers).value! + def list_by_sku_as_lazy(sku, custom_headers:nil) + response = list_by_sku_async(sku, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_sku_next_async(next_page_link, custom_headers) + list_by_sku_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/rules.rb b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/rules.rb index 507f5e3fc..fcd9629cf 100644 --- a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/rules.rb +++ b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/rules.rb @@ -34,8 +34,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_subscriptions(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) - first_page = list_by_subscriptions_as_lazy(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers) + def list_by_subscriptions(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) + first_page = list_by_subscriptions_as_lazy(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscriptions_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) - list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers).value! + def list_by_subscriptions_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) + list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) + def list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -86,6 +86,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -145,8 +146,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Rule] operation results. # - def create_or_update(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -165,8 +166,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers:custom_headers).value! end # @@ -184,7 +185,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -205,7 +206,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -271,8 +271,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers).value! + def delete(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers:custom_headers).value! nil end @@ -290,8 +290,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers:custom_headers).value! end # @@ -308,7 +308,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -328,6 +328,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -376,8 +377,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Rule] operation results. # - def get(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers).value! + def get(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -395,8 +396,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers:custom_headers).value! end # @@ -413,7 +414,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -433,6 +434,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -487,8 +489,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [RuleListResult] operation results. # - def list_by_subscriptions_next(next_page_link, custom_headers = nil) - response = list_by_subscriptions_next_async(next_page_link, custom_headers).value! + def list_by_subscriptions_next(next_page_link, custom_headers:nil) + response = list_by_subscriptions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -502,8 +504,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscriptions_next_with_http_info(next_page_link, custom_headers = nil) - list_by_subscriptions_next_async(next_page_link, custom_headers).value! + def list_by_subscriptions_next_with_http_info(next_page_link, custom_headers:nil) + list_by_subscriptions_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -516,11 +518,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscriptions_next_async(next_page_link, custom_headers = nil) + def list_by_subscriptions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -577,12 +580,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [RuleListResult] which provide lazy access to pages of the response. # - def list_by_subscriptions_as_lazy(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) - response = list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers).value! + def list_by_subscriptions_as_lazy(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) + response = list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_subscriptions_next_async(next_page_link, custom_headers) + list_by_subscriptions_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/subscriptions.rb b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/subscriptions.rb index 0e52c64c0..532f0a8f4 100644 --- a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/subscriptions.rb +++ b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/subscriptions.rb @@ -33,8 +33,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_topic(resource_group_name, namespace_name, topic_name, custom_headers = nil) - first_page = list_by_topic_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers) + def list_by_topic(resource_group_name, namespace_name, topic_name, custom_headers:nil) + first_page = list_by_topic_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_topic_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers = nil) - list_by_topic_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def list_by_topic_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil) + list_by_topic_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_topic_async(resource_group_name, namespace_name, topic_name, custom_headers = nil) + def list_by_topic_async(resource_group_name, namespace_name, topic_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -80,6 +80,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -139,8 +140,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBSubscription] operation results. # - def create_or_update(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -159,8 +160,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers:custom_headers).value! end # @@ -178,7 +179,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -196,7 +197,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -261,8 +261,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers).value! + def delete(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value! nil end @@ -279,8 +279,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value! end # @@ -296,7 +296,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -313,6 +313,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -360,8 +361,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBSubscription] operation results. # - def get(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers).value! + def get(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -378,8 +379,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value! end # @@ -395,7 +396,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -412,6 +413,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -466,8 +468,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBSubscriptionListResult] operation results. # - def list_by_topic_next(next_page_link, custom_headers = nil) - response = list_by_topic_next_async(next_page_link, custom_headers).value! + def list_by_topic_next(next_page_link, custom_headers:nil) + response = list_by_topic_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -481,8 +483,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_topic_next_with_http_info(next_page_link, custom_headers = nil) - list_by_topic_next_async(next_page_link, custom_headers).value! + def list_by_topic_next_with_http_info(next_page_link, custom_headers:nil) + list_by_topic_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -495,11 +497,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_topic_next_async(next_page_link, custom_headers = nil) + def list_by_topic_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -556,12 +559,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [SBSubscriptionListResult] which provide lazy access to pages of the # response. # - def list_by_topic_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers = nil) - response = list_by_topic_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def list_by_topic_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:nil) + response = list_by_topic_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_topic_next_async(next_page_link, custom_headers) + list_by_topic_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/topics.rb b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/topics.rb index ada47a5fe..7ab038da4 100644 --- a/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/topics.rb +++ b/management/azure_mgmt_service_bus/lib/2017-04-01/generated/azure_mgmt_service_bus/topics.rb @@ -32,8 +32,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_by_namespace(resource_group_name, namespace_name, custom_headers = nil) - first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers) + def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil) + first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers = nil) - list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil) + list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_async(resource_group_name, namespace_name, custom_headers = nil) + def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -75,6 +75,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -132,8 +133,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBTopic] operation results. # - def create_or_update(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, namespace_name, topic_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -150,8 +151,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, namespace_name, topic_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers:custom_headers).value! end # @@ -167,7 +168,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, namespace_name, topic_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -182,7 +183,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -246,8 +246,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, namespace_name, topic_name, custom_headers = nil) - response = delete_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def delete(resource_group_name, namespace_name, topic_name, custom_headers:nil) + response = delete_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! nil end @@ -263,8 +263,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers = nil) - delete_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def delete_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil) + delete_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! end # @@ -279,7 +279,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, namespace_name, topic_name, custom_headers = nil) + def delete_async(resource_group_name, namespace_name, topic_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -293,6 +293,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -339,8 +340,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBTopic] operation results. # - def get(resource_group_name, namespace_name, topic_name, custom_headers = nil) - response = get_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def get(resource_group_name, namespace_name, topic_name, custom_headers:nil) + response = get_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -356,8 +357,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers = nil) - get_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def get_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil) + get_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! end # @@ -372,7 +373,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, namespace_name, topic_name, custom_headers = nil) + def get_async(resource_group_name, namespace_name, topic_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -386,6 +387,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -442,8 +444,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Array] operation results. # - def list_authorization_rules(resource_group_name, namespace_name, topic_name, custom_headers = nil) - first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers) + def list_authorization_rules(resource_group_name, namespace_name, topic_name, custom_headers:nil) + first_page = list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers) first_page.get_all_items end @@ -459,8 +461,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers = nil) - list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def list_authorization_rules_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil) + list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! end # @@ -475,7 +477,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers = nil) + def list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -489,6 +491,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -547,8 +550,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBAuthorizationRule] operation results. # - def create_or_update_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) - response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) + response = create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -566,8 +569,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) - create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value! + def create_or_update_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) + create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -584,7 +587,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) + def create_or_update_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -602,7 +605,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -668,8 +670,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBAuthorizationRule] operation results. # - def get_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - response = get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + response = get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -686,8 +688,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def get_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -703,7 +705,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) + def get_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -720,6 +722,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -776,8 +779,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # will be added to the HTTP request. # # - def delete_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - response = delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + response = delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! nil end @@ -794,8 +797,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def delete_authorization_rule_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -811,7 +814,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) + def delete_authorization_rule_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -828,6 +831,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -875,8 +879,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def list_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - response = list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def list_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + response = list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -893,8 +897,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) - list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) + list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:custom_headers).value! end # @@ -910,7 +914,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers = nil) + def list_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -927,6 +931,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -986,8 +991,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [AccessKeys] operation results. # - def regenerate_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) - response = regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) + response = regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1006,8 +1011,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) - regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers).value! + def regenerate_keys_with_http_info(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) + regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -1025,7 +1030,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers = nil) + def regenerate_keys_async(resource_group_name, namespace_name, topic_name, authorization_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1043,7 +1048,6 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1106,8 +1110,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBTopicListResult] operation results. # - def list_by_namespace_next(next_page_link, custom_headers = nil) - response = list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next(next_page_link, custom_headers:nil) + response = list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1121,8 +1125,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_namespace_next_with_http_info(next_page_link, custom_headers = nil) - list_by_namespace_next_async(next_page_link, custom_headers).value! + def list_by_namespace_next_with_http_info(next_page_link, custom_headers:nil) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1135,11 +1139,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_namespace_next_async(next_page_link, custom_headers = nil) + def list_by_namespace_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1193,8 +1198,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [SBAuthorizationRuleListResult] operation results. # - def list_authorization_rules_next(next_page_link, custom_headers = nil) - response = list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next(next_page_link, custom_headers:nil) + response = list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1208,8 +1213,8 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_authorization_rules_next_with_http_info(next_page_link, custom_headers = nil) - list_authorization_rules_next_async(next_page_link, custom_headers).value! + def list_authorization_rules_next_with_http_info(next_page_link, custom_headers:nil) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1222,11 +1227,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_authorization_rules_next_async(next_page_link, custom_headers = nil) + def list_authorization_rules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1282,12 +1288,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [SBTopicListResult] which provide lazy access to pages of the # response. # - def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers = nil) - response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers).value! + def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil) + response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_namespace_next_async(next_page_link, custom_headers) + list_by_namespace_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1306,12 +1312,12 @@ module Azure::ServiceBus::Mgmt::V2017_04_01 # @return [SBAuthorizationRuleListResult] which provide lazy access to pages of # the response. # - def list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers = nil) - response = list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers).value! + def list_authorization_rules_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:nil) + response = list_authorization_rules_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_authorization_rules_next_async(next_page_link, custom_headers) + list_authorization_rules_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_bus/lib/profiles/latest/modules/servicebus_profile_module.rb b/management/azure_mgmt_service_bus/lib/profiles/latest/modules/servicebus_profile_module.rb index b2dbcfe19..c18c19143 100644 --- a/management/azure_mgmt_service_bus/lib/profiles/latest/modules/servicebus_profile_module.rb +++ b/management/azure_mgmt_service_bus/lib/profiles/latest/modules/servicebus_profile_module.rb @@ -89,21 +89,21 @@ module Azure::ServiceBus::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::ServiceBus::Mgmt::V2017_04_01::ServiceBusManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ServiceBus::Mgmt::V2017_04_01::ServiceBusManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @namespaces = client_0.namespaces - @disaster_recovery_configs = client_0.disaster_recovery_configs - @queues = client_0.queues - @topics = client_0.topics - @subscriptions = client_0.subscriptions - @rules = client_0.rules - @regions = client_0.regions - @premium_messaging_regions_operations = client_0.premium_messaging_regions_operations - @event_hubs = client_0.event_hubs + add_telemetry(@client_0) + @operations = @client_0.operations + @namespaces = @client_0.namespaces + @disaster_recovery_configs = @client_0.disaster_recovery_configs + @queues = @client_0.queues + @topics = @client_0.topics + @subscriptions = @client_0.subscriptions + @rules = @client_0.rules + @regions = @client_0.regions + @premium_messaging_regions_operations = @client_0.premium_messaging_regions_operations + @event_hubs = @client_0.event_hubs @model_classes = ModelClasses.new end @@ -113,6 +113,14 @@ module Azure::ServiceBus::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/cluster_versions.rb b/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/cluster_versions.rb index 0aca63c2b..f10295eb0 100644 --- a/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/cluster_versions.rb +++ b/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/cluster_versions.rb @@ -31,8 +31,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(location, custom_headers = nil) - first_page = list_as_lazy(location, custom_headers) + def list(location, custom_headers:nil) + first_page = list_as_lazy(location, custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(location, custom_headers = nil) - list_async(location, custom_headers).value! + def list_with_http_info(location, custom_headers:nil) + list_async(location, custom_headers:custom_headers).value! end # @@ -60,13 +60,14 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(location, custom_headers = nil) + def list_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -123,8 +124,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_by_environment(location, environment, custom_headers = nil) - first_page = list_by_environment_as_lazy(location, environment, custom_headers) + def list_by_environment(location, environment, custom_headers:nil) + first_page = list_by_environment_as_lazy(location, environment, custom_headers:custom_headers) first_page.get_all_items end @@ -140,8 +141,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_environment_with_http_info(location, environment, custom_headers = nil) - list_by_environment_async(location, environment, custom_headers).value! + def list_by_environment_with_http_info(location, environment, custom_headers:nil) + list_by_environment_async(location, environment, custom_headers:custom_headers).value! end # @@ -156,7 +157,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_environment_async(location, environment, custom_headers = nil) + def list_by_environment_async(location, environment, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'environment is nil' if environment.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -164,6 +165,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -221,8 +223,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [ClusterCodeVersionsResult] operation results. # - def get(location, environment, cluster_version, custom_headers = nil) - response = get_async(location, environment, cluster_version, custom_headers).value! + def get(location, environment, cluster_version, custom_headers:nil) + response = get_async(location, environment, cluster_version, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -239,8 +241,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(location, environment, cluster_version, custom_headers = nil) - get_async(location, environment, cluster_version, custom_headers).value! + def get_with_http_info(location, environment, cluster_version, custom_headers:nil) + get_async(location, environment, cluster_version, custom_headers:custom_headers).value! end # @@ -256,7 +258,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(location, environment, cluster_version, custom_headers = nil) + def get_async(location, environment, cluster_version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'environment is nil' if environment.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -265,6 +267,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -320,8 +323,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_by_version(location, cluster_version, custom_headers = nil) - first_page = list_by_version_as_lazy(location, cluster_version, custom_headers) + def list_by_version(location, cluster_version, custom_headers:nil) + first_page = list_by_version_as_lazy(location, cluster_version, custom_headers:custom_headers) first_page.get_all_items end @@ -336,8 +339,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_version_with_http_info(location, cluster_version, custom_headers = nil) - list_by_version_async(location, cluster_version, custom_headers).value! + def list_by_version_with_http_info(location, cluster_version, custom_headers:nil) + list_by_version_async(location, cluster_version, custom_headers:custom_headers).value! end # @@ -351,7 +354,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_version_async(location, cluster_version, custom_headers = nil) + def list_by_version_async(location, cluster_version, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -359,6 +362,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -413,8 +417,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [ClusterCodeVersionsListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -428,8 +432,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -442,11 +446,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,8 +505,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [ClusterCodeVersionsListResult] operation results. # - def list_by_environment_next(next_page_link, custom_headers = nil) - response = list_by_environment_next_async(next_page_link, custom_headers).value! + def list_by_environment_next(next_page_link, custom_headers:nil) + response = list_by_environment_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -515,8 +520,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_environment_next_with_http_info(next_page_link, custom_headers = nil) - list_by_environment_next_async(next_page_link, custom_headers).value! + def list_by_environment_next_with_http_info(next_page_link, custom_headers:nil) + list_by_environment_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -529,11 +534,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_environment_next_async(next_page_link, custom_headers = nil) + def list_by_environment_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -587,8 +593,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [ClusterCodeVersionsListResult] operation results. # - def list_by_version_next(next_page_link, custom_headers = nil) - response = list_by_version_next_async(next_page_link, custom_headers).value! + def list_by_version_next(next_page_link, custom_headers:nil) + response = list_by_version_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -602,8 +608,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_version_next_with_http_info(next_page_link, custom_headers = nil) - list_by_version_next_async(next_page_link, custom_headers).value! + def list_by_version_next_with_http_info(next_page_link, custom_headers:nil) + list_by_version_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -616,11 +622,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_version_next_async(next_page_link, custom_headers = nil) + def list_by_version_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -675,12 +682,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # @return [ClusterCodeVersionsListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(location, custom_headers = nil) - response = list_async(location, custom_headers).value! + def list_as_lazy(location, custom_headers:nil) + response = list_async(location, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -699,12 +706,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # @return [ClusterCodeVersionsListResult] which provide lazy access to pages of # the response. # - def list_by_environment_as_lazy(location, environment, custom_headers = nil) - response = list_by_environment_async(location, environment, custom_headers).value! + def list_by_environment_as_lazy(location, environment, custom_headers:nil) + response = list_by_environment_async(location, environment, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_environment_next_async(next_page_link, custom_headers) + list_by_environment_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -722,12 +729,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # @return [ClusterCodeVersionsListResult] which provide lazy access to pages of # the response. # - def list_by_version_as_lazy(location, cluster_version, custom_headers = nil) - response = list_by_version_async(location, cluster_version, custom_headers).value! + def list_by_version_as_lazy(location, cluster_version, custom_headers:nil) + response = list_by_version_async(location, cluster_version, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_version_next_async(next_page_link, custom_headers) + list_by_version_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/clusters.rb b/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/clusters.rb index 52f19a7a8..af87ac3a6 100644 --- a/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/clusters.rb +++ b/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/clusters.rb @@ -35,8 +35,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Cluster] operation results. # - def update(resource_group_name, cluster_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, cluster_name, parameters, custom_headers).value! + def update(resource_group_name, cluster_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,9 +53,9 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, cluster_name, parameters, custom_headers = nil) + def update_async(resource_group_name, cluster_name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -82,8 +82,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Cluster] operation results. # - def get(resource_group_name, cluster_name, custom_headers = nil) - response = get_async(resource_group_name, cluster_name, custom_headers).value! + def get(resource_group_name, cluster_name, custom_headers:nil) + response = get_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -98,8 +98,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, cluster_name, custom_headers = nil) - get_async(resource_group_name, cluster_name, custom_headers).value! + def get_with_http_info(resource_group_name, cluster_name, custom_headers:nil) + get_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! end # @@ -113,7 +113,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, cluster_name, custom_headers = nil) + def get_async(resource_group_name, cluster_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -121,6 +121,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -177,8 +178,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Cluster] operation results. # - def create(resource_group_name, cluster_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, cluster_name, parameters, custom_headers).value! + def create(resource_group_name, cluster_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -193,9 +194,9 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, cluster_name, parameters, custom_headers = nil) + def create_async(resource_group_name, cluster_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, cluster_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -221,8 +222,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def delete(resource_group_name, cluster_name, custom_headers = nil) - response = delete_async(resource_group_name, cluster_name, custom_headers).value! + def delete(resource_group_name, cluster_name, custom_headers:nil) + response = delete_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! nil end @@ -237,8 +238,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, cluster_name, custom_headers = nil) - delete_async(resource_group_name, cluster_name, custom_headers).value! + def delete_with_http_info(resource_group_name, cluster_name, custom_headers:nil) + delete_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! end # @@ -252,7 +253,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, cluster_name, custom_headers = nil) + def delete_async(resource_group_name, cluster_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -260,6 +261,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -304,8 +306,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -319,8 +321,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -333,13 +335,14 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +395,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -405,8 +408,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -417,12 +420,13 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -481,8 +485,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Cluster] operation results. # - def begin_update(resource_group_name, cluster_name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers).value! + def begin_update(resource_group_name, cluster_name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -500,8 +504,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, cluster_name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! end # @@ -518,7 +522,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, cluster_name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -527,7 +531,6 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -592,8 +595,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Cluster] operation results. # - def begin_create(resource_group_name, cluster_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, cluster_name, parameters, custom_headers).value! + def begin_create(resource_group_name, cluster_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -609,8 +612,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, cluster_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, cluster_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value! end # @@ -625,7 +628,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, cluster_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, cluster_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'cluster_name is nil' if cluster_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -634,7 +637,6 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -697,8 +699,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [ClusterListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -712,8 +714,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -726,11 +728,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -784,8 +787,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [ClusterListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -799,8 +802,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -813,11 +816,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -872,12 +876,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # @return [ClusterListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -892,12 +896,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # @return [ClusterListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/operations.rb b/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/operations.rb index 551001159..e38a3362b 100644 --- a/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/operations.rb +++ b/management/azure_mgmt_service_fabric/lib/2016-09-01/generated/azure_mgmt_service_fabric/operations.rb @@ -29,8 +29,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_service_fabric/lib/profiles/latest/modules/servicefabric_profile_module.rb b/management/azure_mgmt_service_fabric/lib/profiles/latest/modules/servicefabric_profile_module.rb index 06c16bdc2..799c9c3db 100644 --- a/management/azure_mgmt_service_fabric/lib/profiles/latest/modules/servicefabric_profile_module.rb +++ b/management/azure_mgmt_service_fabric/lib/profiles/latest/modules/servicefabric_profile_module.rb @@ -57,14 +57,14 @@ module Azure::ServiceFabric::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::ServiceFabric::Mgmt::V2016_09_01::ServiceFabricManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::ServiceFabric::Mgmt::V2016_09_01::ServiceFabricManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @clusters = client_0.clusters - @cluster_versions = client_0.cluster_versions - @operations = client_0.operations + add_telemetry(@client_0) + @clusters = @client_0.clusters + @cluster_versions = @client_0.cluster_versions + @operations = @client_0.operations @model_classes = ModelClasses.new end @@ -74,6 +74,14 @@ module Azure::ServiceFabric::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb index 21134ab32..ef9236bd3 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_policies.rb @@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [BackupLongTermRetentionPolicy] operation results. # - def get(resource_group_name, server_name, database_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -82,6 +82,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -141,8 +142,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [BackupLongTermRetentionPolicy] operation results. # - def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -160,9 +161,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -193,8 +194,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [BackupLongTermRetentionPolicy] operation results. # - def begin_create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -213,8 +214,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -232,7 +233,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -243,7 +244,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb index 4a33e023a..46e373e3e 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/backup_long_term_retention_vaults.rb @@ -36,8 +36,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [BackupLongTermRetentionVault] operation results. # - def get(resource_group_name, server_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, custom_headers).value! + def get(resource_group_name, server_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, custom_headers = nil) - get_async(resource_group_name, server_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, custom_headers:nil) + get_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, custom_headers = nil) + def get_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -78,6 +78,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -136,8 +137,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [BackupLongTermRetentionVault] operation results. # - def create_or_update(resource_group_name, server_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -154,9 +155,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -186,8 +187,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [BackupLongTermRetentionVault] operation results. # - def begin_create_or_update(resource_group_name, server_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -205,8 +206,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! end # @@ -223,7 +224,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -233,7 +234,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/capabilities.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/capabilities.rb index 8e2bef0e7..713797bb1 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/capabilities.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/capabilities.rb @@ -33,8 +33,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [LocationCapabilities] operation results. # - def list_by_location(location_id, custom_headers = nil) - response = list_by_location_async(location_id, custom_headers).value! + def list_by_location(location_id, custom_headers:nil) + response = list_by_location_async(location_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -47,8 +47,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_location_with_http_info(location_id, custom_headers = nil) - list_by_location_async(location_id, custom_headers).value! + def list_by_location_with_http_info(location_id, custom_headers:nil) + list_by_location_async(location_id, custom_headers:custom_headers).value! end # @@ -60,13 +60,14 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_location_async(location_id, custom_headers = nil) + def list_by_location_async(location_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'location_id is nil' if location_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb index ff55f2924..0d6e39b13 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_policies.rb @@ -39,8 +39,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DataMaskingPolicy] operation results. # - def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -59,8 +59,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -89,7 +89,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -155,8 +154,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DataMaskingPolicy] operation results. # - def get(resource_group_name, server_name, database_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -173,8 +172,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -190,7 +189,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -200,6 +199,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb index dd39ec6bc..8da1c188e 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/data_masking_rules.rb @@ -40,8 +40,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DataMaskingRule] operation results. # - def create_or_update(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -61,8 +61,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, data_masking_rule_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -93,7 +93,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -169,8 +168,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DataMaskingRuleListResult] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -187,8 +186,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -204,7 +203,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -214,6 +213,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_advisors.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_advisors.rb index 548cc5c18..9e639ae25 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_advisors.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_advisors.rb @@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [AdvisorListResult] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -81,6 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -139,8 +140,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Advisor] operation results. # - def get(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -158,8 +159,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value! end # @@ -176,7 +177,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -186,6 +187,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -245,8 +247,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Advisor] operation results. # - def create_or_update(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -265,8 +267,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:custom_headers).value! end # @@ -284,7 +286,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -295,7 +297,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_connection_policies.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_connection_policies.rb index 4ba9d9f46..fb499df2f 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_connection_policies.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_connection_policies.rb @@ -39,8 +39,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DatabaseConnectionPolicy] operation results. # - def get(resource_group_name, server_name, database_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -59,8 +59,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -88,6 +88,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -148,8 +149,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DatabaseConnectionPolicy] operation results. # - def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -169,8 +170,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -189,7 +190,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -200,7 +201,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_table_auditing_policies.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_table_auditing_policies.rb index a38e4b926..6801f3716 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_table_auditing_policies.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_table_auditing_policies.rb @@ -39,8 +39,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DatabaseTableAuditingPolicy] operation results. # - def get(resource_group_name, server_name, database_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -59,8 +59,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -88,6 +88,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -149,8 +150,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DatabaseTableAuditingPolicy] operation results. # - def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -171,8 +172,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -192,7 +193,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -203,7 +204,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -281,8 +281,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DatabaseTableAuditingPolicyListResult] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -301,8 +301,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -320,7 +320,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -329,6 +329,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb index 613d691dd..9d0a60b74 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_threat_detection_policies.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DatabaseSecurityAlertPolicy] operation results. # - def get(resource_group_name, server_name, database_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? @@ -85,6 +85,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -145,8 +146,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DatabaseSecurityAlertPolicy] operation results. # - def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -166,8 +167,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -186,7 +187,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? @@ -197,7 +198,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_usages.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_usages.rb index 9c8afaa2d..714a3163b 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_usages.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/database_usages.rb @@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DatabaseUsageListResult] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb index d12fda5fc..254241a9b 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ImportExportResponse] operation results. # - def import(resource_group_name, server_name, parameters, custom_headers = nil) - response = import_async(resource_group_name, server_name, parameters, custom_headers).value! + def import(resource_group_name, server_name, parameters, custom_headers:nil) + response = import_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -56,9 +56,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def import_async(resource_group_name, server_name, parameters, custom_headers = nil) + def import_async(resource_group_name, server_name, parameters, custom_headers:nil) # Send request - promise = begin_import_async(resource_group_name, server_name, parameters, custom_headers) + promise = begin_import_async(resource_group_name, server_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -90,8 +90,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ImportExportResponse] operation results. # - def create_import_operation(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_import_operation(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -109,9 +109,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) # Send request - promise = begin_create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers) + promise = begin_create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -142,8 +142,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ImportExportResponse] operation results. # - def export(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = export_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def export(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = export_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -161,9 +161,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def export_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def export_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) # Send request - promise = begin_export_async(resource_group_name, server_name, database_name, parameters, custom_headers) + promise = begin_export_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -194,8 +194,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MetricListResult] operation results. # - def list_metrics(resource_group_name, server_name, database_name, filter, custom_headers = nil) - response = list_metrics_async(resource_group_name, server_name, database_name, filter, custom_headers).value! + def list_metrics(resource_group_name, server_name, database_name, filter, custom_headers:nil) + response = list_metrics_async(resource_group_name, server_name, database_name, filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -214,8 +214,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_with_http_info(resource_group_name, server_name, database_name, filter, custom_headers = nil) - list_metrics_async(resource_group_name, server_name, database_name, filter, custom_headers).value! + def list_metrics_with_http_info(resource_group_name, server_name, database_name, filter, custom_headers:nil) + list_metrics_async(resource_group_name, server_name, database_name, filter, custom_headers:custom_headers).value! end # @@ -233,7 +233,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_async(resource_group_name, server_name, database_name, filter, custom_headers = nil) + def list_metrics_async(resource_group_name, server_name, database_name, filter, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -243,6 +243,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -300,8 +301,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MetricDefinitionListResult] operation results. # - def list_metric_definitions(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_metric_definitions_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_metric_definitions(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_metric_definitions_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -318,8 +319,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_definitions_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_metric_definitions_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_metric_definitions_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_metric_definitions_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -335,7 +336,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definitions_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_metric_definitions_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -344,6 +345,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -399,8 +401,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def pause(resource_group_name, server_name, database_name, custom_headers = nil) - response = pause_async(resource_group_name, server_name, database_name, custom_headers).value! + def pause(resource_group_name, server_name, database_name, custom_headers:nil) + response = pause_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! nil end @@ -416,9 +418,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def pause_async(resource_group_name, server_name, database_name, custom_headers = nil) + def pause_async(resource_group_name, server_name, database_name, custom_headers:nil) # Send request - promise = begin_pause_async(resource_group_name, server_name, database_name, custom_headers) + promise = begin_pause_async(resource_group_name, server_name, database_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -443,8 +445,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def resume(resource_group_name, server_name, database_name, custom_headers = nil) - response = resume_async(resource_group_name, server_name, database_name, custom_headers).value! + def resume(resource_group_name, server_name, database_name, custom_headers:nil) + response = resume_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! nil end @@ -460,9 +462,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def resume_async(resource_group_name, server_name, database_name, custom_headers = nil) + def resume_async(resource_group_name, server_name, database_name, custom_headers:nil) # Send request - promise = begin_resume_async(resource_group_name, server_name, database_name, custom_headers) + promise = begin_resume_async(resource_group_name, server_name, database_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -492,8 +494,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Database] operation results. # - def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -512,9 +514,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -545,8 +547,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Database] operation results. # - def update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -564,9 +566,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, server_name, database_name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -594,8 +596,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, server_name, database_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, database_name, custom_headers).value! + def delete(resource_group_name, server_name, database_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! nil end @@ -612,8 +614,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - delete_async(resource_group_name, server_name, database_name, custom_headers).value! + def delete_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + delete_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -629,7 +631,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, server_name, database_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -638,6 +640,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -688,8 +691,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Database] operation results. # - def get(resource_group_name, server_name, database_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, expand, custom_headers).value! + def get(resource_group_name, server_name, database_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -709,8 +712,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, expand:expand, custom_headers:custom_headers).value! end # @@ -729,7 +732,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -738,6 +741,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -799,8 +803,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DatabaseListResult] operation results. # - def list_by_server(resource_group_name, server_name, expand = nil, filter = nil, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, expand, filter, custom_headers).value! + def list_by_server(resource_group_name, server_name, expand:nil, filter:nil, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, expand:expand, filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -821,8 +825,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, expand = nil, filter = nil, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, expand, filter, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, expand:nil, filter:nil, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, expand:expand, filter:filter, custom_headers:custom_headers).value! end # @@ -842,7 +846,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, expand = nil, filter = nil, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, expand:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -850,6 +854,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -909,8 +914,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Database] operation results. # - def get_by_elastic_pool(resource_group_name, server_name, elastic_pool_name, database_name, custom_headers = nil) - response = get_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, database_name, custom_headers).value! + def get_by_elastic_pool(resource_group_name, server_name, elastic_pool_name, database_name, custom_headers:nil) + response = get_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -929,8 +934,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_elastic_pool_with_http_info(resource_group_name, server_name, elastic_pool_name, database_name, custom_headers = nil) - get_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, database_name, custom_headers).value! + def get_by_elastic_pool_with_http_info(resource_group_name, server_name, elastic_pool_name, database_name, custom_headers:nil) + get_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, database_name, custom_headers:custom_headers).value! end # @@ -948,7 +953,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, database_name, custom_headers = nil) + def get_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -958,6 +963,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1016,8 +1022,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DatabaseListResult] operation results. # - def list_by_elastic_pool(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - response = list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def list_by_elastic_pool(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + response = list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1035,8 +1041,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_elastic_pool_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def list_by_elastic_pool_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! end # @@ -1053,7 +1059,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) + def list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1062,6 +1068,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1121,8 +1128,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Database] operation results. # - def get_by_recommended_elastic_pool(resource_group_name, server_name, recommended_elastic_pool_name, database_name, custom_headers = nil) - response = get_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, database_name, custom_headers).value! + def get_by_recommended_elastic_pool(resource_group_name, server_name, recommended_elastic_pool_name, database_name, custom_headers:nil) + response = get_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1141,8 +1148,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_by_recommended_elastic_pool_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, database_name, custom_headers = nil) - get_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, database_name, custom_headers).value! + def get_by_recommended_elastic_pool_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, database_name, custom_headers:nil) + get_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, database_name, custom_headers:custom_headers).value! end # @@ -1160,7 +1167,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, database_name, custom_headers = nil) + def get_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1170,6 +1177,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1228,8 +1236,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [DatabaseListResult] operation results. # - def list_by_recommended_elastic_pool(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers = nil) - response = list_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers).value! + def list_by_recommended_elastic_pool(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil) + response = list_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1247,8 +1255,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_recommended_elastic_pool_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers = nil) - list_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers).value! + def list_by_recommended_elastic_pool_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil) + list_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:custom_headers).value! end # @@ -1265,7 +1273,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers = nil) + def list_by_recommended_elastic_pool_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1274,6 +1282,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1332,8 +1341,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ImportExportResponse] operation results. # - def begin_import(resource_group_name, server_name, parameters, custom_headers = nil) - response = begin_import_async(resource_group_name, server_name, parameters, custom_headers).value! + def begin_import(resource_group_name, server_name, parameters, custom_headers:nil) + response = begin_import_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1351,8 +1360,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_import_with_http_info(resource_group_name, server_name, parameters, custom_headers = nil) - begin_import_async(resource_group_name, server_name, parameters, custom_headers).value! + def begin_import_with_http_info(resource_group_name, server_name, parameters, custom_headers:nil) + begin_import_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! end # @@ -1369,7 +1378,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_import_async(resource_group_name, server_name, parameters, custom_headers = nil) + def begin_import_async(resource_group_name, server_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1378,7 +1387,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1447,8 +1455,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ImportExportResponse] operation results. # - def begin_create_import_operation(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = begin_create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def begin_create_import_operation(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = begin_create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1468,8 +1476,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_import_operation_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - begin_create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def begin_create_import_operation_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + begin_create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -1488,7 +1496,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def begin_create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1499,7 +1507,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1567,8 +1574,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ImportExportResponse] operation results. # - def begin_export(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = begin_export_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def begin_export(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = begin_export_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1587,8 +1594,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_export_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - begin_export_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def begin_export_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + begin_export_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -1606,7 +1613,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_export_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def begin_export_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1616,7 +1623,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1681,8 +1687,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # will be added to the HTTP request. # # - def begin_pause(resource_group_name, server_name, database_name, custom_headers = nil) - response = begin_pause_async(resource_group_name, server_name, database_name, custom_headers).value! + def begin_pause(resource_group_name, server_name, database_name, custom_headers:nil) + response = begin_pause_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! nil end @@ -1699,8 +1705,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_pause_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - begin_pause_async(resource_group_name, server_name, database_name, custom_headers).value! + def begin_pause_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + begin_pause_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -1716,7 +1722,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_pause_async(resource_group_name, server_name, database_name, custom_headers = nil) + def begin_pause_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1725,6 +1731,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1771,8 +1778,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # will be added to the HTTP request. # # - def begin_resume(resource_group_name, server_name, database_name, custom_headers = nil) - response = begin_resume_async(resource_group_name, server_name, database_name, custom_headers).value! + def begin_resume(resource_group_name, server_name, database_name, custom_headers:nil) + response = begin_resume_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! nil end @@ -1789,8 +1796,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_resume_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - begin_resume_async(resource_group_name, server_name, database_name, custom_headers).value! + def begin_resume_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + begin_resume_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -1806,7 +1813,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_resume_async(resource_group_name, server_name, database_name, custom_headers = nil) + def begin_resume_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1815,6 +1822,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1865,8 +1873,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Database] operation results. # - def begin_create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1886,8 +1894,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -1906,7 +1914,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1916,7 +1924,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1994,8 +2001,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Database] operation results. # - def begin_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def begin_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2014,8 +2021,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -2033,7 +2040,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -2043,7 +2050,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb index b2f022901..34fdef1ec 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_activities.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ElasticPoolActivityListResult] operation results. # - def list_by_elastic_pool(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - response = list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def list_by_elastic_pool(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + response = list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_elastic_pool_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def list_by_elastic_pool_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) + def list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb index c00c0291b..4b2d135f6 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pool_database_activities.rb @@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ElasticPoolDatabaseActivityListResult] operation results. # - def list_by_elastic_pool(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - response = list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def list_by_elastic_pool(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + response = list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_elastic_pool_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def list_by_elastic_pool_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) + def list_by_elastic_pool_async(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb index 1bfc07b1a..f6f3b835f 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb @@ -39,8 +39,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MetricListResult] operation results. # - def list_metrics(resource_group_name, server_name, elastic_pool_name, filter, custom_headers = nil) - response = list_metrics_async(resource_group_name, server_name, elastic_pool_name, filter, custom_headers).value! + def list_metrics(resource_group_name, server_name, elastic_pool_name, filter, custom_headers:nil) + response = list_metrics_async(resource_group_name, server_name, elastic_pool_name, filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -59,8 +59,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_with_http_info(resource_group_name, server_name, elastic_pool_name, filter, custom_headers = nil) - list_metrics_async(resource_group_name, server_name, elastic_pool_name, filter, custom_headers).value! + def list_metrics_with_http_info(resource_group_name, server_name, elastic_pool_name, filter, custom_headers:nil) + list_metrics_async(resource_group_name, server_name, elastic_pool_name, filter, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_async(resource_group_name, server_name, elastic_pool_name, filter, custom_headers = nil) + def list_metrics_async(resource_group_name, server_name, elastic_pool_name, filter, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -88,6 +88,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -145,8 +146,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MetricDefinitionListResult] operation results. # - def list_metric_definitions(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - response = list_metric_definitions_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def list_metric_definitions(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + response = list_metric_definitions_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -163,8 +164,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_definitions_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - list_metric_definitions_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def list_metric_definitions_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + list_metric_definitions_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! end # @@ -180,7 +181,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definitions_async(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) + def list_metric_definitions_async(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -189,6 +190,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -249,8 +251,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ElasticPool] operation results. # - def create_or_update(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -269,9 +271,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -302,8 +304,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ElasticPool] operation results. # - def update(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers).value! + def update(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,9 +323,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -351,8 +353,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def delete(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! nil end @@ -369,8 +371,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - delete_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def delete_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + delete_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! end # @@ -386,7 +388,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -395,6 +397,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -443,8 +446,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ElasticPool] operation results. # - def get(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def get(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -462,8 +465,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) - get_async(resource_group_name, server_name, elastic_pool_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) + get_async(resource_group_name, server_name, elastic_pool_name, custom_headers:custom_headers).value! end # @@ -480,7 +483,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, elastic_pool_name, custom_headers = nil) + def get_async(resource_group_name, server_name, elastic_pool_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -489,6 +492,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -545,8 +549,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ElasticPoolListResult] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -562,8 +566,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -578,7 +582,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -586,6 +590,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -646,8 +651,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ElasticPool] operation results. # - def begin_create_or_update(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -667,8 +672,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:custom_headers).value! end # @@ -687,7 +692,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -697,7 +702,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -775,8 +779,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ElasticPool] operation results. # - def begin_update(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers).value! + def begin_update(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -795,8 +799,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:custom_headers).value! end # @@ -814,7 +818,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -824,7 +828,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb index ab01e7ac2..135da0ec6 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/firewall_rules.rb @@ -39,8 +39,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [FirewallRule] operation results. # - def create_or_update(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -59,8 +59,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, firewall_rule_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -88,7 +88,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -163,8 +162,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, server_name, firewall_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers).value! + def delete(resource_group_name, server_name, firewall_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers:custom_headers).value! nil end @@ -181,8 +180,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, server_name, firewall_rule_name, custom_headers = nil) - delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers).value! + def delete_with_http_info(resource_group_name, server_name, firewall_rule_name, custom_headers:nil) + delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers:custom_headers).value! end # @@ -198,7 +197,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, firewall_rule_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -207,6 +206,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -254,8 +254,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [FirewallRule] operation results. # - def get(resource_group_name, server_name, firewall_rule_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, firewall_rule_name, custom_headers).value! + def get(resource_group_name, server_name, firewall_rule_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, firewall_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -272,8 +272,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, firewall_rule_name, custom_headers = nil) - get_async(resource_group_name, server_name, firewall_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, firewall_rule_name, custom_headers:nil) + get_async(resource_group_name, server_name, firewall_rule_name, custom_headers:custom_headers).value! end # @@ -289,7 +289,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, firewall_rule_name, custom_headers = nil) + def get_async(resource_group_name, server_name, firewall_rule_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -298,6 +298,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -354,8 +355,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [FirewallRuleListResult] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -371,8 +372,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -387,7 +388,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -395,6 +396,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb index 74464d496..5d0df92d2 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/geo_backup_policies.rb @@ -39,8 +39,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [GeoBackupPolicy] operation results. # - def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -59,8 +59,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -78,7 +78,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -89,7 +89,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -165,8 +164,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [GeoBackupPolicy] operation results. # - def get(resource_group_name, server_name, database_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -183,8 +182,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -200,7 +199,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -210,6 +209,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -267,8 +267,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [GeoBackupPolicyListResult] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -285,8 +285,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -302,7 +302,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -311,6 +311,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/operations.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/operations.rb index 021e1a802..6840be688 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/operations.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/operations.rb @@ -32,8 +32,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [OperationListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -45,8 +45,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,11 +57,12 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/queries.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/queries.rb index de6f8db53..026ad613f 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/queries.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/queries.rb @@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [TopQueriesListResult] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,6 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/query_statistics.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/query_statistics.rb index 7580909ba..5a231025e 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/query_statistics.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/query_statistics.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [QueryStatisticListResult] operation results. # - def list_by_query(resource_group_name, server_name, database_name, query_id, custom_headers = nil) - response = list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers).value! + def list_by_query(resource_group_name, server_name, database_name, query_id, custom_headers:nil) + response = list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_query_with_http_info(resource_group_name, server_name, database_name, query_id, custom_headers = nil) - list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers).value! + def list_by_query_with_http_info(resource_group_name, server_name, database_name, query_id, custom_headers:nil) + list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers = nil) + def list_by_query_async(resource_group_name, server_name, database_name, query_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -85,6 +85,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb index 89b9dfc99..723786de2 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/recommended_elastic_pools.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [RecommendedElasticPool] operation results. # - def get(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers).value! + def get(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers = nil) - get_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil) + get_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers = nil) + def get_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [RecommendedElasticPoolListResult] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -157,8 +158,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -173,7 +174,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -181,6 +182,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -239,8 +241,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [RecommendedElasticPoolListMetricsResult] operation results. # - def list_metrics(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers = nil) - response = list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers).value! + def list_metrics(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil) + response = list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -258,8 +260,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers = nil) - list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers).value! + def list_metrics_with_http_info(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil) + list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:custom_headers).value! end # @@ -276,7 +278,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers = nil) + def list_metrics_async(resource_group_name, server_name, recommended_elastic_pool_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -285,6 +287,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb index 8be0da169..0a6744982 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/recoverable_databases.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [RecoverableDatabase] operation results. # - def get(resource_group_name, server_name, database_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [RecoverableDatabaseListResult] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -157,8 +158,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -173,7 +174,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -181,6 +182,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb index 6bbab753d..cd1d45d10 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, server_name, database_name, link_id, custom_headers = nil) - response = delete_async(resource_group_name, server_name, database_name, link_id, custom_headers).value! + def delete(resource_group_name, server_name, database_name, link_id, custom_headers:nil) + response = delete_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value! nil end @@ -58,8 +58,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers = nil) - delete_async(resource_group_name, server_name, database_name, link_id, custom_headers).value! + def delete_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers:nil) + delete_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value! end # @@ -77,7 +77,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, server_name, database_name, link_id, custom_headers = nil) + def delete_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -87,6 +87,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ReplicationLink] operation results. # - def get(resource_group_name, server_name, database_name, link_id, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, link_id, custom_headers).value! + def get(resource_group_name, server_name, database_name, link_id, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -154,8 +155,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, link_id, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value! end # @@ -172,7 +173,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, link_id, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -182,6 +183,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -240,8 +242,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def failover(resource_group_name, server_name, database_name, link_id, custom_headers = nil) - response = failover_async(resource_group_name, server_name, database_name, link_id, custom_headers).value! + def failover(resource_group_name, server_name, database_name, link_id, custom_headers:nil) + response = failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value! nil end @@ -259,9 +261,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def failover_async(resource_group_name, server_name, database_name, link_id, custom_headers = nil) + def failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil) # Send request - promise = begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers) + promise = begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -289,8 +291,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def failover_allow_data_loss(resource_group_name, server_name, database_name, link_id, custom_headers = nil) - response = failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers).value! + def failover_allow_data_loss(resource_group_name, server_name, database_name, link_id, custom_headers:nil) + response = failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value! nil end @@ -308,9 +310,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers = nil) + def failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil) # Send request - promise = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers) + promise = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -337,8 +339,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ReplicationLinkListResult] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -355,8 +357,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -372,7 +374,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -381,6 +383,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -440,8 +443,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # will be added to the HTTP request. # # - def begin_failover(resource_group_name, server_name, database_name, link_id, custom_headers = nil) - response = begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers).value! + def begin_failover(resource_group_name, server_name, database_name, link_id, custom_headers:nil) + response = begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value! nil end @@ -461,8 +464,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_failover_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers = nil) - begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers).value! + def begin_failover_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers:nil) + begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value! end # @@ -481,7 +484,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers = nil) + def begin_failover_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -491,6 +494,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -540,8 +544,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # will be added to the HTTP request. # # - def begin_failover_allow_data_loss(resource_group_name, server_name, database_name, link_id, custom_headers = nil) - response = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers).value! + def begin_failover_allow_data_loss(resource_group_name, server_name, database_name, link_id, custom_headers:nil) + response = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value! nil end @@ -561,8 +565,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_failover_allow_data_loss_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers = nil) - begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers).value! + def begin_failover_allow_data_loss_with_http_info(resource_group_name, server_name, database_name, link_id, custom_headers:nil) + begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers).value! end # @@ -581,7 +585,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers = nil) + def begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -591,6 +595,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb index 3085e3282..64f24b236 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/restorable_dropped_databases.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [RestorableDroppedDatabase] operation results. # - def get(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers = nil) - response = get_async(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers).value! + def get(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers:nil) + response = get_async(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers = nil) - get_async(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers:nil) + get_async(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers = nil) + def get_async(resource_group_name, server_name, restorable_droppeded_database_id, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [RestorableDroppedDatabaseListResult] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -157,8 +158,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -173,7 +174,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -181,6 +182,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/restore_points.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/restore_points.rb index 31ae5d66d..1e90fee94 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/restore_points.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/restore_points.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [RestorePointListResult] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb index 150e600aa..c0600e217 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_azure_adadministrators.rb @@ -39,8 +39,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerAzureADAdministrator] operation results. # - def create_or_update(resource_group_name, server_name, properties, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, properties, custom_headers).value! + def create_or_update(resource_group_name, server_name, properties, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,9 +57,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, properties, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, properties, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -87,8 +87,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerAzureADAdministrator] operation results. # - def delete(resource_group_name, server_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, custom_headers).value! + def delete(resource_group_name, server_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -103,9 +103,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, server_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, server_name, custom_headers) + promise = begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -133,8 +133,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerAzureADAdministrator] operation results. # - def get(resource_group_name, server_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, custom_headers).value! + def get(resource_group_name, server_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -150,8 +150,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, custom_headers = nil) - get_async(resource_group_name, server_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, custom_headers:nil) + get_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -166,7 +166,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, custom_headers = nil) + def get_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -175,6 +175,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -231,8 +232,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerAdministratorListResult] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -248,8 +249,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -264,7 +265,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -272,6 +273,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -331,8 +333,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerAzureADAdministrator] operation results. # - def begin_create_or_update(resource_group_name, server_name, properties, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, properties, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -351,8 +353,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, properties, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, properties, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers:custom_headers).value! end # @@ -370,7 +372,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, properties, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -380,7 +382,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -465,8 +466,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerAzureADAdministrator] operation results. # - def begin_delete(resource_group_name, server_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, server_name, custom_headers).value! + def begin_delete(resource_group_name, server_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -482,8 +483,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, server_name, custom_headers = nil) - begin_delete_async(resource_group_name, server_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, server_name, custom_headers:nil) + begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -498,7 +499,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, server_name, custom_headers = nil) + def begin_delete_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -507,6 +508,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb index 5549c2c65..0858018ec 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_communication_links.rb @@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, server_name, communication_link_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, communication_link_name, custom_headers).value! + def delete(resource_group_name, server_name, communication_link_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, communication_link_name, custom_headers:custom_headers).value! nil end @@ -56,8 +56,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, server_name, communication_link_name, custom_headers = nil) - delete_async(resource_group_name, server_name, communication_link_name, custom_headers).value! + def delete_with_http_info(resource_group_name, server_name, communication_link_name, custom_headers:nil) + delete_async(resource_group_name, server_name, communication_link_name, custom_headers:custom_headers).value! end # @@ -74,7 +74,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, server_name, communication_link_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, communication_link_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -83,6 +83,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerCommunicationLink] operation results. # - def get(resource_group_name, server_name, communication_link_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, communication_link_name, custom_headers).value! + def get(resource_group_name, server_name, communication_link_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, communication_link_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -150,8 +151,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, communication_link_name, custom_headers = nil) - get_async(resource_group_name, server_name, communication_link_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, communication_link_name, custom_headers:nil) + get_async(resource_group_name, server_name, communication_link_name, custom_headers:custom_headers).value! end # @@ -168,7 +169,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, communication_link_name, custom_headers = nil) + def get_async(resource_group_name, server_name, communication_link_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -177,6 +178,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -237,8 +239,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerCommunicationLink] operation results. # - def create_or_update(resource_group_name, server_name, communication_link_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, communication_link_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -257,9 +259,9 @@ module Azure::SQL::Mgmt::V2014_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -287,8 +289,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerCommunicationLinkListResult] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -304,8 +306,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -320,7 +322,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -328,6 +330,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -388,8 +391,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerCommunicationLink] operation results. # - def begin_create_or_update(resource_group_name, server_name, communication_link_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, communication_link_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -409,8 +412,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, communication_link_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, communication_link_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:custom_headers).value! end # @@ -429,7 +432,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, communication_link_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -439,7 +442,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb index 916848ac5..a4baaf099 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_connection_policies.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerConnectionPolicy] operation results. # - def create_or_update(resource_group_name, server_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -85,7 +85,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -160,8 +159,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerConnectionPolicy] operation results. # - def get(resource_group_name, server_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, custom_headers).value! + def get(resource_group_name, server_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -177,8 +176,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, custom_headers = nil) - get_async(resource_group_name, server_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, custom_headers:nil) + get_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -193,7 +192,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, custom_headers = nil) + def get_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -202,6 +201,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_table_auditing_policies.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_table_auditing_policies.rb index bedec5699..8f840e602 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_table_auditing_policies.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_table_auditing_policies.rb @@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerTableAuditingPolicy] operation results. # - def get(resource_group_name, server_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, custom_headers).value! + def get(resource_group_name, server_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, custom_headers = nil) - get_async(resource_group_name, server_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, custom_headers:nil) + get_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, custom_headers = nil) + def get_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? table_auditing_policy_name = 'default' @@ -81,6 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerTableAuditingPolicy] operation results. # - def create_or_update(resource_group_name, server_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -160,8 +161,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! end # @@ -179,7 +180,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? table_auditing_policy_name = 'default' @@ -189,7 +190,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -265,8 +265,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerTableAuditingPolicyListResult] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -283,8 +283,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -300,7 +300,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -308,6 +308,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_usages.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_usages.rb index 2cc94fb86..da2d11583 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_usages.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/server_usages.rb @@ -36,8 +36,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerUsageListResult] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -77,6 +77,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/servers.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/servers.rb index 6359eb2c2..d85317756 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/servers.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/servers.rb @@ -32,8 +32,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -45,8 +45,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -121,8 +122,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Server] operation results. # - def create_or_update(resource_group_name, server_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -140,8 +141,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! end # @@ -158,7 +159,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -167,7 +168,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -244,8 +244,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Server] operation results. # - def update(resource_group_name, server_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, parameters, custom_headers).value! + def update(resource_group_name, server_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -263,8 +263,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, server_name, parameters, custom_headers = nil) - update_async(resource_group_name, server_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, server_name, parameters, custom_headers:nil) + update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! end # @@ -281,7 +281,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -290,7 +290,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -354,8 +353,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, server_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, custom_headers).value! + def delete(resource_group_name, server_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -371,8 +370,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, server_name, custom_headers = nil) - delete_async(resource_group_name, server_name, custom_headers).value! + def delete_with_http_info(resource_group_name, server_name, custom_headers:nil) + delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -387,7 +386,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, server_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -395,6 +394,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -441,8 +441,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Server] operation results. # - def get(resource_group_name, server_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, custom_headers).value! + def get(resource_group_name, server_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -458,8 +458,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, custom_headers = nil) - get_async(resource_group_name, server_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, custom_headers:nil) + get_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -474,7 +474,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, custom_headers = nil) + def get_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -482,6 +482,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -537,8 +538,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServerListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -553,8 +554,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -568,13 +569,14 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -629,8 +631,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [CheckNameAvailabilityResponse] operation results. # - def check_name_availability(parameters, custom_headers = nil) - response = check_name_availability_async(parameters, custom_headers).value! + def check_name_availability(parameters, custom_headers:nil) + response = check_name_availability_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -644,8 +646,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(parameters, custom_headers = nil) - check_name_availability_async(parameters, custom_headers).value! + def check_name_availability_with_http_info(parameters, custom_headers:nil) + check_name_availability_async(parameters, custom_headers:custom_headers).value! end # @@ -658,14 +660,13 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(parameters, custom_headers = nil) + def check_name_availability_async(parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/service_objectives.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/service_objectives.rb index b90b965de..5e08a88d6 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/service_objectives.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/service_objectives.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServiceObjective] operation results. # - def get(resource_group_name, server_name, service_objective_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, service_objective_name, custom_headers).value! + def get(resource_group_name, server_name, service_objective_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, service_objective_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, service_objective_name, custom_headers = nil) - get_async(resource_group_name, server_name, service_objective_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, service_objective_name, custom_headers:nil) + get_async(resource_group_name, server_name, service_objective_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, service_objective_name, custom_headers = nil) + def get_async(resource_group_name, server_name, service_objective_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -140,8 +141,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServiceObjectiveListResult] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -157,8 +158,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -173,7 +174,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -181,6 +182,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb index 1399895b9..b37fb8200 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/service_tier_advisors.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServiceTierAdvisor] operation results. # - def get(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, service_tier_advisor_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -85,6 +85,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -142,8 +143,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [ServiceTierAdvisorListResult] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -160,8 +161,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -177,7 +178,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -186,6 +187,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb index c1908eab4..d19877de9 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_activities.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [TransparentDataEncryptionActivityListResult] operation results. # - def list_by_configuration(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_configuration(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_configuration_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_configuration_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_configuration_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -85,6 +85,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb index 17be6dc7f..e8131d4dd 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryption_configurations.rb @@ -40,8 +40,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [TransparentDataEncryptionListResult] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -61,8 +61,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -90,6 +90,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb index 97dc75f82..deba8dacc 100644 --- a/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb +++ b/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/transparent_data_encryptions.rb @@ -40,8 +40,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [TransparentDataEncryption] operation results. # - def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -61,8 +61,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -92,7 +92,6 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -169,8 +168,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [TransparentDataEncryption] operation results. # - def get(resource_group_name, server_name, database_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -188,8 +187,8 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -206,7 +205,7 @@ module Azure::SQL::Mgmt::V2014_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -216,6 +215,7 @@ module Azure::SQL::Mgmt::V2014_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_advisors.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_advisors.rb index e6b0e7894..808021151 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_advisors.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_advisors.rb @@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -72,7 +72,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -81,6 +81,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -155,8 +156,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Advisor] operation results. # - def get(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -174,8 +175,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value! end # @@ -192,7 +193,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -202,6 +203,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -261,8 +263,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Advisor] operation results. # - def update(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers).value! + def update(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -281,8 +283,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers = nil) - update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil) + update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:custom_headers).value! end # @@ -300,7 +302,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, database_name, advisor_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -311,7 +313,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb index 39a1ad02f..29e64369e 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_blob_auditing_policies.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [DatabaseBlobAuditingPolicy] operation results. # - def get(resource_group_name, server_name, database_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -85,6 +85,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -145,8 +146,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [DatabaseBlobAuditingPolicy] operation results. # - def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -166,8 +167,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, server_name, database_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! end # @@ -186,7 +187,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -197,7 +198,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb index a04557fe0..d25f5d7d8 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/database_recommended_actions.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_database_advisor(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil) - response = list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value! + def list_by_database_advisor(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil) + response = list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_advisor_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil) - list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers).value! + def list_by_database_advisor_with_http_info(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil) + list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers = nil) + def list_by_database_advisor_async(resource_group_name, server_name, database_name, advisor_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -85,6 +85,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -161,8 +162,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [RecommendedAction] operation results. # - def get(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -182,8 +183,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers:custom_headers).value! end # @@ -202,7 +203,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -213,6 +214,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -275,8 +277,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [RecommendedAction] operation results. # - def update(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers).value! + def update(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -298,8 +300,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers = nil) - update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers:nil) + update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers:custom_headers).value! end # @@ -320,7 +322,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, database_name, advisor_name, recommended_action_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -332,7 +334,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb index 6a8b863b0..2139a8532 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/encryption_protectors.rb @@ -36,8 +36,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers) + def list_by_server(resource_group_name, server_name, custom_headers:nil) + first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers:custom_headers) first_page.get_all_items end @@ -53,8 +53,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -77,6 +77,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -133,8 +134,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [EncryptionProtector] operation results. # - def get(resource_group_name, server_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, custom_headers).value! + def get(resource_group_name, server_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -150,8 +151,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, custom_headers = nil) - get_async(resource_group_name, server_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, custom_headers:nil) + get_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -166,7 +167,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, custom_headers = nil) + def get_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? encryption_protector_name = 'current' @@ -175,6 +176,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -233,8 +235,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [EncryptionProtector] operation results. # - def create_or_update(resource_group_name, server_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -251,9 +253,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -283,8 +285,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [EncryptionProtector] operation results. # - def begin_create_or_update(resource_group_name, server_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -302,8 +304,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! end # @@ -320,7 +322,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? encryption_protector_name = 'current' @@ -330,7 +332,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -393,8 +394,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [EncryptionProtectorListResult] operation results. # - def list_by_server_next(next_page_link, custom_headers = nil) - response = list_by_server_next_async(next_page_link, custom_headers).value! + def list_by_server_next(next_page_link, custom_headers:nil) + response = list_by_server_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -408,8 +409,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_next_with_http_info(next_page_link, custom_headers = nil) - list_by_server_next_async(next_page_link, custom_headers).value! + def list_by_server_next_with_http_info(next_page_link, custom_headers:nil) + list_by_server_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -422,11 +423,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_next_async(next_page_link, custom_headers = nil) + def list_by_server_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -483,12 +485,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [EncryptionProtectorListResult] which provide lazy access to pages of # the response. # - def list_by_server_as_lazy(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_as_lazy(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_server_next_async(next_page_link, custom_headers) + list_by_server_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb index faacc33fb..19f9d0e63 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/failover_groups.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [FailoverGroup] operation results. # - def get(resource_group_name, server_name, failover_group_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, failover_group_name, custom_headers).value! + def get(resource_group_name, server_name, failover_group_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers = nil) - get_async(resource_group_name, server_name, failover_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers:nil) + get_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, failover_group_name, custom_headers = nil) + def get_async(resource_group_name, server_name, failover_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'failover_group_name is nil' if failover_group_name.nil? @@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -143,8 +144,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [FailoverGroup] operation results. # - def create_or_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -162,9 +163,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -192,8 +193,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, server_name, failover_group_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, failover_group_name, custom_headers).value! + def delete(resource_group_name, server_name, failover_group_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value! nil end @@ -210,9 +211,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, server_name, failover_group_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, failover_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -241,8 +242,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [FailoverGroup] operation results. # - def update(resource_group_name, server_name, failover_group_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value! + def update(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -260,9 +261,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -291,8 +292,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers) + def list_by_server(resource_group_name, server_name, custom_headers:nil) + first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers:custom_headers) first_page.get_all_items end @@ -309,8 +310,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -326,7 +327,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -334,6 +335,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -392,8 +394,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [FailoverGroup] operation results. # - def failover(resource_group_name, server_name, failover_group_name, custom_headers = nil) - response = failover_async(resource_group_name, server_name, failover_group_name, custom_headers).value! + def failover(resource_group_name, server_name, failover_group_name, custom_headers:nil) + response = failover_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -410,9 +412,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def failover_async(resource_group_name, server_name, failover_group_name, custom_headers = nil) + def failover_async(resource_group_name, server_name, failover_group_name, custom_headers:nil) # Send request - promise = begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers) + promise = begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -443,8 +445,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [FailoverGroup] operation results. # - def force_failover_allow_data_loss(resource_group_name, server_name, failover_group_name, custom_headers = nil) - response = force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers).value! + def force_failover_allow_data_loss(resource_group_name, server_name, failover_group_name, custom_headers:nil) + response = force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -461,9 +463,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers = nil) + def force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:nil) # Send request - promise = begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers) + promise = begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -494,8 +496,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [FailoverGroup] operation results. # - def begin_create_or_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -514,8 +516,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, failover_group_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers).value! end # @@ -533,7 +535,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'failover_group_name is nil' if failover_group_name.nil? @@ -543,7 +545,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -619,8 +620,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, server_name, failover_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers).value! + def begin_delete(resource_group_name, server_name, failover_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value! nil end @@ -638,8 +639,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value! end # @@ -656,7 +657,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, server_name, failover_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'failover_group_name is nil' if failover_group_name.nil? @@ -665,6 +666,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -714,8 +716,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [FailoverGroup] operation results. # - def begin_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value! + def begin_update(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -734,8 +736,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, server_name, failover_group_name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:custom_headers).value! end # @@ -753,7 +755,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, server_name, failover_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'failover_group_name is nil' if failover_group_name.nil? @@ -763,7 +765,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -830,8 +831,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [FailoverGroup] operation results. # - def begin_failover(resource_group_name, server_name, failover_group_name, custom_headers = nil) - response = begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers).value! + def begin_failover(resource_group_name, server_name, failover_group_name, custom_headers:nil) + response = begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -849,8 +850,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_failover_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers = nil) - begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers).value! + def begin_failover_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers:nil) + begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value! end # @@ -867,7 +868,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers = nil) + def begin_failover_async(resource_group_name, server_name, failover_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'failover_group_name is nil' if failover_group_name.nil? @@ -876,6 +877,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -935,8 +937,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [FailoverGroup] operation results. # - def begin_force_failover_allow_data_loss(resource_group_name, server_name, failover_group_name, custom_headers = nil) - response = begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers).value! + def begin_force_failover_allow_data_loss(resource_group_name, server_name, failover_group_name, custom_headers:nil) + response = begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -955,8 +957,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_force_failover_allow_data_loss_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers = nil) - begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers).value! + def begin_force_failover_allow_data_loss_with_http_info(resource_group_name, server_name, failover_group_name, custom_headers:nil) + begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:custom_headers).value! end # @@ -974,7 +976,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers = nil) + def begin_force_failover_allow_data_loss_async(resource_group_name, server_name, failover_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'failover_group_name is nil' if failover_group_name.nil? @@ -983,6 +985,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1037,8 +1040,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [FailoverGroupListResult] operation results. # - def list_by_server_next(next_page_link, custom_headers = nil) - response = list_by_server_next_async(next_page_link, custom_headers).value! + def list_by_server_next(next_page_link, custom_headers:nil) + response = list_by_server_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1052,8 +1055,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_next_with_http_info(next_page_link, custom_headers = nil) - list_by_server_next_async(next_page_link, custom_headers).value! + def list_by_server_next_with_http_info(next_page_link, custom_headers:nil) + list_by_server_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1066,11 +1069,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_next_async(next_page_link, custom_headers = nil) + def list_by_server_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1128,12 +1132,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [FailoverGroupListResult] which provide lazy access to pages of the # response. # - def list_by_server_as_lazy(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_as_lazy(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_server_next_async(next_page_link, custom_headers) + list_by_server_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/operations.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/operations.rb index c1bdecd2e..e8d1d6bc9 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/operations.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/operations.rb @@ -32,8 +32,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -45,8 +45,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,11 +57,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -115,8 +116,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -130,8 +131,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -144,11 +145,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -201,12 +203,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb index 4c97f9c0b..eaea6bc73 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_advisors.rb @@ -36,8 +36,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -77,6 +77,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -150,8 +151,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Advisor] operation results. # - def get(resource_group_name, server_name, advisor_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, advisor_name, custom_headers).value! + def get(resource_group_name, server_name, advisor_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, advisor_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -168,8 +169,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, advisor_name, custom_headers = nil) - get_async(resource_group_name, server_name, advisor_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, advisor_name, custom_headers:nil) + get_async(resource_group_name, server_name, advisor_name, custom_headers:custom_headers).value! end # @@ -185,7 +186,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, advisor_name, custom_headers = nil) + def get_async(resource_group_name, server_name, advisor_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'advisor_name is nil' if advisor_name.nil? @@ -194,6 +195,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -252,8 +254,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Advisor] operation results. # - def update(resource_group_name, server_name, advisor_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers).value! + def update(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -271,8 +273,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, server_name, advisor_name, parameters, custom_headers = nil) - update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil) + update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:custom_headers).value! end # @@ -289,7 +291,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, advisor_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'advisor_name is nil' if advisor_name.nil? @@ -299,7 +301,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb index a1a0b38c6..8299b2d2a 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb @@ -36,8 +36,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers) + def list_by_server(resource_group_name, server_name, custom_headers:nil) + first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers:custom_headers) first_page.get_all_items end @@ -53,8 +53,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -77,6 +77,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [ServerKey] operation results. # - def get(resource_group_name, server_name, key_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, key_name, custom_headers).value! + def get(resource_group_name, server_name, key_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -152,8 +153,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, key_name, custom_headers = nil) - get_async(resource_group_name, server_name, key_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, key_name, custom_headers:nil) + get_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value! end # @@ -169,7 +170,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, key_name, custom_headers = nil) + def get_async(resource_group_name, server_name, key_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'key_name is nil' if key_name.nil? @@ -178,6 +179,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +243,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [ServerKey] operation results. # - def create_or_update(resource_group_name, server_name, key_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, key_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -264,9 +266,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -293,8 +295,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, server_name, key_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, key_name, custom_headers).value! + def delete(resource_group_name, server_name, key_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value! nil end @@ -310,9 +312,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, server_name, key_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, key_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, server_name, key_name, custom_headers) + promise = begin_delete_async(resource_group_name, server_name, key_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -345,8 +347,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [ServerKey] operation results. # - def begin_create_or_update(resource_group_name, server_name, key_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, key_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -369,8 +371,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, key_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, key_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:custom_headers).value! end # @@ -392,7 +394,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, key_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'key_name is nil' if key_name.nil? @@ -402,7 +404,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -477,8 +478,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, server_name, key_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, server_name, key_name, custom_headers).value! + def begin_delete(resource_group_name, server_name, key_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value! nil end @@ -495,8 +496,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, server_name, key_name, custom_headers = nil) - begin_delete_async(resource_group_name, server_name, key_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, server_name, key_name, custom_headers:nil) + begin_delete_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value! end # @@ -512,7 +513,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, server_name, key_name, custom_headers = nil) + def begin_delete_async(resource_group_name, server_name, key_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'key_name is nil' if key_name.nil? @@ -521,6 +522,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -565,8 +567,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [ServerKeyListResult] operation results. # - def list_by_server_next(next_page_link, custom_headers = nil) - response = list_by_server_next_async(next_page_link, custom_headers).value! + def list_by_server_next(next_page_link, custom_headers:nil) + response = list_by_server_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -580,8 +582,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_next_with_http_info(next_page_link, custom_headers = nil) - list_by_server_next_async(next_page_link, custom_headers).value! + def list_by_server_next_with_http_info(next_page_link, custom_headers:nil) + list_by_server_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -594,11 +596,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_next_async(next_page_link, custom_headers = nil) + def list_by_server_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -655,12 +658,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [ServerKeyListResult] which provide lazy access to pages of the # response. # - def list_by_server_as_lazy(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_as_lazy(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_server_next_async(next_page_link, custom_headers) + list_by_server_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/servers.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/servers.rb index bcb008a2f..1bbed109b 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/servers.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/servers.rb @@ -32,8 +32,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -45,8 +45,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -118,8 +119,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -134,8 +135,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -149,13 +150,14 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -212,8 +214,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Server] operation results. # - def get(resource_group_name, server_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, custom_headers).value! + def get(resource_group_name, server_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -229,8 +231,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, custom_headers = nil) - get_async(resource_group_name, server_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, custom_headers:nil) + get_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -245,7 +247,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, custom_headers = nil) + def get_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -253,6 +255,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -310,8 +313,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Server] operation results. # - def create_or_update(resource_group_name, server_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -327,9 +330,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -355,8 +358,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, server_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, custom_headers).value! + def delete(resource_group_name, server_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -371,9 +374,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, server_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, server_name, custom_headers) + promise = begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -400,8 +403,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Server] operation results. # - def update(resource_group_name, server_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, parameters, custom_headers).value! + def update(resource_group_name, server_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -417,9 +420,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, server_name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -448,8 +451,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Server] operation results. # - def begin_create_or_update(resource_group_name, server_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -466,8 +469,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! end # @@ -483,7 +486,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -492,7 +495,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -566,8 +568,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, server_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, server_name, custom_headers).value! + def begin_delete(resource_group_name, server_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! nil end @@ -583,8 +585,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, server_name, custom_headers = nil) - begin_delete_async(resource_group_name, server_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, server_name, custom_headers:nil) + begin_delete_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -599,7 +601,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, server_name, custom_headers = nil) + def begin_delete_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -607,6 +609,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -654,8 +657,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Server] operation results. # - def begin_update(resource_group_name, server_name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def begin_update(resource_group_name, server_name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -672,8 +675,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, server_name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, server_name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, server_name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, server_name, parameters, custom_headers:custom_headers).value! end # @@ -689,7 +692,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, server_name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, server_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -698,7 +701,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -761,8 +763,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [ServerListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -776,8 +778,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -790,11 +792,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -848,8 +851,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [ServerListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -863,8 +866,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -877,11 +880,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -934,12 +938,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [ServerListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -957,12 +961,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [ServerListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb index 2044cd7f5..502b07e62 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_agents.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncAgent] operation results. # - def get(resource_group_name, server_name, sync_agent_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, sync_agent_name, custom_headers).value! + def get(resource_group_name, server_name, sync_agent_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers = nil) - get_async(resource_group_name, server_name, sync_agent_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers:nil) + get_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, sync_agent_name, custom_headers = nil) + def get_async(resource_group_name, server_name, sync_agent_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'sync_agent_name is nil' if sync_agent_name.nil? @@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -143,8 +144,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncAgent] operation results. # - def create_or_update(resource_group_name, server_name, sync_agent_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -162,9 +163,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -192,8 +193,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, server_name, sync_agent_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, sync_agent_name, custom_headers).value! + def delete(resource_group_name, server_name, sync_agent_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value! nil end @@ -210,9 +211,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, server_name, sync_agent_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers) + promise = begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -239,8 +240,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers) + def list_by_server(resource_group_name, server_name, custom_headers:nil) + first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers:custom_headers) first_page.get_all_items end @@ -257,8 +258,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -274,7 +275,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -282,6 +283,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -340,8 +342,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncAgentKeyProperties] operation results. # - def generate_key(resource_group_name, server_name, sync_agent_name, custom_headers = nil) - response = generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers).value! + def generate_key(resource_group_name, server_name, sync_agent_name, custom_headers:nil) + response = generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -359,8 +361,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_key_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers = nil) - generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers).value! + def generate_key_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers:nil) + generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value! end # @@ -377,7 +379,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers = nil) + def generate_key_async(resource_group_name, server_name, sync_agent_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'sync_agent_name is nil' if sync_agent_name.nil? @@ -386,6 +388,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -444,8 +447,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_linked_databases(resource_group_name, server_name, sync_agent_name, custom_headers = nil) - first_page = list_linked_databases_as_lazy(resource_group_name, server_name, sync_agent_name, custom_headers) + def list_linked_databases(resource_group_name, server_name, sync_agent_name, custom_headers:nil) + first_page = list_linked_databases_as_lazy(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers) first_page.get_all_items end @@ -463,8 +466,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_linked_databases_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers = nil) - list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers).value! + def list_linked_databases_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers:nil) + list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value! end # @@ -481,7 +484,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers = nil) + def list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'sync_agent_name is nil' if sync_agent_name.nil? @@ -490,6 +493,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -549,8 +553,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncAgent] operation results. # - def begin_create_or_update(resource_group_name, server_name, sync_agent_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -569,8 +573,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, sync_agent_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:custom_headers).value! end # @@ -588,7 +592,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, sync_agent_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'sync_agent_name is nil' if sync_agent_name.nil? @@ -598,7 +602,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -674,8 +677,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, server_name, sync_agent_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers).value! + def begin_delete(resource_group_name, server_name, sync_agent_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value! nil end @@ -693,8 +696,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers = nil) - begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, server_name, sync_agent_name, custom_headers:nil) + begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value! end # @@ -711,7 +714,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers = nil) + def begin_delete_async(resource_group_name, server_name, sync_agent_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'sync_agent_name is nil' if sync_agent_name.nil? @@ -720,6 +723,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -764,8 +768,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncAgentListResult] operation results. # - def list_by_server_next(next_page_link, custom_headers = nil) - response = list_by_server_next_async(next_page_link, custom_headers).value! + def list_by_server_next(next_page_link, custom_headers:nil) + response = list_by_server_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -779,8 +783,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_next_with_http_info(next_page_link, custom_headers = nil) - list_by_server_next_async(next_page_link, custom_headers).value! + def list_by_server_next_with_http_info(next_page_link, custom_headers:nil) + list_by_server_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -793,11 +797,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_next_async(next_page_link, custom_headers = nil) + def list_by_server_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -851,8 +856,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncAgentLinkedDatabaseListResult] operation results. # - def list_linked_databases_next(next_page_link, custom_headers = nil) - response = list_linked_databases_next_async(next_page_link, custom_headers).value! + def list_linked_databases_next(next_page_link, custom_headers:nil) + response = list_linked_databases_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -866,8 +871,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_linked_databases_next_with_http_info(next_page_link, custom_headers = nil) - list_linked_databases_next_async(next_page_link, custom_headers).value! + def list_linked_databases_next_with_http_info(next_page_link, custom_headers:nil) + list_linked_databases_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -880,11 +885,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_linked_databases_next_async(next_page_link, custom_headers = nil) + def list_linked_databases_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -942,12 +948,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [SyncAgentListResult] which provide lazy access to pages of the # response. # - def list_by_server_as_lazy(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_as_lazy(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_server_next_async(next_page_link, custom_headers) + list_by_server_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -968,12 +974,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [SyncAgentLinkedDatabaseListResult] which provide lazy access to # pages of the response. # - def list_linked_databases_as_lazy(resource_group_name, server_name, sync_agent_name, custom_headers = nil) - response = list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers).value! + def list_linked_databases_as_lazy(resource_group_name, server_name, sync_agent_name, custom_headers:nil) + response = list_linked_databases_async(resource_group_name, server_name, sync_agent_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_linked_databases_next_async(next_page_link, custom_headers) + list_linked_databases_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb index f4b9bc881..33e1558fe 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_groups.rb @@ -34,8 +34,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_sync_database_ids(location_name, custom_headers = nil) - first_page = list_sync_database_ids_as_lazy(location_name, custom_headers) + def list_sync_database_ids(location_name, custom_headers:nil) + first_page = list_sync_database_ids_as_lazy(location_name, custom_headers:custom_headers) first_page.get_all_items end @@ -49,8 +49,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_sync_database_ids_with_http_info(location_name, custom_headers = nil) - list_sync_database_ids_async(location_name, custom_headers).value! + def list_sync_database_ids_with_http_info(location_name, custom_headers:nil) + list_sync_database_ids_async(location_name, custom_headers:custom_headers).value! end # @@ -63,13 +63,14 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_sync_database_ids_async(location_name, custom_headers = nil) + def list_sync_database_ids_async(location_name, custom_headers:nil) fail ArgumentError, 'location_name is nil' if location_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -127,8 +128,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def refresh_hub_schema(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - response = refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def refresh_hub_schema(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + response = refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! nil end @@ -146,9 +147,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) + def refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) # Send request - promise = begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers) + promise = begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -177,8 +178,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_hub_schemas(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - first_page = list_hub_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers) + def list_hub_schemas(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + first_page = list_hub_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -197,8 +198,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_hub_schemas_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def list_hub_schemas_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! end # @@ -216,7 +217,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) + def list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -226,6 +227,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -290,8 +292,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_logs(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token = nil, custom_headers = nil) - first_page = list_logs_as_lazy(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token, custom_headers) + def list_logs(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:nil, custom_headers:nil) + first_page = list_logs_as_lazy(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:continuation_token, custom_headers:custom_headers) first_page.get_all_items end @@ -315,8 +317,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_logs_with_http_info(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token = nil, custom_headers = nil) - list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token, custom_headers).value! + def list_logs_with_http_info(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:nil, custom_headers:nil) + list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:continuation_token, custom_headers:custom_headers).value! end # @@ -339,7 +341,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token = nil, custom_headers = nil) + def list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -352,6 +354,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -410,8 +413,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def cancel_sync(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - response = cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def cancel_sync(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + response = cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! nil end @@ -430,8 +433,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def cancel_sync_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def cancel_sync_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! end # @@ -449,7 +452,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) + def cancel_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -459,6 +462,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -507,8 +511,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def trigger_sync(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - response = trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def trigger_sync(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + response = trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! nil end @@ -527,8 +531,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def trigger_sync_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def trigger_sync_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! end # @@ -546,7 +550,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) + def trigger_sync_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -556,6 +560,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -605,8 +610,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncGroup] operation results. # - def get(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -625,8 +630,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! end # @@ -644,7 +649,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -654,6 +659,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -714,8 +720,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncGroup] operation results. # - def create_or_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -734,9 +740,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -765,8 +771,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def delete(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! nil end @@ -784,9 +790,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers) + promise = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -816,8 +822,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncGroup] operation results. # - def update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value! + def update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -836,9 +842,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -868,8 +874,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - first_page = list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers) + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + first_page = list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers:custom_headers) first_page.get_all_items end @@ -887,8 +893,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -905,7 +911,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -914,6 +920,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -972,8 +979,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_refresh_hub_schema(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - response = begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def begin_refresh_hub_schema(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + response = begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! nil end @@ -992,8 +999,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_refresh_hub_schema_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def begin_refresh_hub_schema_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! end # @@ -1011,7 +1018,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) + def begin_refresh_hub_schema_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -1021,6 +1028,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1071,8 +1079,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncGroup] operation results. # - def begin_create_or_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1092,8 +1100,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value! end # @@ -1112,7 +1120,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -1123,7 +1131,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1200,8 +1207,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def begin_delete(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! nil end @@ -1220,8 +1227,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! end # @@ -1239,7 +1246,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) + def begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -1249,6 +1256,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1299,8 +1307,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncGroup] operation results. # - def begin_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value! + def begin_update(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1320,8 +1328,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:custom_headers).value! end # @@ -1340,7 +1348,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, server_name, database_name, sync_group_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -1351,7 +1359,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1414,8 +1421,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncDatabaseIdListResult] operation results. # - def list_sync_database_ids_next(next_page_link, custom_headers = nil) - response = list_sync_database_ids_next_async(next_page_link, custom_headers).value! + def list_sync_database_ids_next(next_page_link, custom_headers:nil) + response = list_sync_database_ids_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1429,8 +1436,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_sync_database_ids_next_with_http_info(next_page_link, custom_headers = nil) - list_sync_database_ids_next_async(next_page_link, custom_headers).value! + def list_sync_database_ids_next_with_http_info(next_page_link, custom_headers:nil) + list_sync_database_ids_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1443,11 +1450,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_sync_database_ids_next_async(next_page_link, custom_headers = nil) + def list_sync_database_ids_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1501,8 +1509,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncFullSchemaPropertiesListResult] operation results. # - def list_hub_schemas_next(next_page_link, custom_headers = nil) - response = list_hub_schemas_next_async(next_page_link, custom_headers).value! + def list_hub_schemas_next(next_page_link, custom_headers:nil) + response = list_hub_schemas_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1516,8 +1524,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_hub_schemas_next_with_http_info(next_page_link, custom_headers = nil) - list_hub_schemas_next_async(next_page_link, custom_headers).value! + def list_hub_schemas_next_with_http_info(next_page_link, custom_headers:nil) + list_hub_schemas_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1530,11 +1538,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_hub_schemas_next_async(next_page_link, custom_headers = nil) + def list_hub_schemas_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1588,8 +1597,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncGroupLogListResult] operation results. # - def list_logs_next(next_page_link, custom_headers = nil) - response = list_logs_next_async(next_page_link, custom_headers).value! + def list_logs_next(next_page_link, custom_headers:nil) + response = list_logs_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1603,8 +1612,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_logs_next_with_http_info(next_page_link, custom_headers = nil) - list_logs_next_async(next_page_link, custom_headers).value! + def list_logs_next_with_http_info(next_page_link, custom_headers:nil) + list_logs_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1617,11 +1626,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_logs_next_async(next_page_link, custom_headers = nil) + def list_logs_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1675,8 +1685,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncGroupListResult] operation results. # - def list_by_database_next(next_page_link, custom_headers = nil) - response = list_by_database_next_async(next_page_link, custom_headers).value! + def list_by_database_next(next_page_link, custom_headers:nil) + response = list_by_database_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1690,8 +1700,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_next_with_http_info(next_page_link, custom_headers = nil) - list_by_database_next_async(next_page_link, custom_headers).value! + def list_by_database_next_with_http_info(next_page_link, custom_headers:nil) + list_by_database_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1704,11 +1714,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_next_async(next_page_link, custom_headers = nil) + def list_by_database_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1763,12 +1774,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [SyncDatabaseIdListResult] which provide lazy access to pages of the # response. # - def list_sync_database_ids_as_lazy(location_name, custom_headers = nil) - response = list_sync_database_ids_async(location_name, custom_headers).value! + def list_sync_database_ids_as_lazy(location_name, custom_headers:nil) + response = list_sync_database_ids_async(location_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_sync_database_ids_next_async(next_page_link, custom_headers) + list_sync_database_ids_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1790,12 +1801,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [SyncFullSchemaPropertiesListResult] which provide lazy access to # pages of the response. # - def list_hub_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - response = list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def list_hub_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + response = list_hub_schemas_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_hub_schemas_next_async(next_page_link, custom_headers) + list_hub_schemas_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1822,12 +1833,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [SyncGroupLogListResult] which provide lazy access to pages of the # response. # - def list_logs_as_lazy(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token = nil, custom_headers = nil) - response = list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token, custom_headers).value! + def list_logs_as_lazy(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:nil, custom_headers:nil) + response = list_logs_async(resource_group_name, server_name, database_name, sync_group_name, start_time, end_time, type, continuation_token:continuation_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_logs_next_async(next_page_link, custom_headers) + list_logs_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1848,12 +1859,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [SyncGroupListResult] which provide lazy access to pages of the # response. # - def list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_database_next_async(next_page_link, custom_headers) + list_by_database_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb index 13a0a2def..3a9f0d116 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/sync_members.rb @@ -41,8 +41,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncMember] operation results. # - def get(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers).value! + def get(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -63,8 +63,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) - get_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) + get_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers).value! end # @@ -84,7 +84,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) + def get_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -95,6 +95,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -157,8 +158,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncMember] operation results. # - def create_or_update(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -179,9 +180,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -212,8 +213,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers).value! + def delete(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers).value! nil end @@ -233,9 +234,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers) + promise = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -267,8 +268,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncMember] operation results. # - def update(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers).value! + def update(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -289,9 +290,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers = nil) + def update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:nil) # Send request - promise = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers) + promise = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -322,8 +323,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_sync_group(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - first_page = list_by_sync_group_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers) + def list_by_sync_group(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + first_page = list_by_sync_group_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -342,8 +343,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_sync_group_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - list_by_sync_group_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def list_by_sync_group_with_http_info(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + list_by_sync_group_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! end # @@ -361,7 +362,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_sync_group_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) + def list_by_sync_group_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -371,6 +372,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -432,8 +434,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_member_schemas(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) - first_page = list_member_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers) + def list_member_schemas(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) + first_page = list_member_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers) first_page.get_all_items end @@ -454,8 +456,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_member_schemas_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) - list_member_schemas_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers).value! + def list_member_schemas_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) + list_member_schemas_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers).value! end # @@ -475,7 +477,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_member_schemas_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) + def list_member_schemas_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -486,6 +488,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -545,8 +548,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def refresh_member_schema(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) - response = refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers).value! + def refresh_member_schema(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) + response = refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers).value! nil end @@ -566,9 +569,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) + def refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) # Send request - promise = begin_refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers) + promise = begin_refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -600,8 +603,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncMember] operation results. # - def begin_create_or_update(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -623,8 +626,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:custom_headers).value! end # @@ -645,7 +648,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -657,7 +660,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -736,8 +738,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers).value! + def begin_delete(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers).value! nil end @@ -758,8 +760,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) - begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) + begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers).value! end # @@ -779,7 +781,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) + def begin_delete_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -790,6 +792,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -842,8 +845,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncMember] operation results. # - def begin_update(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers = nil) - response = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers).value! + def begin_update(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:nil) + response = begin_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -865,8 +868,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers = nil) - begin_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers).value! + def begin_update_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:nil) + begin_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:custom_headers).value! end # @@ -887,7 +890,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers = nil) + def begin_update_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -899,7 +902,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -968,8 +970,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_refresh_member_schema(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) - response = begin_refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers).value! + def begin_refresh_member_schema(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) + response = begin_refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers).value! nil end @@ -990,8 +992,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_refresh_member_schema_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) - begin_refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers).value! + def begin_refresh_member_schema_with_http_info(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) + begin_refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers).value! end # @@ -1011,7 +1013,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) + def begin_refresh_member_schema_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -1022,6 +1024,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1066,8 +1069,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncMemberListResult] operation results. # - def list_by_sync_group_next(next_page_link, custom_headers = nil) - response = list_by_sync_group_next_async(next_page_link, custom_headers).value! + def list_by_sync_group_next(next_page_link, custom_headers:nil) + response = list_by_sync_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1081,8 +1084,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_sync_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_sync_group_next_async(next_page_link, custom_headers).value! + def list_by_sync_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_sync_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1095,11 +1098,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_sync_group_next_async(next_page_link, custom_headers = nil) + def list_by_sync_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1153,8 +1157,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [SyncFullSchemaPropertiesListResult] operation results. # - def list_member_schemas_next(next_page_link, custom_headers = nil) - response = list_member_schemas_next_async(next_page_link, custom_headers).value! + def list_member_schemas_next(next_page_link, custom_headers:nil) + response = list_member_schemas_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1168,8 +1172,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_member_schemas_next_with_http_info(next_page_link, custom_headers = nil) - list_member_schemas_next_async(next_page_link, custom_headers).value! + def list_member_schemas_next_with_http_info(next_page_link, custom_headers:nil) + list_member_schemas_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1182,11 +1186,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_member_schemas_next_async(next_page_link, custom_headers = nil) + def list_member_schemas_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1246,12 +1251,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [SyncMemberListResult] which provide lazy access to pages of the # response. # - def list_by_sync_group_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers = nil) - response = list_by_sync_group_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers).value! + def list_by_sync_group_as_lazy(resource_group_name, server_name, database_name, sync_group_name, custom_headers:nil) + response = list_by_sync_group_async(resource_group_name, server_name, database_name, sync_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_sync_group_next_async(next_page_link, custom_headers) + list_by_sync_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1275,12 +1280,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [SyncFullSchemaPropertiesListResult] which provide lazy access to # pages of the response. # - def list_member_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers = nil) - response = list_member_schemas_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers).value! + def list_member_schemas_as_lazy(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:nil) + response = list_member_schemas_async(resource_group_name, server_name, database_name, sync_group_name, sync_member_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_member_schemas_next_async(next_page_link, custom_headers) + list_member_schemas_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb index 89c3cca8c..1854126d4 100644 --- a/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb +++ b/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/virtual_network_rules.rb @@ -38,8 +38,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkRule] operation results. # - def get(resource_group_name, server_name, virtual_network_rule_name, custom_headers = nil) - response = get_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers).value! + def get(resource_group_name, server_name, virtual_network_rule_name, custom_headers:nil) + response = get_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -57,8 +57,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, server_name, virtual_network_rule_name, custom_headers = nil) - get_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers).value! + def get_with_http_info(resource_group_name, server_name, virtual_network_rule_name, custom_headers:nil) + get_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers = nil) + def get_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'virtual_network_rule_name is nil' if virtual_network_rule_name.nil? @@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -144,8 +145,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkRule] operation results. # - def create_or_update(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,9 +165,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers) + promise = begin_create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -194,8 +195,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, server_name, virtual_network_rule_name, custom_headers = nil) - response = delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers).value! + def delete(resource_group_name, server_name, virtual_network_rule_name, custom_headers:nil) + response = delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers:custom_headers).value! nil end @@ -212,9 +213,9 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers = nil) + def delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers) + promise = begin_delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -240,8 +241,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_server(resource_group_name, server_name, custom_headers = nil) - first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers) + def list_by_server(resource_group_name, server_name, custom_headers:nil) + first_page = list_by_server_as_lazy(resource_group_name, server_name, custom_headers:custom_headers) first_page.get_all_items end @@ -257,8 +258,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_with_http_info(resource_group_name, server_name, custom_headers = nil) - list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_with_http_info(resource_group_name, server_name, custom_headers:nil) + list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! end # @@ -273,7 +274,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_async(resource_group_name, server_name, custom_headers = nil) + def list_by_server_async(resource_group_name, server_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -281,6 +282,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -341,8 +343,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkRule] operation results. # - def begin_create_or_update(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers).value! + def begin_create_or_update(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -362,8 +364,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers:nil) + begin_create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers:custom_headers).value! end # @@ -382,7 +384,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, server_name, virtual_network_rule_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'virtual_network_rule_name is nil' if virtual_network_rule_name.nil? @@ -392,7 +394,6 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -468,8 +469,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def begin_delete(resource_group_name, server_name, virtual_network_rule_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers).value! + def begin_delete(resource_group_name, server_name, virtual_network_rule_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers:custom_headers).value! nil end @@ -487,8 +488,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, server_name, virtual_network_rule_name, custom_headers = nil) - begin_delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, server_name, virtual_network_rule_name, custom_headers:nil) + begin_delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers:custom_headers).value! end # @@ -505,7 +506,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers = nil) + def begin_delete_async(resource_group_name, server_name, virtual_network_rule_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'virtual_network_rule_name is nil' if virtual_network_rule_name.nil? @@ -514,6 +515,7 @@ module Azure::SQL::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -558,8 +560,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [VirtualNetworkRuleListResult] operation results. # - def list_by_server_next(next_page_link, custom_headers = nil) - response = list_by_server_next_async(next_page_link, custom_headers).value! + def list_by_server_next(next_page_link, custom_headers:nil) + response = list_by_server_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -573,8 +575,8 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_server_next_with_http_info(next_page_link, custom_headers = nil) - list_by_server_next_async(next_page_link, custom_headers).value! + def list_by_server_next_with_http_info(next_page_link, custom_headers:nil) + list_by_server_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -587,11 +589,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_server_next_async(next_page_link, custom_headers = nil) + def list_by_server_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -648,12 +651,12 @@ module Azure::SQL::Mgmt::V2015_05_01_preview # @return [VirtualNetworkRuleListResult] which provide lazy access to pages of # the response. # - def list_by_server_as_lazy(resource_group_name, server_name, custom_headers = nil) - response = list_by_server_async(resource_group_name, server_name, custom_headers).value! + def list_by_server_as_lazy(resource_group_name, server_name, custom_headers:nil) + response = list_by_server_async(resource_group_name, server_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_server_next_async(next_page_link, custom_headers) + list_by_server_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb index 21bd88acb..8656c52c7 100644 --- a/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb +++ b/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/database_operations.rb @@ -37,8 +37,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview # will be added to the HTTP request. # # - def cancel(resource_group_name, server_name, database_name, operation_id, custom_headers = nil) - response = cancel_async(resource_group_name, server_name, database_name, operation_id, custom_headers).value! + def cancel(resource_group_name, server_name, database_name, operation_id, custom_headers:nil) + response = cancel_async(resource_group_name, server_name, database_name, operation_id, custom_headers:custom_headers).value! nil end @@ -56,8 +56,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def cancel_with_http_info(resource_group_name, server_name, database_name, operation_id, custom_headers = nil) - cancel_async(resource_group_name, server_name, database_name, operation_id, custom_headers).value! + def cancel_with_http_info(resource_group_name, server_name, database_name, operation_id, custom_headers:nil) + cancel_async(resource_group_name, server_name, database_name, operation_id, custom_headers:custom_headers).value! end # @@ -74,7 +74,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def cancel_async(resource_group_name, server_name, database_name, operation_id, custom_headers = nil) + def cancel_async(resource_group_name, server_name, database_name, operation_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -84,6 +84,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview # # @return [Array] operation results. # - def list_by_database(resource_group_name, server_name, database_name, custom_headers = nil) - first_page = list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers) + def list_by_database(resource_group_name, server_name, database_name, custom_headers:nil) + first_page = list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers:custom_headers) first_page.get_all_items end @@ -149,8 +150,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers = nil) - list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) + list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end # @@ -166,7 +167,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_async(resource_group_name, server_name, database_name, custom_headers = nil) + def list_by_database_async(resource_group_name, server_name, database_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'server_name is nil' if server_name.nil? fail ArgumentError, 'database_name is nil' if database_name.nil? @@ -175,6 +176,7 @@ module Azure::SQL::Mgmt::V2017_03_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -229,8 +231,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview # # @return [DatabaseOperationListResult] operation results. # - def list_by_database_next(next_page_link, custom_headers = nil) - response = list_by_database_next_async(next_page_link, custom_headers).value! + def list_by_database_next(next_page_link, custom_headers:nil) + response = list_by_database_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -244,8 +246,8 @@ module Azure::SQL::Mgmt::V2017_03_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_database_next_with_http_info(next_page_link, custom_headers = nil) - list_by_database_next_async(next_page_link, custom_headers).value! + def list_by_database_next_with_http_info(next_page_link, custom_headers:nil) + list_by_database_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -258,11 +260,12 @@ module Azure::SQL::Mgmt::V2017_03_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_database_next_async(next_page_link, custom_headers = nil) + def list_by_database_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -320,12 +323,12 @@ module Azure::SQL::Mgmt::V2017_03_01_preview # @return [DatabaseOperationListResult] which provide lazy access to pages of # the response. # - def list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers = nil) - response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers).value! + def list_by_database_as_lazy(resource_group_name, server_name, database_name, custom_headers:nil) + response = list_by_database_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_database_next_async(next_page_link, custom_headers) + list_by_database_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_sql/lib/profiles/latest/modules/sql_profile_module.rb b/management/azure_mgmt_sql/lib/profiles/latest/modules/sql_profile_module.rb index 27ff26e6c..6194ce98c 100644 --- a/management/azure_mgmt_sql/lib/profiles/latest/modules/sql_profile_module.rb +++ b/management/azure_mgmt_sql/lib/profiles/latest/modules/sql_profile_module.rb @@ -276,69 +276,69 @@ module Azure::SQL::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::SQL::Mgmt::V2014_04_01::SqlManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::SQL::Mgmt::V2014_04_01::SqlManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @backup_long_term_retention_policies = client_0.backup_long_term_retention_policies - @backup_long_term_retention_vaults = client_0.backup_long_term_retention_vaults - @restore_points = client_0.restore_points - @recoverable_databases = client_0.recoverable_databases - @restorable_dropped_databases = client_0.restorable_dropped_databases - @capabilities = client_0.capabilities - @server_connection_policies = client_0.server_connection_policies - @database_threat_detection_policies = client_0.database_threat_detection_policies - @data_masking_policies = client_0.data_masking_policies - @data_masking_rules = client_0.data_masking_rules - @transparent_data_encryption_configurations = client_0.transparent_data_encryption_configurations - @firewall_rules = client_0.firewall_rules - @geo_backup_policies = client_0.geo_backup_policies - @databases = client_0.databases - @elastic_pools = client_0.elastic_pools - @queries = client_0.queries - @query_statistics = client_0.query_statistics - @replication_links = client_0.replication_links - @server_azure_adadministrators = client_0.server_azure_adadministrators - @server_communication_links = client_0.server_communication_links - @service_objectives = client_0.service_objectives - @elastic_pool_activities = client_0.elastic_pool_activities - @elastic_pool_database_activities = client_0.elastic_pool_database_activities - @recommended_elastic_pools = client_0.recommended_elastic_pools - @service_tier_advisors = client_0.service_tier_advisors - @transparent_data_encryptions = client_0.transparent_data_encryptions - @transparent_data_encryption_activities = client_0.transparent_data_encryption_activities - @server_table_auditing_policies = client_0.server_table_auditing_policies - @database_table_auditing_policies = client_0.database_table_auditing_policies - @database_connection_policies = client_0.database_connection_policies - @server_usages = client_0.server_usages - @database_usages = client_0.database_usages + add_telemetry(@client_0) + @backup_long_term_retention_policies = @client_0.backup_long_term_retention_policies + @backup_long_term_retention_vaults = @client_0.backup_long_term_retention_vaults + @restore_points = @client_0.restore_points + @recoverable_databases = @client_0.recoverable_databases + @restorable_dropped_databases = @client_0.restorable_dropped_databases + @capabilities = @client_0.capabilities + @server_connection_policies = @client_0.server_connection_policies + @database_threat_detection_policies = @client_0.database_threat_detection_policies + @data_masking_policies = @client_0.data_masking_policies + @data_masking_rules = @client_0.data_masking_rules + @transparent_data_encryption_configurations = @client_0.transparent_data_encryption_configurations + @firewall_rules = @client_0.firewall_rules + @geo_backup_policies = @client_0.geo_backup_policies + @databases = @client_0.databases + @elastic_pools = @client_0.elastic_pools + @queries = @client_0.queries + @query_statistics = @client_0.query_statistics + @replication_links = @client_0.replication_links + @server_azure_adadministrators = @client_0.server_azure_adadministrators + @server_communication_links = @client_0.server_communication_links + @service_objectives = @client_0.service_objectives + @elastic_pool_activities = @client_0.elastic_pool_activities + @elastic_pool_database_activities = @client_0.elastic_pool_database_activities + @recommended_elastic_pools = @client_0.recommended_elastic_pools + @service_tier_advisors = @client_0.service_tier_advisors + @transparent_data_encryptions = @client_0.transparent_data_encryptions + @transparent_data_encryption_activities = @client_0.transparent_data_encryption_activities + @server_table_auditing_policies = @client_0.server_table_auditing_policies + @database_table_auditing_policies = @client_0.database_table_auditing_policies + @database_connection_policies = @client_0.database_connection_policies + @server_usages = @client_0.server_usages + @database_usages = @client_0.database_usages - client_1 = Azure::SQL::Mgmt::V2015_05_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::SQL::Mgmt::V2015_05_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @database_advisors = client_1.database_advisors - @database_recommended_actions = client_1.database_recommended_actions - @server_advisors = client_1.server_advisors - @database_blob_auditing_policies = client_1.database_blob_auditing_policies - @encryption_protectors = client_1.encryption_protectors - @failover_groups = client_1.failover_groups - @operations = client_1.operations - @server_keys = client_1.server_keys - @servers = client_1.servers - @sync_agents = client_1.sync_agents - @sync_groups = client_1.sync_groups - @sync_members = client_1.sync_members - @virtual_network_rules = client_1.virtual_network_rules + add_telemetry(@client_1) + @database_advisors = @client_1.database_advisors + @database_recommended_actions = @client_1.database_recommended_actions + @server_advisors = @client_1.server_advisors + @database_blob_auditing_policies = @client_1.database_blob_auditing_policies + @encryption_protectors = @client_1.encryption_protectors + @failover_groups = @client_1.failover_groups + @operations = @client_1.operations + @server_keys = @client_1.server_keys + @servers = @client_1.servers + @sync_agents = @client_1.sync_agents + @sync_groups = @client_1.sync_groups + @sync_members = @client_1.sync_members + @virtual_network_rules = @client_1.virtual_network_rules - client_2 = Azure::SQL::Mgmt::V2017_03_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) - if(client_2.respond_to?(:subscription_id)) - client_2.subscription_id = configurable.subscription_id + @client_2 = Azure::SQL::Mgmt::V2017_03_01_preview::SqlManagementClient.new(configurable.credentials, base_url, options) + if(@client_2.respond_to?(:subscription_id)) + @client_2.subscription_id = configurable.subscription_id end - add_telemetry(client_2) - @database_operations = client_2.database_operations + add_telemetry(@client_2) + @database_operations = @client_2.database_operations @model_classes = ModelClasses.new end @@ -348,6 +348,18 @@ module Azure::SQL::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_2.respond_to?method + @client_2.send(method, *args) + elsif @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/access_control_records.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/access_control_records.rb index 6b9d57424..e4e263c50 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/access_control_records.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/access_control_records.rb @@ -31,8 +31,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [AccessControlRecordList] operation results. # - def list_by_manager(resource_group_name, manager_name, custom_headers = nil) - response = list_by_manager_async(resource_group_name, manager_name, custom_headers).value! + def list_by_manager(resource_group_name, manager_name, custom_headers:nil) + response = list_by_manager_async(resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_manager_with_http_info(resource_group_name, manager_name, custom_headers = nil) - list_by_manager_async(resource_group_name, manager_name, custom_headers).value! + def list_by_manager_with_http_info(resource_group_name, manager_name, custom_headers:nil) + list_by_manager_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_manager_async(resource_group_name, manager_name, custom_headers = nil) + def list_by_manager_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -70,6 +70,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [AccessControlRecord] operation results. # - def get(access_control_record_name, resource_group_name, manager_name, custom_headers = nil) - response = get_async(access_control_record_name, resource_group_name, manager_name, custom_headers).value! + def get(access_control_record_name, resource_group_name, manager_name, custom_headers:nil) + response = get_async(access_control_record_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -143,8 +144,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(access_control_record_name, resource_group_name, manager_name, custom_headers = nil) - get_async(access_control_record_name, resource_group_name, manager_name, custom_headers).value! + def get_with_http_info(access_control_record_name, resource_group_name, manager_name, custom_headers:nil) + get_async(access_control_record_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(access_control_record_name, resource_group_name, manager_name, custom_headers = nil) + def get_async(access_control_record_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'access_control_record_name is nil' if access_control_record_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -170,6 +171,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -228,8 +230,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [AccessControlRecord] operation results. # - def create_or_update(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers).value! + def create_or_update(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -246,9 +248,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -274,8 +276,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(access_control_record_name, resource_group_name, manager_name, custom_headers = nil) - response = delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers).value! + def delete(access_control_record_name, resource_group_name, manager_name, custom_headers:nil) + response = delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -290,9 +292,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers = nil) + def delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers) + promise = begin_delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -320,8 +322,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [AccessControlRecord] operation results. # - def begin_create_or_update(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -339,8 +341,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update_with_http_info(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -357,7 +359,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_create_or_update_async(access_control_record_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'access_control_record_name is nil' if access_control_record_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -369,7 +371,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -433,8 +434,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_delete(access_control_record_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete(access_control_record_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -450,8 +451,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(access_control_record_name, resource_group_name, manager_name, custom_headers = nil) - begin_delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete_with_http_info(access_control_record_name, resource_group_name, manager_name, custom_headers:nil) + begin_delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -466,7 +467,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers = nil) + def begin_delete_async(access_control_record_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'access_control_record_name is nil' if access_control_record_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -477,6 +478,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/alerts.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/alerts.rb index c69a3d2a9..970287702 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/alerts.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/alerts.rb @@ -32,8 +32,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Array] operation results. # - def list_by_manager(resource_group_name, manager_name, filter = nil, custom_headers = nil) - first_page = list_by_manager_as_lazy(resource_group_name, manager_name, filter, custom_headers) + def list_by_manager(resource_group_name, manager_name, filter:nil, custom_headers:nil) + first_page = list_by_manager_as_lazy(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -48,8 +48,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_manager_with_http_info(resource_group_name, manager_name, filter = nil, custom_headers = nil) - list_by_manager_async(resource_group_name, manager_name, filter, custom_headers).value! + def list_by_manager_with_http_info(resource_group_name, manager_name, filter:nil, custom_headers:nil) + list_by_manager_async(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_manager_async(resource_group_name, manager_name, filter = nil, custom_headers = nil) + def list_by_manager_async(resource_group_name, manager_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -73,6 +73,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -128,8 +129,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def clear(parameters, resource_group_name, manager_name, custom_headers = nil) - response = clear_async(parameters, resource_group_name, manager_name, custom_headers).value! + def clear(parameters, resource_group_name, manager_name, custom_headers:nil) + response = clear_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -144,8 +145,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def clear_with_http_info(parameters, resource_group_name, manager_name, custom_headers = nil) - clear_async(parameters, resource_group_name, manager_name, custom_headers).value! + def clear_with_http_info(parameters, resource_group_name, manager_name, custom_headers:nil) + clear_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def clear_async(parameters, resource_group_name, manager_name, custom_headers = nil) + def clear_async(parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -170,7 +171,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -225,8 +225,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def send_test_email(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = send_test_email_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def send_test_email(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = send_test_email_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -243,8 +243,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def send_test_email_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - send_test_email_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def send_test_email_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + send_test_email_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -260,7 +260,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def send_test_email_async(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def send_test_email_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -272,7 +272,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -325,8 +324,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [AlertList] operation results. # - def list_by_manager_next(next_page_link, custom_headers = nil) - response = list_by_manager_next_async(next_page_link, custom_headers).value! + def list_by_manager_next(next_page_link, custom_headers:nil) + response = list_by_manager_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -340,8 +339,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_manager_next_with_http_info(next_page_link, custom_headers = nil) - list_by_manager_next_async(next_page_link, custom_headers).value! + def list_by_manager_next_with_http_info(next_page_link, custom_headers:nil) + list_by_manager_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -354,11 +353,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_manager_next_async(next_page_link, custom_headers = nil) + def list_by_manager_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -413,12 +413,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [AlertList] which provide lazy access to pages of the response. # - def list_by_manager_as_lazy(resource_group_name, manager_name, filter = nil, custom_headers = nil) - response = list_by_manager_async(resource_group_name, manager_name, filter, custom_headers).value! + def list_by_manager_as_lazy(resource_group_name, manager_name, filter:nil, custom_headers:nil) + response = list_by_manager_async(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_manager_next_async(next_page_link, custom_headers) + list_by_manager_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_policies.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_policies.rb index bc73c9145..a94cf5148 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_policies.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_policies.rb @@ -32,8 +32,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BackupPolicyList] operation results. # - def list_by_device(device_name, resource_group_name, manager_name, custom_headers = nil) - response = list_by_device_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_by_device(device_name, resource_group_name, manager_name, custom_headers:nil) + response = list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_device_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - list_by_device_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_by_device_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_device_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -74,6 +74,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -130,8 +131,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BackupPolicy] operation results. # - def get(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers = nil) - response = get_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers).value! + def get(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:nil) + response = get_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -147,8 +148,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers = nil) - get_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers).value! + def get_with_http_info(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:nil) + get_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -163,7 +164,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers = nil) + def get_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'backup_policy_name is nil' if backup_policy_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -175,6 +176,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -233,8 +235,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BackupPolicy] operation results. # - def create_or_update(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers).value! + def create_or_update(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -251,9 +253,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -279,8 +281,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers = nil) - response = delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers).value! + def delete(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:nil) + response = delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -295,9 +297,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers = nil) + def delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers) + promise = begin_delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -323,8 +325,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def backup_now(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers = nil) - response = backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers).value! + def backup_now(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers:nil) + response = backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -341,9 +343,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers = nil) + def backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers) + promise = begin_backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -371,8 +373,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BackupPolicy] operation results. # - def begin_create_or_update(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -390,8 +392,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update_with_http_info(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -408,7 +410,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_create_or_update_async(device_name, backup_policy_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'backup_policy_name is nil' if backup_policy_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -421,7 +423,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -485,8 +486,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_delete(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -502,8 +503,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers = nil) - begin_delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete_with_http_info(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:nil) + begin_delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -518,7 +519,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers = nil) + def begin_delete_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'backup_policy_name is nil' if backup_policy_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -530,6 +531,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -577,8 +579,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_backup_now(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers = nil) - response = begin_backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers).value! + def begin_backup_now(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers:nil) + response = begin_backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -596,8 +598,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_backup_now_with_http_info(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers = nil) - begin_backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers).value! + def begin_backup_now_with_http_info(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers:nil) + begin_backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -614,7 +616,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers = nil) + def begin_backup_now_async(device_name, backup_policy_name, backup_type, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'backup_policy_name is nil' if backup_policy_name.nil? fail ArgumentError, 'backup_type is nil' if backup_type.nil? @@ -627,6 +629,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_schedules.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_schedules.rb index 816e334b1..8057e2309 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_schedules.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_schedules.rb @@ -33,8 +33,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BackupScheduleList] operation results. # - def list_by_backup_policy(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers = nil) - response = list_by_backup_policy_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers).value! + def list_by_backup_policy(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:nil) + response = list_by_backup_policy_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_backup_policy_with_http_info(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers = nil) - list_by_backup_policy_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers).value! + def list_by_backup_policy_with_http_info(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:nil) + list_by_backup_policy_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_backup_policy_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers = nil) + def list_by_backup_policy_async(device_name, backup_policy_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'backup_policy_name is nil' if backup_policy_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -78,6 +78,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -136,8 +137,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BackupSchedule] operation results. # - def get(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers = nil) - response = get_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers).value! + def get(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:nil) + response = get_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -155,8 +156,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers = nil) - get_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers).value! + def get_with_http_info(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:nil) + get_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -173,7 +174,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers = nil) + def get_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'backup_policy_name is nil' if backup_policy_name.nil? fail ArgumentError, 'backup_schedule_name is nil' if backup_schedule_name.nil? @@ -186,6 +187,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -244,8 +246,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BackupSchedule] operation results. # - def create_or_update(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers).value! + def create_or_update(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -262,9 +264,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -291,8 +293,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers = nil) - response = delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers).value! + def delete(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:nil) + response = delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -308,9 +310,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers = nil) + def delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers) + promise = begin_delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -338,8 +340,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BackupSchedule] operation results. # - def begin_create_or_update(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -357,8 +359,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update_with_http_info(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -375,7 +377,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'backup_policy_name is nil' if backup_policy_name.nil? fail ArgumentError, 'backup_schedule_name is nil' if backup_schedule_name.nil? @@ -389,7 +391,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -454,8 +455,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_delete(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -472,8 +473,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers = nil) - begin_delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete_with_http_info(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:nil) + begin_delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -489,7 +490,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers = nil) + def begin_delete_async(device_name, backup_policy_name, backup_schedule_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'backup_policy_name is nil' if backup_policy_name.nil? fail ArgumentError, 'backup_schedule_name is nil' if backup_schedule_name.nil? @@ -502,6 +503,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backups.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backups.rb index 1bb1bc8eb..811d868fb 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backups.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backups.rb @@ -33,8 +33,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Array] operation results. # - def list_by_device(device_name, resource_group_name, manager_name, filter = nil, custom_headers = nil) - first_page = list_by_device_as_lazy(device_name, resource_group_name, manager_name, filter, custom_headers) + def list_by_device(device_name, resource_group_name, manager_name, filter:nil, custom_headers:nil) + first_page = list_by_device_as_lazy(device_name, resource_group_name, manager_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -50,8 +50,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_device_with_http_info(device_name, resource_group_name, manager_name, filter = nil, custom_headers = nil) - list_by_device_async(device_name, resource_group_name, manager_name, filter, custom_headers).value! + def list_by_device_with_http_info(device_name, resource_group_name, manager_name, filter:nil, custom_headers:nil) + list_by_device_async(device_name, resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_device_async(device_name, resource_group_name, manager_name, filter = nil, custom_headers = nil) + def list_by_device_async(device_name, resource_group_name, manager_name, filter:nil, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -77,6 +77,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -132,8 +133,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(device_name, backup_name, resource_group_name, manager_name, custom_headers = nil) - response = delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers).value! + def delete(device_name, backup_name, resource_group_name, manager_name, custom_headers:nil) + response = delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -148,9 +149,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers = nil) + def delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers) + promise = begin_delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -176,8 +177,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def clone(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers).value! + def clone(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -194,9 +195,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -220,8 +221,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def restore(device_name, backup_name, resource_group_name, manager_name, custom_headers = nil) - response = restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers).value! + def restore(device_name, backup_name, resource_group_name, manager_name, custom_headers:nil) + response = restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -236,9 +237,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers = nil) + def restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers) + promise = begin_restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -263,8 +264,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_delete(device_name, backup_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete(device_name, backup_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -280,8 +281,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(device_name, backup_name, resource_group_name, manager_name, custom_headers = nil) - begin_delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete_with_http_info(device_name, backup_name, resource_group_name, manager_name, custom_headers:nil) + begin_delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -296,7 +297,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers = nil) + def begin_delete_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'backup_name is nil' if backup_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -308,6 +309,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -355,8 +357,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_clone(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_clone(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -374,8 +376,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_clone_with_http_info(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_clone_with_http_info(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -392,7 +394,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_clone_async(device_name, backup_name, backup_element_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'backup_name is nil' if backup_name.nil? fail ArgumentError, 'backup_element_name is nil' if backup_element_name.nil? @@ -406,7 +408,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -460,8 +461,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_restore(device_name, backup_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers).value! + def begin_restore(device_name, backup_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -477,8 +478,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restore_with_http_info(device_name, backup_name, resource_group_name, manager_name, custom_headers = nil) - begin_restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers).value! + def begin_restore_with_http_info(device_name, backup_name, resource_group_name, manager_name, custom_headers:nil) + begin_restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -493,7 +494,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers = nil) + def begin_restore_async(device_name, backup_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'backup_name is nil' if backup_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -505,6 +506,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -549,8 +551,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BackupList] operation results. # - def list_by_device_next(next_page_link, custom_headers = nil) - response = list_by_device_next_async(next_page_link, custom_headers).value! + def list_by_device_next(next_page_link, custom_headers:nil) + response = list_by_device_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -564,8 +566,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_device_next_with_http_info(next_page_link, custom_headers = nil) - list_by_device_next_async(next_page_link, custom_headers).value! + def list_by_device_next_with_http_info(next_page_link, custom_headers:nil) + list_by_device_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -578,11 +580,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_device_next_async(next_page_link, custom_headers = nil) + def list_by_device_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -638,12 +641,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BackupList] which provide lazy access to pages of the response. # - def list_by_device_as_lazy(device_name, resource_group_name, manager_name, filter = nil, custom_headers = nil) - response = list_by_device_async(device_name, resource_group_name, manager_name, filter, custom_headers).value! + def list_by_device_as_lazy(device_name, resource_group_name, manager_name, filter:nil, custom_headers:nil) + response = list_by_device_async(device_name, resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_device_next_async(next_page_link, custom_headers) + list_by_device_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/bandwidth_settings.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/bandwidth_settings.rb index f387068f2..bfabd6a88 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/bandwidth_settings.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/bandwidth_settings.rb @@ -31,8 +31,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BandwidthSettingList] operation results. # - def list_by_manager(resource_group_name, manager_name, custom_headers = nil) - response = list_by_manager_async(resource_group_name, manager_name, custom_headers).value! + def list_by_manager(resource_group_name, manager_name, custom_headers:nil) + response = list_by_manager_async(resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_manager_with_http_info(resource_group_name, manager_name, custom_headers = nil) - list_by_manager_async(resource_group_name, manager_name, custom_headers).value! + def list_by_manager_with_http_info(resource_group_name, manager_name, custom_headers:nil) + list_by_manager_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_manager_async(resource_group_name, manager_name, custom_headers = nil) + def list_by_manager_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -70,6 +70,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BandwidthSetting] operation results. # - def get(bandwidth_setting_name, resource_group_name, manager_name, custom_headers = nil) - response = get_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers).value! + def get(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:nil) + response = get_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -143,8 +144,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(bandwidth_setting_name, resource_group_name, manager_name, custom_headers = nil) - get_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers).value! + def get_with_http_info(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:nil) + get_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers = nil) + def get_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'bandwidth_setting_name is nil' if bandwidth_setting_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -170,6 +171,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -227,8 +229,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BandwidthSetting] operation results. # - def create_or_update(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers).value! + def create_or_update(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -244,9 +246,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -271,8 +273,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(bandwidth_setting_name, resource_group_name, manager_name, custom_headers = nil) - response = delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers).value! + def delete(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:nil) + response = delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -286,9 +288,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers = nil) + def delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers) + promise = begin_delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -315,8 +317,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [BandwidthSetting] operation results. # - def begin_create_or_update(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -333,8 +335,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update_with_http_info(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -350,7 +352,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_create_or_update_async(bandwidth_setting_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'bandwidth_setting_name is nil' if bandwidth_setting_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -362,7 +364,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -425,8 +426,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_delete(bandwidth_setting_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -441,8 +442,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(bandwidth_setting_name, resource_group_name, manager_name, custom_headers = nil) - begin_delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete_with_http_info(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:nil) + begin_delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -456,7 +457,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers = nil) + def begin_delete_async(bandwidth_setting_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'bandwidth_setting_name is nil' if bandwidth_setting_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -467,6 +468,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/cloud_appliances.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/cloud_appliances.rb index a7b00ee12..6aa0b61a6 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/cloud_appliances.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/cloud_appliances.rb @@ -31,8 +31,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [CloudApplianceConfigurationList] operation results. # - def list_supported_configurations(resource_group_name, manager_name, custom_headers = nil) - response = list_supported_configurations_async(resource_group_name, manager_name, custom_headers).value! + def list_supported_configurations(resource_group_name, manager_name, custom_headers:nil) + response = list_supported_configurations_async(resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_supported_configurations_with_http_info(resource_group_name, manager_name, custom_headers = nil) - list_supported_configurations_async(resource_group_name, manager_name, custom_headers).value! + def list_supported_configurations_with_http_info(resource_group_name, manager_name, custom_headers:nil) + list_supported_configurations_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_supported_configurations_async(resource_group_name, manager_name, custom_headers = nil) + def list_supported_configurations_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -70,6 +70,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -123,8 +124,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def provision(parameters, resource_group_name, manager_name, custom_headers = nil) - response = provision_async(parameters, resource_group_name, manager_name, custom_headers).value! + def provision(parameters, resource_group_name, manager_name, custom_headers:nil) + response = provision_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -138,9 +139,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def provision_async(parameters, resource_group_name, manager_name, custom_headers = nil) + def provision_async(parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_provision_async(parameters, resource_group_name, manager_name, custom_headers) + promise = begin_provision_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -164,8 +165,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_provision(parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_provision_async(parameters, resource_group_name, manager_name, custom_headers).value! + def begin_provision(parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_provision_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -180,8 +181,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_provision_with_http_info(parameters, resource_group_name, manager_name, custom_headers = nil) - begin_provision_async(parameters, resource_group_name, manager_name, custom_headers).value! + def begin_provision_with_http_info(parameters, resource_group_name, manager_name, custom_headers:nil) + begin_provision_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -195,7 +196,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_provision_async(parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_provision_async(parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -206,7 +207,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/device_settings.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/device_settings.rb index ea6a1e018..97635ea84 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/device_settings.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/device_settings.rb @@ -32,8 +32,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [AlertSettings] operation results. # - def get_alert_settings(device_name, resource_group_name, manager_name, custom_headers = nil) - response = get_alert_settings_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_alert_settings(device_name, resource_group_name, manager_name, custom_headers:nil) + response = get_alert_settings_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_alert_settings_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - get_alert_settings_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_alert_settings_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + get_alert_settings_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_alert_settings_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def get_alert_settings_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -74,6 +74,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -130,8 +131,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [AlertSettings] operation results. # - def create_or_update_alert_settings(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def create_or_update_alert_settings(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -146,9 +147,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -175,8 +176,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [NetworkSettings] operation results. # - def get_network_settings(device_name, resource_group_name, manager_name, custom_headers = nil) - response = get_network_settings_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_network_settings(device_name, resource_group_name, manager_name, custom_headers:nil) + response = get_network_settings_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -191,8 +192,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_network_settings_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - get_network_settings_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_network_settings_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + get_network_settings_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -206,7 +207,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_network_settings_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def get_network_settings_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -217,6 +218,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -273,8 +275,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [NetworkSettings] operation results. # - def update_network_settings(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def update_network_settings(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -289,9 +291,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -318,8 +320,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [SecuritySettings] operation results. # - def get_security_settings(device_name, resource_group_name, manager_name, custom_headers = nil) - response = get_security_settings_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_security_settings(device_name, resource_group_name, manager_name, custom_headers:nil) + response = get_security_settings_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -334,8 +336,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_security_settings_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - get_security_settings_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_security_settings_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + get_security_settings_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -349,7 +351,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_security_settings_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def get_security_settings_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -360,6 +362,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -417,8 +420,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [SecuritySettings] operation results. # - def update_security_settings(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def update_security_settings(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -434,9 +437,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -461,8 +464,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def sync_remotemanagement_certificate(device_name, resource_group_name, manager_name, custom_headers = nil) - response = sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers).value! + def sync_remotemanagement_certificate(device_name, resource_group_name, manager_name, custom_headers:nil) + response = sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -476,9 +479,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers) + promise = begin_sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -503,8 +506,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [TimeSettings] operation results. # - def get_time_settings(device_name, resource_group_name, manager_name, custom_headers = nil) - response = get_time_settings_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_time_settings(device_name, resource_group_name, manager_name, custom_headers:nil) + response = get_time_settings_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -519,8 +522,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_time_settings_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - get_time_settings_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_time_settings_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + get_time_settings_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -534,7 +537,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_time_settings_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def get_time_settings_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -545,6 +548,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -601,8 +605,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [TimeSettings] operation results. # - def create_or_update_time_settings(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def create_or_update_time_settings(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -617,9 +621,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -647,8 +651,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [AlertSettings] operation results. # - def begin_create_or_update_alert_settings(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update_alert_settings(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -664,8 +668,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_alert_settings_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update_alert_settings_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -680,7 +684,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_create_or_update_alert_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -692,7 +696,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -757,8 +760,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [NetworkSettings] operation results. # - def begin_update_network_settings(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_update_network_settings(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -774,8 +777,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_network_settings_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_update_network_settings_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -790,7 +793,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -802,7 +805,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -868,8 +870,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [SecuritySettings] operation results. # - def begin_update_security_settings(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_update_security_settings(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -886,8 +888,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_security_settings_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_update_security_settings_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -903,7 +905,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_update_security_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -915,7 +917,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -978,8 +979,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_sync_remotemanagement_certificate(device_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers).value! + def begin_sync_remotemanagement_certificate(device_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -994,8 +995,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_sync_remotemanagement_certificate_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - begin_sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers).value! + def begin_sync_remotemanagement_certificate_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + begin_sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1009,7 +1010,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def begin_sync_remotemanagement_certificate_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1020,6 +1021,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1066,8 +1068,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [TimeSettings] operation results. # - def begin_create_or_update_time_settings(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update_time_settings(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1083,8 +1085,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_time_settings_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update_time_settings_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1099,7 +1101,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_create_or_update_time_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1111,7 +1113,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/devices.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/devices.rb index cbd4d7c76..1eb5a3a13 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/devices.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/devices.rb @@ -31,8 +31,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def configure(parameters, resource_group_name, manager_name, custom_headers = nil) - response = configure_async(parameters, resource_group_name, manager_name, custom_headers).value! + def configure(parameters, resource_group_name, manager_name, custom_headers:nil) + response = configure_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -47,9 +47,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def configure_async(parameters, resource_group_name, manager_name, custom_headers = nil) + def configure_async(parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_configure_async(parameters, resource_group_name, manager_name, custom_headers) + promise = begin_configure_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -76,8 +76,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [DeviceList] operation results. # - def list_by_manager(resource_group_name, manager_name, expand = nil, custom_headers = nil) - response = list_by_manager_async(resource_group_name, manager_name, expand, custom_headers).value! + def list_by_manager(resource_group_name, manager_name, expand:nil, custom_headers:nil) + response = list_by_manager_async(resource_group_name, manager_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -94,8 +94,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_manager_with_http_info(resource_group_name, manager_name, expand = nil, custom_headers = nil) - list_by_manager_async(resource_group_name, manager_name, expand, custom_headers).value! + def list_by_manager_with_http_info(resource_group_name, manager_name, expand:nil, custom_headers:nil) + list_by_manager_async(resource_group_name, manager_name, expand:expand, custom_headers:custom_headers).value! end # @@ -111,7 +111,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_manager_async(resource_group_name, manager_name, expand = nil, custom_headers = nil) + def list_by_manager_async(resource_group_name, manager_name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -121,6 +121,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -180,8 +181,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Device] operation results. # - def get(device_name, resource_group_name, manager_name, expand = nil, custom_headers = nil) - response = get_async(device_name, resource_group_name, manager_name, expand, custom_headers).value! + def get(device_name, resource_group_name, manager_name, expand:nil, custom_headers:nil) + response = get_async(device_name, resource_group_name, manager_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -199,8 +200,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(device_name, resource_group_name, manager_name, expand = nil, custom_headers = nil) - get_async(device_name, resource_group_name, manager_name, expand, custom_headers).value! + def get_with_http_info(device_name, resource_group_name, manager_name, expand:nil, custom_headers:nil) + get_async(device_name, resource_group_name, manager_name, expand:expand, custom_headers:custom_headers).value! end # @@ -217,7 +218,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(device_name, resource_group_name, manager_name, expand = nil, custom_headers = nil) + def get_async(device_name, resource_group_name, manager_name, expand:nil, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -228,6 +229,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -282,8 +284,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(device_name, resource_group_name, manager_name, custom_headers = nil) - response = delete_async(device_name, resource_group_name, manager_name, custom_headers).value! + def delete(device_name, resource_group_name, manager_name, custom_headers:nil) + response = delete_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -297,9 +299,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def delete_async(device_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_delete_async(device_name, resource_group_name, manager_name, custom_headers) + promise = begin_delete_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -325,8 +327,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Device] operation results. # - def update(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = update_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def update(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = update_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -342,8 +344,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - update_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def update_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + update_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -358,7 +360,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def update_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -370,7 +372,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -433,8 +434,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def authorize_for_service_encryption_key_rollover(device_name, resource_group_name, manager_name, custom_headers = nil) - response = authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers).value! + def authorize_for_service_encryption_key_rollover(device_name, resource_group_name, manager_name, custom_headers:nil) + response = authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -449,8 +450,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def authorize_for_service_encryption_key_rollover_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers).value! + def authorize_for_service_encryption_key_rollover_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -464,7 +465,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -475,6 +476,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -518,8 +520,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def deactivate(device_name, resource_group_name, manager_name, custom_headers = nil) - response = deactivate_async(device_name, resource_group_name, manager_name, custom_headers).value! + def deactivate(device_name, resource_group_name, manager_name, custom_headers:nil) + response = deactivate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -533,9 +535,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def deactivate_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def deactivate_async(device_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers) + promise = begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -558,8 +560,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def install_updates(device_name, resource_group_name, manager_name, custom_headers = nil) - response = install_updates_async(device_name, resource_group_name, manager_name, custom_headers).value! + def install_updates(device_name, resource_group_name, manager_name, custom_headers:nil) + response = install_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -573,9 +575,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def install_updates_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def install_updates_async(device_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers) + promise = begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -603,8 +605,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [FailoverSetsList] operation results. # - def list_failover_sets(device_name, resource_group_name, manager_name, custom_headers = nil) - response = list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_failover_sets(device_name, resource_group_name, manager_name, custom_headers:nil) + response = list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -622,8 +624,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_failover_sets_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_failover_sets_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -640,7 +642,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -651,6 +653,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -707,8 +710,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MetricList] operation results. # - def list_metrics(device_name, resource_group_name, manager_name, filter, custom_headers = nil) - response = list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers).value! + def list_metrics(device_name, resource_group_name, manager_name, filter, custom_headers:nil) + response = list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -724,8 +727,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_with_http_info(device_name, resource_group_name, manager_name, filter, custom_headers = nil) - list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers).value! + def list_metrics_with_http_info(device_name, resource_group_name, manager_name, filter, custom_headers:nil) + list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers:custom_headers).value! end # @@ -740,7 +743,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers = nil) + def list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -752,6 +755,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -808,8 +812,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MetricDefinitionList] operation results. # - def list_metric_definition(device_name, resource_group_name, manager_name, custom_headers = nil) - response = list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_metric_definition(device_name, resource_group_name, manager_name, custom_headers:nil) + response = list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -824,8 +828,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_definition_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_metric_definition_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -839,7 +843,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -850,6 +854,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -903,8 +908,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def scan_for_updates(device_name, resource_group_name, manager_name, custom_headers = nil) - response = scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers).value! + def scan_for_updates(device_name, resource_group_name, manager_name, custom_headers:nil) + response = scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -918,9 +923,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers) + promise = begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -945,8 +950,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Updates] operation results. # - def get_update_summary(device_name, resource_group_name, manager_name, custom_headers = nil) - response = get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_update_summary(device_name, resource_group_name, manager_name, custom_headers:nil) + response = get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -961,8 +966,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_update_summary_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_update_summary_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -976,7 +981,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -987,6 +992,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1044,8 +1050,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def failover(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def failover(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -1062,9 +1068,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1094,8 +1100,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [FailoverTargetsList] operation results. # - def list_failover_targets(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def list_failover_targets(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1115,8 +1121,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_failover_targets_with_http_info(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def list_failover_targets_with_http_info(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1135,7 +1141,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'source_device_name is nil' if source_device_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1147,7 +1153,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1211,8 +1216,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_configure(parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_configure_async(parameters, resource_group_name, manager_name, custom_headers).value! + def begin_configure(parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_configure_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -1228,8 +1233,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_configure_with_http_info(parameters, resource_group_name, manager_name, custom_headers = nil) - begin_configure_async(parameters, resource_group_name, manager_name, custom_headers).value! + def begin_configure_with_http_info(parameters, resource_group_name, manager_name, custom_headers:nil) + begin_configure_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1244,7 +1249,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_configure_async(parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_configure_async(parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1255,7 +1260,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1308,8 +1312,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_delete(device_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_delete_async(device_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete(device_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_delete_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -1324,8 +1328,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - begin_delete_async(device_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + begin_delete_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1339,7 +1343,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def begin_delete_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1350,6 +1354,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1394,8 +1399,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_deactivate(device_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers).value! + def begin_deactivate(device_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -1410,8 +1415,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_deactivate_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers).value! + def begin_deactivate_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1425,7 +1430,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1436,6 +1441,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1480,8 +1486,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_install_updates(device_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers).value! + def begin_install_updates(device_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -1496,8 +1502,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_install_updates_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers).value! + def begin_install_updates_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1511,7 +1517,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1522,6 +1528,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1566,8 +1573,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_scan_for_updates(device_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers).value! + def begin_scan_for_updates(device_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -1582,8 +1589,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_scan_for_updates_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers).value! + def begin_scan_for_updates_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1597,7 +1604,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1608,6 +1615,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1656,8 +1664,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_failover(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_failover(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -1676,8 +1684,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_failover_with_http_info(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_failover_with_http_info(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1695,7 +1703,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'source_device_name is nil' if source_device_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1707,7 +1715,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/hardware_component_groups.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/hardware_component_groups.rb index 9a1ac11ee..3cdb35a54 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/hardware_component_groups.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/hardware_component_groups.rb @@ -32,8 +32,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [HardwareComponentGroupList] operation results. # - def list_by_device(device_name, resource_group_name, manager_name, custom_headers = nil) - response = list_by_device_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_by_device(device_name, resource_group_name, manager_name, custom_headers:nil) + response = list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_device_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - list_by_device_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_by_device_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_device_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -74,6 +74,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -131,8 +132,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def change_controller_power_state(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers).value! + def change_controller_power_state(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -150,9 +151,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -180,8 +181,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_change_controller_power_state(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_change_controller_power_state(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -200,8 +201,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_change_controller_power_state_with_http_info(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_change_controller_power_state_with_http_info(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -219,7 +220,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_change_controller_power_state_async(device_name, hardware_component_group_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'hardware_component_group_name is nil' if hardware_component_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -232,7 +233,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/jobs.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/jobs.rb index 0f56fbaba..658e97e54 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/jobs.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/jobs.rb @@ -34,8 +34,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Array] operation results. # - def list_by_device(device_name, resource_group_name, manager_name, filter = nil, custom_headers = nil) - first_page = list_by_device_as_lazy(device_name, resource_group_name, manager_name, filter, custom_headers) + def list_by_device(device_name, resource_group_name, manager_name, filter:nil, custom_headers:nil) + first_page = list_by_device_as_lazy(device_name, resource_group_name, manager_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_device_with_http_info(device_name, resource_group_name, manager_name, filter = nil, custom_headers = nil) - list_by_device_async(device_name, resource_group_name, manager_name, filter, custom_headers).value! + def list_by_device_with_http_info(device_name, resource_group_name, manager_name, filter:nil, custom_headers:nil) + list_by_device_async(device_name, resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! end # @@ -69,7 +69,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_device_async(device_name, resource_group_name, manager_name, filter = nil, custom_headers = nil) + def list_by_device_async(device_name, resource_group_name, manager_name, filter:nil, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -80,6 +80,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -137,8 +138,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Job] operation results. # - def get(device_name, job_name, resource_group_name, manager_name, custom_headers = nil) - response = get_async(device_name, job_name, resource_group_name, manager_name, custom_headers).value! + def get(device_name, job_name, resource_group_name, manager_name, custom_headers:nil) + response = get_async(device_name, job_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -154,8 +155,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(device_name, job_name, resource_group_name, manager_name, custom_headers = nil) - get_async(device_name, job_name, resource_group_name, manager_name, custom_headers).value! + def get_with_http_info(device_name, job_name, resource_group_name, manager_name, custom_headers:nil) + get_async(device_name, job_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(device_name, job_name, resource_group_name, manager_name, custom_headers = nil) + def get_async(device_name, job_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'job_name is nil' if job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -182,6 +183,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -236,8 +238,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def cancel(device_name, job_name, resource_group_name, manager_name, custom_headers = nil) - response = cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers).value! + def cancel(device_name, job_name, resource_group_name, manager_name, custom_headers:nil) + response = cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -252,9 +254,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers = nil) + def cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers) + promise = begin_cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -280,8 +282,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Array] operation results. # - def list_by_manager(resource_group_name, manager_name, filter = nil, custom_headers = nil) - first_page = list_by_manager_as_lazy(resource_group_name, manager_name, filter, custom_headers) + def list_by_manager(resource_group_name, manager_name, filter:nil, custom_headers:nil) + first_page = list_by_manager_as_lazy(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -297,8 +299,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_manager_with_http_info(resource_group_name, manager_name, filter = nil, custom_headers = nil) - list_by_manager_async(resource_group_name, manager_name, filter, custom_headers).value! + def list_by_manager_with_http_info(resource_group_name, manager_name, filter:nil, custom_headers:nil) + list_by_manager_async(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! end # @@ -313,7 +315,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_manager_async(resource_group_name, manager_name, filter = nil, custom_headers = nil) + def list_by_manager_async(resource_group_name, manager_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -323,6 +325,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -379,8 +382,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_cancel(device_name, job_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers).value! + def begin_cancel(device_name, job_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -396,8 +399,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_cancel_with_http_info(device_name, job_name, resource_group_name, manager_name, custom_headers = nil) - begin_cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers).value! + def begin_cancel_with_http_info(device_name, job_name, resource_group_name, manager_name, custom_headers:nil) + begin_cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -412,7 +415,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers = nil) + def begin_cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'job_name is nil' if job_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -424,6 +427,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -469,8 +473,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [JobList] operation results. # - def list_by_device_next(next_page_link, custom_headers = nil) - response = list_by_device_next_async(next_page_link, custom_headers).value! + def list_by_device_next(next_page_link, custom_headers:nil) + response = list_by_device_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -485,8 +489,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_device_next_with_http_info(next_page_link, custom_headers = nil) - list_by_device_next_async(next_page_link, custom_headers).value! + def list_by_device_next_with_http_info(next_page_link, custom_headers:nil) + list_by_device_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -500,11 +504,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_device_next_async(next_page_link, custom_headers = nil) + def list_by_device_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -559,8 +564,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [JobList] operation results. # - def list_by_manager_next(next_page_link, custom_headers = nil) - response = list_by_manager_next_async(next_page_link, custom_headers).value! + def list_by_manager_next(next_page_link, custom_headers:nil) + response = list_by_manager_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -575,8 +580,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_manager_next_with_http_info(next_page_link, custom_headers = nil) - list_by_manager_next_async(next_page_link, custom_headers).value! + def list_by_manager_next_with_http_info(next_page_link, custom_headers:nil) + list_by_manager_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -590,11 +595,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_manager_next_async(next_page_link, custom_headers = nil) + def list_by_manager_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -651,12 +657,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [JobList] which provide lazy access to pages of the response. # - def list_by_device_as_lazy(device_name, resource_group_name, manager_name, filter = nil, custom_headers = nil) - response = list_by_device_async(device_name, resource_group_name, manager_name, filter, custom_headers).value! + def list_by_device_as_lazy(device_name, resource_group_name, manager_name, filter:nil, custom_headers:nil) + response = list_by_device_async(device_name, resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_device_next_async(next_page_link, custom_headers) + list_by_device_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -674,12 +680,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [JobList] which provide lazy access to pages of the response. # - def list_by_manager_as_lazy(resource_group_name, manager_name, filter = nil, custom_headers = nil) - response = list_by_manager_async(resource_group_name, manager_name, filter, custom_headers).value! + def list_by_manager_as_lazy(resource_group_name, manager_name, filter:nil, custom_headers:nil) + response = list_by_manager_async(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_manager_next_async(next_page_link, custom_headers) + list_by_manager_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/managers.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/managers.rb index 9f91f85d1..3a1115ffa 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/managers.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/managers.rb @@ -29,8 +29,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [ManagerList] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -113,8 +114,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [ManagerList] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -140,13 +141,14 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -201,8 +203,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Manager] operation results. # - def get(resource_group_name, manager_name, custom_headers = nil) - response = get_async(resource_group_name, manager_name, custom_headers).value! + def get(resource_group_name, manager_name, custom_headers:nil) + response = get_async(resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -216,8 +218,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, manager_name, custom_headers = nil) - get_async(resource_group_name, manager_name, custom_headers).value! + def get_with_http_info(resource_group_name, manager_name, custom_headers:nil) + get_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -230,7 +232,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, manager_name, custom_headers = nil) + def get_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -240,6 +242,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -295,8 +298,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Manager] operation results. # - def create_or_update(parameters, resource_group_name, manager_name, custom_headers = nil) - response = create_or_update_async(parameters, resource_group_name, manager_name, custom_headers).value! + def create_or_update(parameters, resource_group_name, manager_name, custom_headers:nil) + response = create_or_update_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -311,8 +314,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(parameters, resource_group_name, manager_name, custom_headers = nil) - create_or_update_async(parameters, resource_group_name, manager_name, custom_headers).value! + def create_or_update_with_http_info(parameters, resource_group_name, manager_name, custom_headers:nil) + create_or_update_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -326,7 +329,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(parameters, resource_group_name, manager_name, custom_headers = nil) + def create_or_update_async(parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -337,7 +340,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -409,8 +411,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, manager_name, custom_headers = nil) - response = delete_async(resource_group_name, manager_name, custom_headers).value! + def delete(resource_group_name, manager_name, custom_headers:nil) + response = delete_async(resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -424,8 +426,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, manager_name, custom_headers = nil) - delete_async(resource_group_name, manager_name, custom_headers).value! + def delete_with_http_info(resource_group_name, manager_name, custom_headers:nil) + delete_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -438,7 +440,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, manager_name, custom_headers = nil) + def delete_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -448,6 +450,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -493,8 +496,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Manager] operation results. # - def update(parameters, resource_group_name, manager_name, custom_headers = nil) - response = update_async(parameters, resource_group_name, manager_name, custom_headers).value! + def update(parameters, resource_group_name, manager_name, custom_headers:nil) + response = update_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -509,8 +512,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(parameters, resource_group_name, manager_name, custom_headers = nil) - update_async(parameters, resource_group_name, manager_name, custom_headers).value! + def update_with_http_info(parameters, resource_group_name, manager_name, custom_headers:nil) + update_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -524,7 +527,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(parameters, resource_group_name, manager_name, custom_headers = nil) + def update_async(parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -535,7 +538,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -599,8 +601,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [PublicKey] operation results. # - def get_device_public_encryption_key(device_name, resource_group_name, manager_name, custom_headers = nil) - response = get_device_public_encryption_key_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_device_public_encryption_key(device_name, resource_group_name, manager_name, custom_headers:nil) + response = get_device_public_encryption_key_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -615,8 +617,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_device_public_encryption_key_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - get_device_public_encryption_key_async(device_name, resource_group_name, manager_name, custom_headers).value! + def get_device_public_encryption_key_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + get_device_public_encryption_key_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -630,7 +632,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_device_public_encryption_key_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def get_device_public_encryption_key_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -641,6 +643,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -695,8 +698,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [EncryptionSettings] operation results. # - def get_encryption_settings(resource_group_name, manager_name, custom_headers = nil) - response = get_encryption_settings_async(resource_group_name, manager_name, custom_headers).value! + def get_encryption_settings(resource_group_name, manager_name, custom_headers:nil) + response = get_encryption_settings_async(resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -710,8 +713,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_encryption_settings_with_http_info(resource_group_name, manager_name, custom_headers = nil) - get_encryption_settings_async(resource_group_name, manager_name, custom_headers).value! + def get_encryption_settings_with_http_info(resource_group_name, manager_name, custom_headers:nil) + get_encryption_settings_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -724,7 +727,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_encryption_settings_async(resource_group_name, manager_name, custom_headers = nil) + def get_encryption_settings_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -734,6 +737,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -788,8 +792,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [ManagerExtendedInfo] operation results. # - def get_extended_info(resource_group_name, manager_name, custom_headers = nil) - response = get_extended_info_async(resource_group_name, manager_name, custom_headers).value! + def get_extended_info(resource_group_name, manager_name, custom_headers:nil) + response = get_extended_info_async(resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -803,8 +807,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_extended_info_with_http_info(resource_group_name, manager_name, custom_headers = nil) - get_extended_info_async(resource_group_name, manager_name, custom_headers).value! + def get_extended_info_with_http_info(resource_group_name, manager_name, custom_headers:nil) + get_extended_info_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -817,7 +821,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_extended_info_async(resource_group_name, manager_name, custom_headers = nil) + def get_extended_info_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -827,6 +831,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -882,8 +887,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [ManagerExtendedInfo] operation results. # - def create_extended_info(parameters, resource_group_name, manager_name, custom_headers = nil) - response = create_extended_info_async(parameters, resource_group_name, manager_name, custom_headers).value! + def create_extended_info(parameters, resource_group_name, manager_name, custom_headers:nil) + response = create_extended_info_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -898,8 +903,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_extended_info_with_http_info(parameters, resource_group_name, manager_name, custom_headers = nil) - create_extended_info_async(parameters, resource_group_name, manager_name, custom_headers).value! + def create_extended_info_with_http_info(parameters, resource_group_name, manager_name, custom_headers:nil) + create_extended_info_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -913,7 +918,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_extended_info_async(parameters, resource_group_name, manager_name, custom_headers = nil) + def create_extended_info_async(parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -924,7 +929,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -986,8 +990,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def delete_extended_info(resource_group_name, manager_name, custom_headers = nil) - response = delete_extended_info_async(resource_group_name, manager_name, custom_headers).value! + def delete_extended_info(resource_group_name, manager_name, custom_headers:nil) + response = delete_extended_info_async(resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -1001,8 +1005,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_extended_info_with_http_info(resource_group_name, manager_name, custom_headers = nil) - delete_extended_info_async(resource_group_name, manager_name, custom_headers).value! + def delete_extended_info_with_http_info(resource_group_name, manager_name, custom_headers:nil) + delete_extended_info_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1015,7 +1019,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_extended_info_async(resource_group_name, manager_name, custom_headers = nil) + def delete_extended_info_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -1025,6 +1029,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1071,8 +1076,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [ManagerExtendedInfo] operation results. # - def update_extended_info(parameters, resource_group_name, manager_name, if_match, custom_headers = nil) - response = update_extended_info_async(parameters, resource_group_name, manager_name, if_match, custom_headers).value! + def update_extended_info(parameters, resource_group_name, manager_name, if_match, custom_headers:nil) + response = update_extended_info_async(parameters, resource_group_name, manager_name, if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1088,8 +1093,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_extended_info_with_http_info(parameters, resource_group_name, manager_name, if_match, custom_headers = nil) - update_extended_info_async(parameters, resource_group_name, manager_name, if_match, custom_headers).value! + def update_extended_info_with_http_info(parameters, resource_group_name, manager_name, if_match, custom_headers:nil) + update_extended_info_async(parameters, resource_group_name, manager_name, if_match, custom_headers:custom_headers).value! end # @@ -1104,7 +1109,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_extended_info_async(parameters, resource_group_name, manager_name, if_match, custom_headers = nil) + def update_extended_info_async(parameters, resource_group_name, manager_name, if_match, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1116,7 +1121,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1181,8 +1185,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [FeatureList] operation results. # - def list_feature_support_status(resource_group_name, manager_name, filter = nil, custom_headers = nil) - response = list_feature_support_status_async(resource_group_name, manager_name, filter, custom_headers).value! + def list_feature_support_status(resource_group_name, manager_name, filter:nil, custom_headers:nil) + response = list_feature_support_status_async(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1197,8 +1201,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_feature_support_status_with_http_info(resource_group_name, manager_name, filter = nil, custom_headers = nil) - list_feature_support_status_async(resource_group_name, manager_name, filter, custom_headers).value! + def list_feature_support_status_with_http_info(resource_group_name, manager_name, filter:nil, custom_headers:nil) + list_feature_support_status_async(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! end # @@ -1212,7 +1216,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_feature_support_status_async(resource_group_name, manager_name, filter = nil, custom_headers = nil) + def list_feature_support_status_async(resource_group_name, manager_name, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -1222,6 +1226,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1277,8 +1282,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Key] operation results. # - def get_activation_key(resource_group_name, manager_name, custom_headers = nil) - response = get_activation_key_async(resource_group_name, manager_name, custom_headers).value! + def get_activation_key(resource_group_name, manager_name, custom_headers:nil) + response = get_activation_key_async(resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1292,8 +1297,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_activation_key_with_http_info(resource_group_name, manager_name, custom_headers = nil) - get_activation_key_async(resource_group_name, manager_name, custom_headers).value! + def get_activation_key_with_http_info(resource_group_name, manager_name, custom_headers:nil) + get_activation_key_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1306,7 +1311,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_activation_key_async(resource_group_name, manager_name, custom_headers = nil) + def get_activation_key_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -1316,6 +1321,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1370,8 +1376,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [SymmetricEncryptedSecret] operation results. # - def get_public_encryption_key(resource_group_name, manager_name, custom_headers = nil) - response = get_public_encryption_key_async(resource_group_name, manager_name, custom_headers).value! + def get_public_encryption_key(resource_group_name, manager_name, custom_headers:nil) + response = get_public_encryption_key_async(resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1385,8 +1391,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_public_encryption_key_with_http_info(resource_group_name, manager_name, custom_headers = nil) - get_public_encryption_key_async(resource_group_name, manager_name, custom_headers).value! + def get_public_encryption_key_with_http_info(resource_group_name, manager_name, custom_headers:nil) + get_public_encryption_key_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1399,7 +1405,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_public_encryption_key_async(resource_group_name, manager_name, custom_headers = nil) + def get_public_encryption_key_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -1409,6 +1415,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1464,8 +1471,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MetricList] operation results. # - def list_metrics(resource_group_name, manager_name, filter, custom_headers = nil) - response = list_metrics_async(resource_group_name, manager_name, filter, custom_headers).value! + def list_metrics(resource_group_name, manager_name, filter, custom_headers:nil) + response = list_metrics_async(resource_group_name, manager_name, filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1480,8 +1487,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_with_http_info(resource_group_name, manager_name, filter, custom_headers = nil) - list_metrics_async(resource_group_name, manager_name, filter, custom_headers).value! + def list_metrics_with_http_info(resource_group_name, manager_name, filter, custom_headers:nil) + list_metrics_async(resource_group_name, manager_name, filter, custom_headers:custom_headers).value! end # @@ -1495,7 +1502,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_async(resource_group_name, manager_name, filter, custom_headers = nil) + def list_metrics_async(resource_group_name, manager_name, filter, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -1506,6 +1513,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1561,8 +1569,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MetricDefinitionList] operation results. # - def list_metric_definition(resource_group_name, manager_name, custom_headers = nil) - response = list_metric_definition_async(resource_group_name, manager_name, custom_headers).value! + def list_metric_definition(resource_group_name, manager_name, custom_headers:nil) + response = list_metric_definition_async(resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1576,8 +1584,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_definition_with_http_info(resource_group_name, manager_name, custom_headers = nil) - list_metric_definition_async(resource_group_name, manager_name, custom_headers).value! + def list_metric_definition_with_http_info(resource_group_name, manager_name, custom_headers:nil) + list_metric_definition_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1590,7 +1598,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definition_async(resource_group_name, manager_name, custom_headers = nil) + def list_metric_definition_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -1600,6 +1608,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1654,8 +1663,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Key] operation results. # - def regenerate_activation_key(resource_group_name, manager_name, custom_headers = nil) - response = regenerate_activation_key_async(resource_group_name, manager_name, custom_headers).value! + def regenerate_activation_key(resource_group_name, manager_name, custom_headers:nil) + response = regenerate_activation_key_async(resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1669,8 +1678,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_activation_key_with_http_info(resource_group_name, manager_name, custom_headers = nil) - regenerate_activation_key_async(resource_group_name, manager_name, custom_headers).value! + def regenerate_activation_key_with_http_info(resource_group_name, manager_name, custom_headers:nil) + regenerate_activation_key_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -1683,7 +1692,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_activation_key_async(resource_group_name, manager_name, custom_headers = nil) + def regenerate_activation_key_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -1693,6 +1702,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/operations.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/operations.rb index e251f38b6..d4911fe6c 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/operations.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/operations.rb @@ -30,8 +30,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -44,8 +44,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,11 +57,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -116,8 +117,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [AvailableProviderOperationList] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -132,8 +133,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -147,11 +148,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -205,12 +207,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [AvailableProviderOperationList] which provide lazy access to pages # of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/storage_account_credentials.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/storage_account_credentials.rb index 715a4432f..8e5edd486 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/storage_account_credentials.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/storage_account_credentials.rb @@ -31,8 +31,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [StorageAccountCredentialList] operation results. # - def list_by_manager(resource_group_name, manager_name, custom_headers = nil) - response = list_by_manager_async(resource_group_name, manager_name, custom_headers).value! + def list_by_manager(resource_group_name, manager_name, custom_headers:nil) + response = list_by_manager_async(resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_manager_with_http_info(resource_group_name, manager_name, custom_headers = nil) - list_by_manager_async(resource_group_name, manager_name, custom_headers).value! + def list_by_manager_with_http_info(resource_group_name, manager_name, custom_headers:nil) + list_by_manager_async(resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -60,7 +60,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_manager_async(resource_group_name, manager_name, custom_headers = nil) + def list_by_manager_async(resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'manager_name is nil' if manager_name.nil? @@ -70,6 +70,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -126,8 +127,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [StorageAccountCredential] operation results. # - def get(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil) - response = get_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers).value! + def get(storage_account_credential_name, resource_group_name, manager_name, custom_headers:nil) + response = get_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -143,8 +144,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil) - get_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers).value! + def get_with_http_info(storage_account_credential_name, resource_group_name, manager_name, custom_headers:nil) + get_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -159,7 +160,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil) + def get_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'storage_account_credential_name is nil' if storage_account_credential_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -170,6 +171,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -228,8 +230,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [StorageAccountCredential] operation results. # - def create_or_update(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers).value! + def create_or_update(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -246,9 +248,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -274,8 +276,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil) - response = delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers).value! + def delete(storage_account_credential_name, resource_group_name, manager_name, custom_headers:nil) + response = delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -290,9 +292,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil) + def delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers) + promise = begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -320,8 +322,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [StorageAccountCredential] operation results. # - def begin_create_or_update(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -339,8 +341,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update_with_http_info(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -357,7 +359,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'storage_account_credential_name is nil' if storage_account_credential_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -369,7 +371,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -433,8 +434,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_delete(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete(storage_account_credential_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -450,8 +451,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil) - begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete_with_http_info(storage_account_credential_name, resource_group_name, manager_name, custom_headers:nil) + begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -466,7 +467,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil) + def begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'storage_account_credential_name is nil' if storage_account_credential_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -477,6 +478,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/volume_containers.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/volume_containers.rb index ea20cbfbb..182575044 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/volume_containers.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/volume_containers.rb @@ -32,8 +32,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [VolumeContainerList] operation results. # - def list_by_device(device_name, resource_group_name, manager_name, custom_headers = nil) - response = list_by_device_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_by_device(device_name, resource_group_name, manager_name, custom_headers:nil) + response = list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_device_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - list_by_device_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_by_device_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -63,7 +63,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_device_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -74,6 +74,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -130,8 +131,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [VolumeContainer] operation results. # - def get(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) - response = get_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers).value! + def get(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) + response = get_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -147,8 +148,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) - get_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers).value! + def get_with_http_info(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) + get_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -163,7 +164,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) + def get_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'volume_container_name is nil' if volume_container_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -175,6 +176,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -233,8 +235,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [VolumeContainer] operation results. # - def create_or_update(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers).value! + def create_or_update(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -251,9 +253,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -279,8 +281,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) - response = delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers).value! + def delete(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) + response = delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -295,9 +297,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) + def delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers) + promise = begin_delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -324,8 +326,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MetricList] operation results. # - def list_metrics(device_name, volume_container_name, resource_group_name, manager_name, filter, custom_headers = nil) - response = list_metrics_async(device_name, volume_container_name, resource_group_name, manager_name, filter, custom_headers).value! + def list_metrics(device_name, volume_container_name, resource_group_name, manager_name, filter, custom_headers:nil) + response = list_metrics_async(device_name, volume_container_name, resource_group_name, manager_name, filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -342,8 +344,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_with_http_info(device_name, volume_container_name, resource_group_name, manager_name, filter, custom_headers = nil) - list_metrics_async(device_name, volume_container_name, resource_group_name, manager_name, filter, custom_headers).value! + def list_metrics_with_http_info(device_name, volume_container_name, resource_group_name, manager_name, filter, custom_headers:nil) + list_metrics_async(device_name, volume_container_name, resource_group_name, manager_name, filter, custom_headers:custom_headers).value! end # @@ -359,7 +361,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_async(device_name, volume_container_name, resource_group_name, manager_name, filter, custom_headers = nil) + def list_metrics_async(device_name, volume_container_name, resource_group_name, manager_name, filter, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'volume_container_name is nil' if volume_container_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -372,6 +374,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -429,8 +432,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MetricDefinitionList] operation results. # - def list_metric_definition(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) - response = list_metric_definition_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers).value! + def list_metric_definition(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) + response = list_metric_definition_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -446,8 +449,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_definition_with_http_info(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) - list_metric_definition_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers).value! + def list_metric_definition_with_http_info(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) + list_metric_definition_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -462,7 +465,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definition_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) + def list_metric_definition_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'volume_container_name is nil' if volume_container_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -474,6 +477,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -532,8 +536,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [VolumeContainer] operation results. # - def begin_create_or_update(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -551,8 +555,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update_with_http_info(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -569,7 +573,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_create_or_update_async(device_name, volume_container_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'volume_container_name is nil' if volume_container_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -582,7 +586,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -646,8 +649,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_delete(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -663,8 +666,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) - begin_delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete_with_http_info(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) + begin_delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -679,7 +682,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) + def begin_delete_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'volume_container_name is nil' if volume_container_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -691,6 +694,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/volumes.rb b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/volumes.rb index c20ad2c96..5d5a76ac2 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/volumes.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/volumes.rb @@ -33,8 +33,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [VolumeList] operation results. # - def list_by_volume_container(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) - response = list_by_volume_container_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers).value! + def list_by_volume_container(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) + response = list_by_volume_container_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_volume_container_with_http_info(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) - list_by_volume_container_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers).value! + def list_by_volume_container_with_http_info(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) + list_by_volume_container_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -66,7 +66,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_volume_container_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers = nil) + def list_by_volume_container_async(device_name, volume_container_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'volume_container_name is nil' if volume_container_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -78,6 +78,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -135,8 +136,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Volume] operation results. # - def get(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers = nil) - response = get_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers).value! + def get(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:nil) + response = get_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -153,8 +154,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers = nil) - get_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers).value! + def get_with_http_info(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:nil) + get_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -170,7 +171,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers = nil) + def get_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'volume_container_name is nil' if volume_container_name.nil? fail ArgumentError, 'volume_name is nil' if volume_name.nil? @@ -183,6 +184,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -241,8 +243,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Volume] operation results. # - def create_or_update(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers).value! + def create_or_update(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -259,9 +261,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers) + promise = begin_create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -288,8 +290,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers = nil) - response = delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers).value! + def delete(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:nil) + response = delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -305,9 +307,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers = nil) + def delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:nil) # Send request - promise = begin_delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers) + promise = begin_delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -335,8 +337,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MetricList] operation results. # - def list_metrics(device_name, volume_container_name, volume_name, resource_group_name, manager_name, filter, custom_headers = nil) - response = list_metrics_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, filter, custom_headers).value! + def list_metrics(device_name, volume_container_name, volume_name, resource_group_name, manager_name, filter, custom_headers:nil) + response = list_metrics_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -354,8 +356,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_with_http_info(device_name, volume_container_name, volume_name, resource_group_name, manager_name, filter, custom_headers = nil) - list_metrics_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, filter, custom_headers).value! + def list_metrics_with_http_info(device_name, volume_container_name, volume_name, resource_group_name, manager_name, filter, custom_headers:nil) + list_metrics_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, filter, custom_headers:custom_headers).value! end # @@ -372,7 +374,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, filter, custom_headers = nil) + def list_metrics_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, filter, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'volume_container_name is nil' if volume_container_name.nil? fail ArgumentError, 'volume_name is nil' if volume_name.nil? @@ -386,6 +388,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -444,8 +447,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MetricDefinitionList] operation results. # - def list_metric_definition(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers = nil) - response = list_metric_definition_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers).value! + def list_metric_definition(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:nil) + response = list_metric_definition_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -462,8 +465,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_definition_with_http_info(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers = nil) - list_metric_definition_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers).value! + def list_metric_definition_with_http_info(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:nil) + list_metric_definition_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -479,7 +482,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definition_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers = nil) + def list_metric_definition_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'volume_container_name is nil' if volume_container_name.nil? fail ArgumentError, 'volume_name is nil' if volume_name.nil? @@ -492,6 +495,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -547,8 +551,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [VolumeList] operation results. # - def list_by_device(device_name, resource_group_name, manager_name, custom_headers = nil) - response = list_by_device_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_by_device(device_name, resource_group_name, manager_name, custom_headers:nil) + response = list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -563,8 +567,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_device_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil) - list_by_device_async(device_name, resource_group_name, manager_name, custom_headers).value! + def list_by_device_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil) + list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -578,7 +582,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_device_async(device_name, resource_group_name, manager_name, custom_headers = nil) + def list_by_device_async(device_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -589,6 +593,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -647,8 +652,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Volume] operation results. # - def begin_create_or_update(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers = nil) - response = begin_create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers:nil) + response = begin_create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -666,8 +671,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers = nil) - begin_create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers).value! + def begin_create_or_update_with_http_info(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers:nil) + begin_create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -684,7 +689,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers = nil) + def begin_create_or_update_async(device_name, volume_container_name, volume_name, parameters, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'volume_container_name is nil' if volume_container_name.nil? fail ArgumentError, 'volume_name is nil' if volume_name.nil? @@ -698,7 +703,6 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -763,8 +767,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def begin_delete(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers = nil) - response = begin_delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:nil) + response = begin_delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end @@ -781,8 +785,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers = nil) - begin_delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers).value! + def begin_delete_with_http_info(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:nil) + begin_delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:custom_headers).value! end # @@ -798,7 +802,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers = nil) + def begin_delete_async(device_name, volume_container_name, volume_name, resource_group_name, manager_name, custom_headers:nil) fail ArgumentError, 'device_name is nil' if device_name.nil? fail ArgumentError, 'volume_container_name is nil' if volume_container_name.nil? fail ArgumentError, 'volume_name is nil' if volume_name.nil? @@ -811,6 +815,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_stor_simple8000_series/lib/profiles/latest/modules/storsimple8000series_profile_module.rb b/management/azure_mgmt_stor_simple8000_series/lib/profiles/latest/modules/storsimple8000series_profile_module.rb index a0b09ad68..88c4617cd 100644 --- a/management/azure_mgmt_stor_simple8000_series/lib/profiles/latest/modules/storsimple8000series_profile_module.rb +++ b/management/azure_mgmt_stor_simple8000_series/lib/profiles/latest/modules/storsimple8000series_profile_module.rb @@ -204,27 +204,27 @@ module Azure::StorSimple8000Series::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::StorSimple8000Series::Mgmt::V2017_06_01::StorSimple8000SeriesManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::StorSimple8000Series::Mgmt::V2017_06_01::StorSimple8000SeriesManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @managers = client_0.managers - @access_control_records = client_0.access_control_records - @alerts = client_0.alerts - @bandwidth_settings = client_0.bandwidth_settings - @cloud_appliances = client_0.cloud_appliances - @devices = client_0.devices - @device_settings = client_0.device_settings - @backup_policies = client_0.backup_policies - @backup_schedules = client_0.backup_schedules - @backups = client_0.backups - @hardware_component_groups = client_0.hardware_component_groups - @jobs = client_0.jobs - @volume_containers = client_0.volume_containers - @volumes = client_0.volumes - @storage_account_credentials = client_0.storage_account_credentials + add_telemetry(@client_0) + @operations = @client_0.operations + @managers = @client_0.managers + @access_control_records = @client_0.access_control_records + @alerts = @client_0.alerts + @bandwidth_settings = @client_0.bandwidth_settings + @cloud_appliances = @client_0.cloud_appliances + @devices = @client_0.devices + @device_settings = @client_0.device_settings + @backup_policies = @client_0.backup_policies + @backup_schedules = @client_0.backup_schedules + @backups = @client_0.backups + @hardware_component_groups = @client_0.hardware_component_groups + @jobs = @client_0.jobs + @volume_containers = @client_0.volume_containers + @volumes = @client_0.volumes + @storage_account_credentials = @client_0.storage_account_credentials @model_classes = ModelClasses.new end @@ -234,6 +234,14 @@ module Azure::StorSimple8000Series::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_accounts.rb index a7bd9d0d2..dd6af902c 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers = nil) - response = check_name_availability_async(account_name, custom_headers).value! + def check_name_availability(account_name, custom_headers:nil) + response = check_name_availability_async(account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers = nil) - check_name_availability_async(account_name, custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers:nil) + check_name_availability_async(account_name, custom_headers:custom_headers).value! end # @@ -66,14 +66,13 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers = nil) + def check_name_availability_async(account_name, custom_headers:nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -145,8 +144,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,9 +163,9 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def create_async(resource_group_name, account_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -194,8 +193,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -212,8 +211,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - delete_async(resource_group_name, account_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -229,7 +228,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -237,6 +236,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -286,8 +286,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers = nil) - response = get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers:nil) + response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -306,8 +306,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -325,7 +325,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers = nil) + def get_properties_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -333,6 +333,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -401,8 +402,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -430,8 +431,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -458,7 +459,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers = nil) + def update_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -467,7 +468,6 @@ module Azure::Storage::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -530,8 +530,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [StorageAccountKeys] operation results. # - def list_keys(resource_group_name, account_name, custom_headers = nil) - response = list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers:nil) + response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -545,8 +545,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -559,7 +559,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers = nil) + def list_keys_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -567,6 +567,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -620,8 +621,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -634,8 +635,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -647,12 +648,13 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -708,8 +710,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -724,8 +726,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -739,13 +741,14 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -805,8 +808,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [StorageAccountKeys] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -825,8 +828,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! end # @@ -844,7 +847,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'regenerate_key is nil' if regenerate_key.nil? @@ -853,7 +856,6 @@ module Azure::Storage::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -925,8 +927,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -949,8 +951,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -972,7 +974,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -981,7 +983,6 @@ module Azure::Storage::Mgmt::V2015_05_01_preview request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1045,8 +1046,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [StorageAccountListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1061,8 +1062,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1076,11 +1077,12 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1135,8 +1137,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1151,8 +1153,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1166,11 +1168,12 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1224,12 +1227,12 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # @return [StorageAccountListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1247,12 +1250,12 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # @return [StorageAccountListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/usage_operations.rb index 9d85fca04..ebabe3d6c 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [UsageListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Storage::Mgmt::V2015_05_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_accounts.rb index 466fde859..bdc35f03c 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers = nil) - response = check_name_availability_async(account_name, custom_headers).value! + def check_name_availability(account_name, custom_headers:nil) + response = check_name_availability_async(account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers = nil) - check_name_availability_async(account_name, custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers:nil) + check_name_availability_async(account_name, custom_headers:custom_headers).value! end # @@ -66,14 +66,13 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers = nil) + def check_name_availability_async(account_name, custom_headers:nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -145,8 +144,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,9 +163,9 @@ module Azure::Storage::Mgmt::V2015_06_15 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def create_async(resource_group_name, account_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -194,8 +193,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -212,8 +211,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - delete_async(resource_group_name, account_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -229,7 +228,7 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -242,6 +241,7 @@ module Azure::Storage::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +291,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers = nil) - response = get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers:nil) + response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -311,8 +311,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -330,7 +330,7 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers = nil) + def get_properties_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -343,6 +343,7 @@ module Azure::Storage::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -410,8 +411,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -438,8 +439,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -465,7 +466,7 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers = nil) + def update_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -479,7 +480,6 @@ module Azure::Storage::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -541,8 +541,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [StorageAccountListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -555,8 +555,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -568,12 +568,13 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -629,8 +630,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -645,8 +646,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -660,7 +661,7 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -670,6 +671,7 @@ module Azure::Storage::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -727,8 +729,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [StorageAccountKeys] operation results. # - def list_keys(resource_group_name, account_name, custom_headers = nil) - response = list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers:nil) + response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -745,8 +747,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -762,7 +764,7 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers = nil) + def list_keys_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -775,6 +777,7 @@ module Azure::Storage::Mgmt::V2015_06_15 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -834,8 +837,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [StorageAccountKeys] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -854,8 +857,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! end # @@ -873,7 +876,7 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -887,7 +890,6 @@ module Azure::Storage::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -959,8 +961,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -983,8 +985,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -1006,7 +1008,7 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1020,7 +1022,6 @@ module Azure::Storage::Mgmt::V2015_06_15 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/usage_operations.rb index 75e047d5b..1a955f360 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [UsageListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Storage::Mgmt::V2015_06_15 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_accounts.rb index 74848e3ed..ee60e390b 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers = nil) - response = check_name_availability_async(account_name, custom_headers).value! + def check_name_availability(account_name, custom_headers:nil) + response = check_name_availability_async(account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers = nil) - check_name_availability_async(account_name, custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers:nil) + check_name_availability_async(account_name, custom_headers:custom_headers).value! end # @@ -66,14 +66,13 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers = nil) + def check_name_availability_async(account_name, custom_headers:nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -145,8 +144,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,9 +163,9 @@ module Azure::Storage::Mgmt::V2016_01_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def create_async(resource_group_name, account_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -194,8 +193,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -212,8 +211,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - delete_async(resource_group_name, account_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -229,7 +228,7 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 @@ -239,6 +238,7 @@ module Azure::Storage::Mgmt::V2016_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -288,8 +288,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers = nil) - response = get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers:nil) + response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -308,8 +308,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -327,7 +327,7 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers = nil) + def get_properties_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 @@ -337,6 +337,7 @@ module Azure::Storage::Mgmt::V2016_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -404,8 +405,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -432,8 +433,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -459,7 +460,7 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers = nil) + def update_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 @@ -470,7 +471,6 @@ module Azure::Storage::Mgmt::V2016_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -532,8 +532,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [StorageAccountListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -546,8 +546,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -559,12 +559,13 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -620,8 +621,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -636,8 +637,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -651,13 +652,14 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -715,8 +717,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [StorageAccountListKeysResult] operation results. # - def list_keys(resource_group_name, account_name, custom_headers = nil) - response = list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers:nil) + response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -733,8 +735,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -750,7 +752,7 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers = nil) + def list_keys_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 @@ -760,6 +762,7 @@ module Azure::Storage::Mgmt::V2016_01_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -819,8 +822,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [StorageAccountListKeysResult] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -839,8 +842,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! end # @@ -858,7 +861,7 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 @@ -869,7 +872,6 @@ module Azure::Storage::Mgmt::V2016_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -941,8 +943,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -965,8 +967,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -988,7 +990,7 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 @@ -999,7 +1001,6 @@ module Azure::Storage::Mgmt::V2016_01_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/usage_operations.rb index ac57e7559..94e9435be 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [UsageListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Storage::Mgmt::V2016_01_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_accounts.rb index 8f29fac60..3768b5fb7 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers = nil) - response = check_name_availability_async(account_name, custom_headers).value! + def check_name_availability(account_name, custom_headers:nil) + response = check_name_availability_async(account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers = nil) - check_name_availability_async(account_name, custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers:nil) + check_name_availability_async(account_name, custom_headers:custom_headers).value! end # @@ -66,14 +66,13 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers = nil) + def check_name_availability_async(account_name, custom_headers:nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -145,8 +144,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,9 +163,9 @@ module Azure::Storage::Mgmt::V2016_12_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def create_async(resource_group_name, account_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -194,8 +193,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -212,8 +211,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - delete_async(resource_group_name, account_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -229,7 +228,7 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -242,6 +241,7 @@ module Azure::Storage::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +291,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers = nil) - response = get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers:nil) + response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -311,8 +311,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -330,7 +330,7 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers = nil) + def get_properties_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -343,6 +343,7 @@ module Azure::Storage::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -410,8 +411,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -438,8 +439,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -465,7 +466,7 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers = nil) + def update_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -479,7 +480,6 @@ module Azure::Storage::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -541,8 +541,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [StorageAccountListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -555,8 +555,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -568,12 +568,13 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -629,8 +630,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -645,8 +646,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -660,7 +661,7 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -670,6 +671,7 @@ module Azure::Storage::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -727,8 +729,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [StorageAccountListKeysResult] operation results. # - def list_keys(resource_group_name, account_name, custom_headers = nil) - response = list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers:nil) + response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -745,8 +747,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -762,7 +764,7 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers = nil) + def list_keys_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -775,6 +777,7 @@ module Azure::Storage::Mgmt::V2016_12_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -834,8 +837,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [StorageAccountListKeysResult] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -854,8 +857,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! end # @@ -873,7 +876,7 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -887,7 +890,6 @@ module Azure::Storage::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -955,8 +957,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [ListAccountSasResponse] operation results. # - def list_account_sas(resource_group_name, account_name, parameters, custom_headers = nil) - response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_account_sas(resource_group_name, account_name, parameters, custom_headers:nil) + response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -975,8 +977,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -994,7 +996,7 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) + def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1008,7 +1010,6 @@ module Azure::Storage::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1076,8 +1077,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [ListServiceSasResponse] operation results. # - def list_service_sas(resource_group_name, account_name, parameters, custom_headers = nil) - response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_service_sas(resource_group_name, account_name, parameters, custom_headers:nil) + response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1096,8 +1097,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -1115,7 +1116,7 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) + def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1129,7 +1130,6 @@ module Azure::Storage::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1201,8 +1201,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1225,8 +1225,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -1248,7 +1248,7 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1262,7 +1262,6 @@ module Azure::Storage::Mgmt::V2016_12_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/usage_operations.rb index 4b264e66a..ff12a08bc 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [UsageListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Storage::Mgmt::V2016_12_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/operations.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/operations.rb index d1cce6018..56bbe3ce5 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/operations.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/operations.rb @@ -29,8 +29,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [OperationListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/skus.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/skus.rb index b3a0976a7..15b3b7669 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/skus.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/skus.rb @@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [StorageSkuListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_accounts.rb index 4cf077445..f4b754d5b 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers = nil) - response = check_name_availability_async(account_name, custom_headers).value! + def check_name_availability(account_name, custom_headers:nil) + response = check_name_availability_async(account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers = nil) - check_name_availability_async(account_name, custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers:nil) + check_name_availability_async(account_name, custom_headers:custom_headers).value! end # @@ -66,14 +66,13 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers = nil) + def check_name_availability_async(account_name, custom_headers:nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -145,8 +144,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,9 +163,9 @@ module Azure::Storage::Mgmt::V2017_06_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def create_async(resource_group_name, account_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -194,8 +193,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -212,8 +211,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - delete_async(resource_group_name, account_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -229,7 +228,7 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -242,6 +241,7 @@ module Azure::Storage::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +291,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers = nil) - response = get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers:nil) + response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -311,8 +311,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -330,7 +330,7 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers = nil) + def get_properties_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -343,6 +343,7 @@ module Azure::Storage::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -410,8 +411,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -438,8 +439,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -465,7 +466,7 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers = nil) + def update_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -479,7 +480,6 @@ module Azure::Storage::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -541,8 +541,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [StorageAccountListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -555,8 +555,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -568,12 +568,13 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -629,8 +630,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -645,8 +646,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -660,7 +661,7 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -670,6 +671,7 @@ module Azure::Storage::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -727,8 +729,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [StorageAccountListKeysResult] operation results. # - def list_keys(resource_group_name, account_name, custom_headers = nil) - response = list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers:nil) + response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -745,8 +747,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -762,7 +764,7 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers = nil) + def list_keys_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -775,6 +777,7 @@ module Azure::Storage::Mgmt::V2017_06_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -834,8 +837,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [StorageAccountListKeysResult] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -854,8 +857,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! end # @@ -873,7 +876,7 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -887,7 +890,6 @@ module Azure::Storage::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -955,8 +957,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [ListAccountSasResponse] operation results. # - def list_account_sas(resource_group_name, account_name, parameters, custom_headers = nil) - response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_account_sas(resource_group_name, account_name, parameters, custom_headers:nil) + response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -975,8 +977,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -994,7 +996,7 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) + def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1008,7 +1010,6 @@ module Azure::Storage::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1076,8 +1077,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [ListServiceSasResponse] operation results. # - def list_service_sas(resource_group_name, account_name, parameters, custom_headers = nil) - response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_service_sas(resource_group_name, account_name, parameters, custom_headers:nil) + response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1096,8 +1097,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -1115,7 +1116,7 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) + def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1129,7 +1130,6 @@ module Azure::Storage::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1201,8 +1201,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1225,8 +1225,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -1248,7 +1248,7 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1262,7 +1262,6 @@ module Azure::Storage::Mgmt::V2017_06_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/usage_operations.rb index 32d0daece..3d2c31b46 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [UsageListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Storage::Mgmt::V2017_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/operations.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/operations.rb index 089e335c4..fe7d0148a 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/operations.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/operations.rb @@ -29,8 +29,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [OperationListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/skus.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/skus.rb index af8ace817..0f01e2ef0 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/skus.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/skus.rb @@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [StorageSkuListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb index fb13e1d40..17646a7e5 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers = nil) - response = check_name_availability_async(account_name, custom_headers).value! + def check_name_availability(account_name, custom_headers:nil) + response = check_name_availability_async(account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers = nil) - check_name_availability_async(account_name, custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers:nil) + check_name_availability_async(account_name, custom_headers:custom_headers).value! end # @@ -66,14 +66,13 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers = nil) + def check_name_availability_async(account_name, custom_headers:nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -145,8 +144,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers:nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -164,9 +163,9 @@ module Azure::Storage::Mgmt::V2017_10_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def create_async(resource_group_name, account_name, parameters, custom_headers:nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -194,8 +193,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers = nil) - response = delete_async(resource_group_name, account_name, custom_headers).value! + def delete(resource_group_name, account_name, custom_headers:nil) + response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end @@ -212,8 +211,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) - delete_async(resource_group_name, account_name, custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) + delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -229,7 +228,7 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers = nil) + def delete_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -242,6 +241,7 @@ module Azure::Storage::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +291,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers = nil) - response = get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers:nil) + response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -311,8 +311,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) - get_properties_async(resource_group_name, account_name, custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) + get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -330,7 +330,7 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers = nil) + def get_properties_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -343,6 +343,7 @@ module Azure::Storage::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -410,8 +411,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -438,8 +439,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - update_async(resource_group_name, account_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -465,7 +466,7 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers = nil) + def update_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -479,7 +480,6 @@ module Azure::Storage::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -541,8 +541,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [StorageAccountListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -555,8 +555,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -568,12 +568,13 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -629,8 +630,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -645,8 +646,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -660,7 +661,7 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -670,6 +671,7 @@ module Azure::Storage::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -727,8 +729,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [StorageAccountListKeysResult] operation results. # - def list_keys(resource_group_name, account_name, custom_headers = nil) - response = list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers:nil) + response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -745,8 +747,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) - list_keys_async(resource_group_name, account_name, custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) + list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! end # @@ -762,7 +764,7 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers = nil) + def list_keys_async(resource_group_name, account_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -775,6 +777,7 @@ module Azure::Storage::Mgmt::V2017_10_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -834,8 +837,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [StorageAccountListKeysResult] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -854,8 +857,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! end # @@ -873,7 +876,7 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -887,7 +890,6 @@ module Azure::Storage::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -955,8 +957,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [ListAccountSasResponse] operation results. # - def list_account_sas(resource_group_name, account_name, parameters, custom_headers = nil) - response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_account_sas(resource_group_name, account_name, parameters, custom_headers:nil) + response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -975,8 +977,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -994,7 +996,7 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) + def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1008,7 +1010,6 @@ module Azure::Storage::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1076,8 +1077,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [ListServiceSasResponse] operation results. # - def list_service_sas(resource_group_name, account_name, parameters, custom_headers = nil) - response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_service_sas(resource_group_name, account_name, parameters, custom_headers:nil) + response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1096,8 +1097,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! + def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -1115,7 +1116,7 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) + def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1129,7 +1130,6 @@ module Azure::Storage::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1201,8 +1201,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1225,8 +1225,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end # @@ -1248,7 +1248,7 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1262,7 +1262,6 @@ module Azure::Storage::Mgmt::V2017_10_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/usage_operations.rb index 5f3c7403d..7385efc49 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [UsageListResult] operation results. # - def list(custom_headers = nil) - response = list_async(custom_headers).value! + def list(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Storage::Mgmt::V2017_10_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/profiles/latest/modules/storage_profile_module.rb b/management/azure_mgmt_storage/lib/profiles/latest/modules/storage_profile_module.rb index dbb69c1d0..67baeaf31 100644 --- a/management/azure_mgmt_storage/lib/profiles/latest/modules/storage_profile_module.rb +++ b/management/azure_mgmt_storage/lib/profiles/latest/modules/storage_profile_module.rb @@ -90,15 +90,15 @@ module Azure::Storage::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Storage::Mgmt::V2017_10_01::StorageManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Storage::Mgmt::V2017_10_01::StorageManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @skus = client_0.skus - @storage_accounts = client_0.storage_accounts - @usage_operations = client_0.usage_operations + add_telemetry(@client_0) + @operations = @client_0.operations + @skus = @client_0.skus + @storage_accounts = @client_0.storage_accounts + @usage_operations = @client_0.usage_operations @model_classes = ModelClasses.new end @@ -108,6 +108,14 @@ module Azure::Storage::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_storage/lib/profiles/v2017_03_09/modules/storage_profile_module.rb b/management/azure_mgmt_storage/lib/profiles/v2017_03_09/modules/storage_profile_module.rb index 5bdce984a..9b3738795 100644 --- a/management/azure_mgmt_storage/lib/profiles/v2017_03_09/modules/storage_profile_module.rb +++ b/management/azure_mgmt_storage/lib/profiles/v2017_03_09/modules/storage_profile_module.rb @@ -50,13 +50,13 @@ module Azure::Storage::Profiles::V2017_03_09 @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Storage::Mgmt::V2015_06_15::StorageManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Storage::Mgmt::V2015_06_15::StorageManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @storage_accounts = client_0.storage_accounts - @usage_operations = client_0.usage_operations + add_telemetry(@client_0) + @storage_accounts = @client_0.storage_accounts + @usage_operations = @client_0.usage_operations @model_classes = ModelClasses.new end @@ -66,6 +66,14 @@ module Azure::Storage::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/functions.rb b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/functions.rb index 35e7d8181..bcf7f3556 100644 --- a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/functions.rb +++ b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/functions.rb @@ -43,8 +43,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Function] operation results. # - def create_or_replace(function, resource_group_name, job_name, function_name, if_match = nil, if_none_match = nil, custom_headers = nil) - response = create_or_replace_async(function, resource_group_name, job_name, function_name, if_match, if_none_match, custom_headers).value! + def create_or_replace(function, resource_group_name, job_name, function_name, if_match:nil, if_none_match:nil, custom_headers:nil) + response = create_or_replace_async(function, resource_group_name, job_name, function_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -70,8 +70,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_replace_with_http_info(function, resource_group_name, job_name, function_name, if_match = nil, if_none_match = nil, custom_headers = nil) - create_or_replace_async(function, resource_group_name, job_name, function_name, if_match, if_none_match, custom_headers).value! + def create_or_replace_with_http_info(function, resource_group_name, job_name, function_name, if_match:nil, if_none_match:nil, custom_headers:nil) + create_or_replace_async(function, resource_group_name, job_name, function_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! end # @@ -96,7 +96,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_replace_async(function, resource_group_name, job_name, function_name, if_match = nil, if_none_match = nil, custom_headers = nil) + def create_or_replace_async(function, resource_group_name, job_name, function_name, if_match:nil, if_none_match:nil, custom_headers:nil) fail ArgumentError, 'function is nil' if function.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -106,7 +106,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -194,8 +193,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Function] operation results. # - def update(function, resource_group_name, job_name, function_name, if_match = nil, custom_headers = nil) - response = update_async(function, resource_group_name, job_name, function_name, if_match, custom_headers).value! + def update(function, resource_group_name, job_name, function_name, if_match:nil, custom_headers:nil) + response = update_async(function, resource_group_name, job_name, function_name, if_match:if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -222,8 +221,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(function, resource_group_name, job_name, function_name, if_match = nil, custom_headers = nil) - update_async(function, resource_group_name, job_name, function_name, if_match, custom_headers).value! + def update_with_http_info(function, resource_group_name, job_name, function_name, if_match:nil, custom_headers:nil) + update_async(function, resource_group_name, job_name, function_name, if_match:if_match, custom_headers:custom_headers).value! end # @@ -249,7 +248,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(function, resource_group_name, job_name, function_name, if_match = nil, custom_headers = nil) + def update_async(function, resource_group_name, job_name, function_name, if_match:nil, custom_headers:nil) fail ArgumentError, 'function is nil' if function.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -259,7 +258,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -325,8 +323,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def delete(resource_group_name, job_name, function_name, custom_headers = nil) - response = delete_async(resource_group_name, job_name, function_name, custom_headers).value! + def delete(resource_group_name, job_name, function_name, custom_headers:nil) + response = delete_async(resource_group_name, job_name, function_name, custom_headers:custom_headers).value! nil end @@ -343,8 +341,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, job_name, function_name, custom_headers = nil) - delete_async(resource_group_name, job_name, function_name, custom_headers).value! + def delete_with_http_info(resource_group_name, job_name, function_name, custom_headers:nil) + delete_async(resource_group_name, job_name, function_name, custom_headers:custom_headers).value! end # @@ -360,7 +358,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, job_name, function_name, custom_headers = nil) + def delete_async(resource_group_name, job_name, function_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -369,6 +367,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -416,8 +415,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Function] operation results. # - def get(resource_group_name, job_name, function_name, custom_headers = nil) - response = get_async(resource_group_name, job_name, function_name, custom_headers).value! + def get(resource_group_name, job_name, function_name, custom_headers:nil) + response = get_async(resource_group_name, job_name, function_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -434,8 +433,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, job_name, function_name, custom_headers = nil) - get_async(resource_group_name, job_name, function_name, custom_headers).value! + def get_with_http_info(resource_group_name, job_name, function_name, custom_headers:nil) + get_async(resource_group_name, job_name, function_name, custom_headers:custom_headers).value! end # @@ -451,7 +450,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, job_name, function_name, custom_headers = nil) + def get_async(resource_group_name, job_name, function_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -460,6 +459,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -520,8 +520,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_by_streaming_job(resource_group_name, job_name, select = nil, custom_headers = nil) - first_page = list_by_streaming_job_as_lazy(resource_group_name, job_name, select, custom_headers) + def list_by_streaming_job(resource_group_name, job_name, select:nil, custom_headers:nil) + first_page = list_by_streaming_job_as_lazy(resource_group_name, job_name, select:select, custom_headers:custom_headers) first_page.get_all_items end @@ -541,8 +541,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_streaming_job_with_http_info(resource_group_name, job_name, select = nil, custom_headers = nil) - list_by_streaming_job_async(resource_group_name, job_name, select, custom_headers).value! + def list_by_streaming_job_with_http_info(resource_group_name, job_name, select:nil, custom_headers:nil) + list_by_streaming_job_async(resource_group_name, job_name, select:select, custom_headers:custom_headers).value! end # @@ -561,7 +561,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_streaming_job_async(resource_group_name, job_name, select = nil, custom_headers = nil) + def list_by_streaming_job_async(resource_group_name, job_name, select:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -569,6 +569,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -635,8 +636,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [ResourceTestStatus] operation results. # - def test(resource_group_name, job_name, function_name, function = nil, custom_headers = nil) - response = test_async(resource_group_name, job_name, function_name, function, custom_headers).value! + def test(resource_group_name, job_name, function_name, function:nil, custom_headers:nil) + response = test_async(resource_group_name, job_name, function_name, function:function, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -659,9 +660,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def test_async(resource_group_name, job_name, function_name, function = nil, custom_headers = nil) + def test_async(resource_group_name, job_name, function_name, function:nil, custom_headers:nil) # Send request - promise = begin_test_async(resource_group_name, job_name, function_name, function, custom_headers) + promise = begin_test_async(resource_group_name, job_name, function_name, function:function, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -694,8 +695,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Function] operation results. # - def retrieve_default_definition(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters = nil, custom_headers = nil) - response = retrieve_default_definition_async(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters, custom_headers).value! + def retrieve_default_definition(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters:nil, custom_headers:nil) + response = retrieve_default_definition_async(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters:function_retrieve_default_definition_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -716,8 +717,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def retrieve_default_definition_with_http_info(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters = nil, custom_headers = nil) - retrieve_default_definition_async(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters, custom_headers).value! + def retrieve_default_definition_with_http_info(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters:nil, custom_headers:nil) + retrieve_default_definition_async(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters:function_retrieve_default_definition_parameters, custom_headers:custom_headers).value! end # @@ -737,7 +738,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def retrieve_default_definition_async(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters = nil, custom_headers = nil) + def retrieve_default_definition_async(resource_group_name, job_name, function_name, function_retrieve_default_definition_parameters:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -746,7 +747,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -821,8 +821,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [ResourceTestStatus] operation results. # - def begin_test(resource_group_name, job_name, function_name, function = nil, custom_headers = nil) - response = begin_test_async(resource_group_name, job_name, function_name, function, custom_headers).value! + def begin_test(resource_group_name, job_name, function_name, function:nil, custom_headers:nil) + response = begin_test_async(resource_group_name, job_name, function_name, function:function, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -848,8 +848,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_test_with_http_info(resource_group_name, job_name, function_name, function = nil, custom_headers = nil) - begin_test_async(resource_group_name, job_name, function_name, function, custom_headers).value! + def begin_test_with_http_info(resource_group_name, job_name, function_name, function:nil, custom_headers:nil) + begin_test_async(resource_group_name, job_name, function_name, function:function, custom_headers:custom_headers).value! end # @@ -874,7 +874,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_test_async(resource_group_name, job_name, function_name, function = nil, custom_headers = nil) + def begin_test_async(resource_group_name, job_name, function_name, function:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -883,7 +883,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -946,8 +945,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [FunctionListResult] operation results. # - def list_by_streaming_job_next(next_page_link, custom_headers = nil) - response = list_by_streaming_job_next_async(next_page_link, custom_headers).value! + def list_by_streaming_job_next(next_page_link, custom_headers:nil) + response = list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -961,8 +960,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_streaming_job_next_with_http_info(next_page_link, custom_headers = nil) - list_by_streaming_job_next_async(next_page_link, custom_headers).value! + def list_by_streaming_job_next_with_http_info(next_page_link, custom_headers:nil) + list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -975,11 +974,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_streaming_job_next_async(next_page_link, custom_headers = nil) + def list_by_streaming_job_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1040,12 +1040,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [FunctionListResult] which provide lazy access to pages of the # response. # - def list_by_streaming_job_as_lazy(resource_group_name, job_name, select = nil, custom_headers = nil) - response = list_by_streaming_job_async(resource_group_name, job_name, select, custom_headers).value! + def list_by_streaming_job_as_lazy(resource_group_name, job_name, select:nil, custom_headers:nil) + response = list_by_streaming_job_async(resource_group_name, job_name, select:select, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_streaming_job_next_async(next_page_link, custom_headers) + list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/inputs.rb b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/inputs.rb index 8174dc126..162a80de6 100644 --- a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/inputs.rb +++ b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/inputs.rb @@ -43,8 +43,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Input] operation results. # - def create_or_replace(input, resource_group_name, job_name, input_name, if_match = nil, if_none_match = nil, custom_headers = nil) - response = create_or_replace_async(input, resource_group_name, job_name, input_name, if_match, if_none_match, custom_headers).value! + def create_or_replace(input, resource_group_name, job_name, input_name, if_match:nil, if_none_match:nil, custom_headers:nil) + response = create_or_replace_async(input, resource_group_name, job_name, input_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -70,8 +70,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_replace_with_http_info(input, resource_group_name, job_name, input_name, if_match = nil, if_none_match = nil, custom_headers = nil) - create_or_replace_async(input, resource_group_name, job_name, input_name, if_match, if_none_match, custom_headers).value! + def create_or_replace_with_http_info(input, resource_group_name, job_name, input_name, if_match:nil, if_none_match:nil, custom_headers:nil) + create_or_replace_async(input, resource_group_name, job_name, input_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! end # @@ -96,7 +96,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_replace_async(input, resource_group_name, job_name, input_name, if_match = nil, if_none_match = nil, custom_headers = nil) + def create_or_replace_async(input, resource_group_name, job_name, input_name, if_match:nil, if_none_match:nil, custom_headers:nil) fail ArgumentError, 'input is nil' if input.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -106,7 +106,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -194,8 +193,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Input] operation results. # - def update(input, resource_group_name, job_name, input_name, if_match = nil, custom_headers = nil) - response = update_async(input, resource_group_name, job_name, input_name, if_match, custom_headers).value! + def update(input, resource_group_name, job_name, input_name, if_match:nil, custom_headers:nil) + response = update_async(input, resource_group_name, job_name, input_name, if_match:if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -222,8 +221,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(input, resource_group_name, job_name, input_name, if_match = nil, custom_headers = nil) - update_async(input, resource_group_name, job_name, input_name, if_match, custom_headers).value! + def update_with_http_info(input, resource_group_name, job_name, input_name, if_match:nil, custom_headers:nil) + update_async(input, resource_group_name, job_name, input_name, if_match:if_match, custom_headers:custom_headers).value! end # @@ -249,7 +248,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(input, resource_group_name, job_name, input_name, if_match = nil, custom_headers = nil) + def update_async(input, resource_group_name, job_name, input_name, if_match:nil, custom_headers:nil) fail ArgumentError, 'input is nil' if input.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -259,7 +258,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -325,8 +323,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def delete(resource_group_name, job_name, input_name, custom_headers = nil) - response = delete_async(resource_group_name, job_name, input_name, custom_headers).value! + def delete(resource_group_name, job_name, input_name, custom_headers:nil) + response = delete_async(resource_group_name, job_name, input_name, custom_headers:custom_headers).value! nil end @@ -343,8 +341,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, job_name, input_name, custom_headers = nil) - delete_async(resource_group_name, job_name, input_name, custom_headers).value! + def delete_with_http_info(resource_group_name, job_name, input_name, custom_headers:nil) + delete_async(resource_group_name, job_name, input_name, custom_headers:custom_headers).value! end # @@ -360,7 +358,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, job_name, input_name, custom_headers = nil) + def delete_async(resource_group_name, job_name, input_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -369,6 +367,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -416,8 +415,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Input] operation results. # - def get(resource_group_name, job_name, input_name, custom_headers = nil) - response = get_async(resource_group_name, job_name, input_name, custom_headers).value! + def get(resource_group_name, job_name, input_name, custom_headers:nil) + response = get_async(resource_group_name, job_name, input_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -434,8 +433,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, job_name, input_name, custom_headers = nil) - get_async(resource_group_name, job_name, input_name, custom_headers).value! + def get_with_http_info(resource_group_name, job_name, input_name, custom_headers:nil) + get_async(resource_group_name, job_name, input_name, custom_headers:custom_headers).value! end # @@ -451,7 +450,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, job_name, input_name, custom_headers = nil) + def get_async(resource_group_name, job_name, input_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -460,6 +459,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -520,8 +520,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_by_streaming_job(resource_group_name, job_name, select = nil, custom_headers = nil) - first_page = list_by_streaming_job_as_lazy(resource_group_name, job_name, select, custom_headers) + def list_by_streaming_job(resource_group_name, job_name, select:nil, custom_headers:nil) + first_page = list_by_streaming_job_as_lazy(resource_group_name, job_name, select:select, custom_headers:custom_headers) first_page.get_all_items end @@ -541,8 +541,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_streaming_job_with_http_info(resource_group_name, job_name, select = nil, custom_headers = nil) - list_by_streaming_job_async(resource_group_name, job_name, select, custom_headers).value! + def list_by_streaming_job_with_http_info(resource_group_name, job_name, select:nil, custom_headers:nil) + list_by_streaming_job_async(resource_group_name, job_name, select:select, custom_headers:custom_headers).value! end # @@ -561,7 +561,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_streaming_job_async(resource_group_name, job_name, select = nil, custom_headers = nil) + def list_by_streaming_job_async(resource_group_name, job_name, select:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -569,6 +569,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -633,8 +634,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [ResourceTestStatus] operation results. # - def test(resource_group_name, job_name, input_name, input = nil, custom_headers = nil) - response = test_async(resource_group_name, job_name, input_name, input, custom_headers).value! + def test(resource_group_name, job_name, input_name, input:nil, custom_headers:nil) + response = test_async(resource_group_name, job_name, input_name, input:input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -656,9 +657,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def test_async(resource_group_name, job_name, input_name, input = nil, custom_headers = nil) + def test_async(resource_group_name, job_name, input_name, input:nil, custom_headers:nil) # Send request - promise = begin_test_async(resource_group_name, job_name, input_name, input, custom_headers) + promise = begin_test_async(resource_group_name, job_name, input_name, input:input, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -694,8 +695,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [ResourceTestStatus] operation results. # - def begin_test(resource_group_name, job_name, input_name, input = nil, custom_headers = nil) - response = begin_test_async(resource_group_name, job_name, input_name, input, custom_headers).value! + def begin_test(resource_group_name, job_name, input_name, input:nil, custom_headers:nil) + response = begin_test_async(resource_group_name, job_name, input_name, input:input, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -719,8 +720,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_test_with_http_info(resource_group_name, job_name, input_name, input = nil, custom_headers = nil) - begin_test_async(resource_group_name, job_name, input_name, input, custom_headers).value! + def begin_test_with_http_info(resource_group_name, job_name, input_name, input:nil, custom_headers:nil) + begin_test_async(resource_group_name, job_name, input_name, input:input, custom_headers:custom_headers).value! end # @@ -743,7 +744,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_test_async(resource_group_name, job_name, input_name, input = nil, custom_headers = nil) + def begin_test_async(resource_group_name, job_name, input_name, input:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -752,7 +753,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -815,8 +815,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [InputListResult] operation results. # - def list_by_streaming_job_next(next_page_link, custom_headers = nil) - response = list_by_streaming_job_next_async(next_page_link, custom_headers).value! + def list_by_streaming_job_next(next_page_link, custom_headers:nil) + response = list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -830,8 +830,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_streaming_job_next_with_http_info(next_page_link, custom_headers = nil) - list_by_streaming_job_next_async(next_page_link, custom_headers).value! + def list_by_streaming_job_next_with_http_info(next_page_link, custom_headers:nil) + list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -844,11 +844,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_streaming_job_next_async(next_page_link, custom_headers = nil) + def list_by_streaming_job_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -908,12 +909,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [InputListResult] which provide lazy access to pages of the response. # - def list_by_streaming_job_as_lazy(resource_group_name, job_name, select = nil, custom_headers = nil) - response = list_by_streaming_job_async(resource_group_name, job_name, select, custom_headers).value! + def list_by_streaming_job_as_lazy(resource_group_name, job_name, select:nil, custom_headers:nil) + response = list_by_streaming_job_async(resource_group_name, job_name, select:select, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_streaming_job_next_async(next_page_link, custom_headers) + list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/operations.rb b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/operations.rb index 9579dd55d..8f066b017 100644 --- a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/operations.rb +++ b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/operations.rb @@ -29,8 +29,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [OperationListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [OperationListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/outputs.rb b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/outputs.rb index af8696065..8dfa6919b 100644 --- a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/outputs.rb +++ b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/outputs.rb @@ -43,8 +43,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Output] operation results. # - def create_or_replace(output, resource_group_name, job_name, output_name, if_match = nil, if_none_match = nil, custom_headers = nil) - response = create_or_replace_async(output, resource_group_name, job_name, output_name, if_match, if_none_match, custom_headers).value! + def create_or_replace(output, resource_group_name, job_name, output_name, if_match:nil, if_none_match:nil, custom_headers:nil) + response = create_or_replace_async(output, resource_group_name, job_name, output_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -70,8 +70,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_replace_with_http_info(output, resource_group_name, job_name, output_name, if_match = nil, if_none_match = nil, custom_headers = nil) - create_or_replace_async(output, resource_group_name, job_name, output_name, if_match, if_none_match, custom_headers).value! + def create_or_replace_with_http_info(output, resource_group_name, job_name, output_name, if_match:nil, if_none_match:nil, custom_headers:nil) + create_or_replace_async(output, resource_group_name, job_name, output_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! end # @@ -96,7 +96,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_replace_async(output, resource_group_name, job_name, output_name, if_match = nil, if_none_match = nil, custom_headers = nil) + def create_or_replace_async(output, resource_group_name, job_name, output_name, if_match:nil, if_none_match:nil, custom_headers:nil) fail ArgumentError, 'output is nil' if output.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -106,7 +106,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -194,8 +193,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Output] operation results. # - def update(output, resource_group_name, job_name, output_name, if_match = nil, custom_headers = nil) - response = update_async(output, resource_group_name, job_name, output_name, if_match, custom_headers).value! + def update(output, resource_group_name, job_name, output_name, if_match:nil, custom_headers:nil) + response = update_async(output, resource_group_name, job_name, output_name, if_match:if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -222,8 +221,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(output, resource_group_name, job_name, output_name, if_match = nil, custom_headers = nil) - update_async(output, resource_group_name, job_name, output_name, if_match, custom_headers).value! + def update_with_http_info(output, resource_group_name, job_name, output_name, if_match:nil, custom_headers:nil) + update_async(output, resource_group_name, job_name, output_name, if_match:if_match, custom_headers:custom_headers).value! end # @@ -249,7 +248,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(output, resource_group_name, job_name, output_name, if_match = nil, custom_headers = nil) + def update_async(output, resource_group_name, job_name, output_name, if_match:nil, custom_headers:nil) fail ArgumentError, 'output is nil' if output.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -259,7 +258,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -325,8 +323,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def delete(resource_group_name, job_name, output_name, custom_headers = nil) - response = delete_async(resource_group_name, job_name, output_name, custom_headers).value! + def delete(resource_group_name, job_name, output_name, custom_headers:nil) + response = delete_async(resource_group_name, job_name, output_name, custom_headers:custom_headers).value! nil end @@ -343,8 +341,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, job_name, output_name, custom_headers = nil) - delete_async(resource_group_name, job_name, output_name, custom_headers).value! + def delete_with_http_info(resource_group_name, job_name, output_name, custom_headers:nil) + delete_async(resource_group_name, job_name, output_name, custom_headers:custom_headers).value! end # @@ -360,7 +358,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, job_name, output_name, custom_headers = nil) + def delete_async(resource_group_name, job_name, output_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -369,6 +367,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -416,8 +415,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Output] operation results. # - def get(resource_group_name, job_name, output_name, custom_headers = nil) - response = get_async(resource_group_name, job_name, output_name, custom_headers).value! + def get(resource_group_name, job_name, output_name, custom_headers:nil) + response = get_async(resource_group_name, job_name, output_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -434,8 +433,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, job_name, output_name, custom_headers = nil) - get_async(resource_group_name, job_name, output_name, custom_headers).value! + def get_with_http_info(resource_group_name, job_name, output_name, custom_headers:nil) + get_async(resource_group_name, job_name, output_name, custom_headers:custom_headers).value! end # @@ -451,7 +450,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, job_name, output_name, custom_headers = nil) + def get_async(resource_group_name, job_name, output_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -460,6 +459,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -520,8 +520,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_by_streaming_job(resource_group_name, job_name, select = nil, custom_headers = nil) - first_page = list_by_streaming_job_as_lazy(resource_group_name, job_name, select, custom_headers) + def list_by_streaming_job(resource_group_name, job_name, select:nil, custom_headers:nil) + first_page = list_by_streaming_job_as_lazy(resource_group_name, job_name, select:select, custom_headers:custom_headers) first_page.get_all_items end @@ -541,8 +541,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_streaming_job_with_http_info(resource_group_name, job_name, select = nil, custom_headers = nil) - list_by_streaming_job_async(resource_group_name, job_name, select, custom_headers).value! + def list_by_streaming_job_with_http_info(resource_group_name, job_name, select:nil, custom_headers:nil) + list_by_streaming_job_async(resource_group_name, job_name, select:select, custom_headers:custom_headers).value! end # @@ -561,7 +561,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_streaming_job_async(resource_group_name, job_name, select = nil, custom_headers = nil) + def list_by_streaming_job_async(resource_group_name, job_name, select:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -569,6 +569,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -633,8 +634,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [ResourceTestStatus] operation results. # - def test(resource_group_name, job_name, output_name, output = nil, custom_headers = nil) - response = test_async(resource_group_name, job_name, output_name, output, custom_headers).value! + def test(resource_group_name, job_name, output_name, output:nil, custom_headers:nil) + response = test_async(resource_group_name, job_name, output_name, output:output, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -656,9 +657,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def test_async(resource_group_name, job_name, output_name, output = nil, custom_headers = nil) + def test_async(resource_group_name, job_name, output_name, output:nil, custom_headers:nil) # Send request - promise = begin_test_async(resource_group_name, job_name, output_name, output, custom_headers) + promise = begin_test_async(resource_group_name, job_name, output_name, output:output, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -694,8 +695,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [ResourceTestStatus] operation results. # - def begin_test(resource_group_name, job_name, output_name, output = nil, custom_headers = nil) - response = begin_test_async(resource_group_name, job_name, output_name, output, custom_headers).value! + def begin_test(resource_group_name, job_name, output_name, output:nil, custom_headers:nil) + response = begin_test_async(resource_group_name, job_name, output_name, output:output, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -719,8 +720,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_test_with_http_info(resource_group_name, job_name, output_name, output = nil, custom_headers = nil) - begin_test_async(resource_group_name, job_name, output_name, output, custom_headers).value! + def begin_test_with_http_info(resource_group_name, job_name, output_name, output:nil, custom_headers:nil) + begin_test_async(resource_group_name, job_name, output_name, output:output, custom_headers:custom_headers).value! end # @@ -743,7 +744,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_test_async(resource_group_name, job_name, output_name, output = nil, custom_headers = nil) + def begin_test_async(resource_group_name, job_name, output_name, output:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -752,7 +753,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -815,8 +815,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [OutputListResult] operation results. # - def list_by_streaming_job_next(next_page_link, custom_headers = nil) - response = list_by_streaming_job_next_async(next_page_link, custom_headers).value! + def list_by_streaming_job_next(next_page_link, custom_headers:nil) + response = list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -830,8 +830,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_streaming_job_next_with_http_info(next_page_link, custom_headers = nil) - list_by_streaming_job_next_async(next_page_link, custom_headers).value! + def list_by_streaming_job_next_with_http_info(next_page_link, custom_headers:nil) + list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -844,11 +844,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_streaming_job_next_async(next_page_link, custom_headers = nil) + def list_by_streaming_job_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -909,12 +910,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [OutputListResult] which provide lazy access to pages of the # response. # - def list_by_streaming_job_as_lazy(resource_group_name, job_name, select = nil, custom_headers = nil) - response = list_by_streaming_job_async(resource_group_name, job_name, select, custom_headers).value! + def list_by_streaming_job_as_lazy(resource_group_name, job_name, select:nil, custom_headers:nil) + response = list_by_streaming_job_async(resource_group_name, job_name, select:select, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_streaming_job_next_async(next_page_link, custom_headers) + list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/streaming_jobs.rb b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/streaming_jobs.rb index 4798178e5..7e4af3885 100644 --- a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/streaming_jobs.rb +++ b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/streaming_jobs.rb @@ -41,8 +41,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [StreamingJob] operation results. # - def create_or_replace(streaming_job, resource_group_name, job_name, if_match = nil, if_none_match = nil, custom_headers = nil) - response = create_or_replace_async(streaming_job, resource_group_name, job_name, if_match, if_none_match, custom_headers).value! + def create_or_replace(streaming_job, resource_group_name, job_name, if_match:nil, if_none_match:nil, custom_headers:nil) + response = create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -65,9 +65,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_replace_async(streaming_job, resource_group_name, job_name, if_match = nil, if_none_match = nil, custom_headers = nil) + def create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:nil, if_none_match:nil, custom_headers:nil) # Send request - promise = begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match, if_none_match, custom_headers) + promise = begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -106,8 +106,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [StreamingJob] operation results. # - def update(streaming_job, resource_group_name, job_name, if_match = nil, custom_headers = nil) - response = update_async(streaming_job, resource_group_name, job_name, if_match, custom_headers).value! + def update(streaming_job, resource_group_name, job_name, if_match:nil, custom_headers:nil) + response = update_async(streaming_job, resource_group_name, job_name, if_match:if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -134,8 +134,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(streaming_job, resource_group_name, job_name, if_match = nil, custom_headers = nil) - update_async(streaming_job, resource_group_name, job_name, if_match, custom_headers).value! + def update_with_http_info(streaming_job, resource_group_name, job_name, if_match:nil, custom_headers:nil) + update_async(streaming_job, resource_group_name, job_name, if_match:if_match, custom_headers:custom_headers).value! end # @@ -161,7 +161,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(streaming_job, resource_group_name, job_name, if_match = nil, custom_headers = nil) + def update_async(streaming_job, resource_group_name, job_name, if_match:nil, custom_headers:nil) fail ArgumentError, 'streaming_job is nil' if streaming_job.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -170,7 +170,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -234,8 +233,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, job_name, custom_headers = nil) - response = delete_async(resource_group_name, job_name, custom_headers).value! + def delete(resource_group_name, job_name, custom_headers:nil) + response = delete_async(resource_group_name, job_name, custom_headers:custom_headers).value! nil end @@ -250,9 +249,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, job_name, custom_headers = nil) + def delete_async(resource_group_name, job_name, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, job_name, custom_headers) + promise = begin_delete_async(resource_group_name, job_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -283,8 +282,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [StreamingJob] operation results. # - def get(resource_group_name, job_name, expand = nil, custom_headers = nil) - response = get_async(resource_group_name, job_name, expand, custom_headers).value! + def get(resource_group_name, job_name, expand:nil, custom_headers:nil) + response = get_async(resource_group_name, job_name, expand:expand, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -305,8 +304,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, job_name, expand = nil, custom_headers = nil) - get_async(resource_group_name, job_name, expand, custom_headers).value! + def get_with_http_info(resource_group_name, job_name, expand:nil, custom_headers:nil) + get_async(resource_group_name, job_name, expand:expand, custom_headers:custom_headers).value! end # @@ -326,7 +325,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, job_name, expand = nil, custom_headers = nil) + def get_async(resource_group_name, job_name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -334,6 +333,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -394,8 +394,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, expand = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, expand, custom_headers) + def list_by_resource_group(resource_group_name, expand:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -415,8 +415,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, expand = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, expand, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, expand:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, expand:expand, custom_headers:custom_headers).value! end # @@ -435,13 +435,14 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, expand = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, expand:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -499,8 +500,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list(expand = nil, custom_headers = nil) - first_page = list_as_lazy(expand, custom_headers) + def list(expand:nil, custom_headers:nil) + first_page = list_as_lazy(expand:expand, custom_headers:custom_headers) first_page.get_all_items end @@ -517,8 +518,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(expand = nil, custom_headers = nil) - list_async(expand, custom_headers).value! + def list_with_http_info(expand:nil, custom_headers:nil) + list_async(expand:expand, custom_headers:custom_headers).value! end # @@ -534,12 +535,13 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(expand = nil, custom_headers = nil) + def list_async(expand:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -597,8 +599,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def start(resource_group_name, job_name, start_job_parameters = nil, custom_headers = nil) - response = start_async(resource_group_name, job_name, start_job_parameters, custom_headers).value! + def start(resource_group_name, job_name, start_job_parameters:nil, custom_headers:nil) + response = start_async(resource_group_name, job_name, start_job_parameters:start_job_parameters, custom_headers:custom_headers).value! nil end @@ -615,9 +617,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, job_name, start_job_parameters = nil, custom_headers = nil) + def start_async(resource_group_name, job_name, start_job_parameters:nil, custom_headers:nil) # Send request - promise = begin_start_async(resource_group_name, job_name, start_job_parameters, custom_headers) + promise = begin_start_async(resource_group_name, job_name, start_job_parameters:start_job_parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -642,8 +644,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def stop(resource_group_name, job_name, custom_headers = nil) - response = stop_async(resource_group_name, job_name, custom_headers).value! + def stop(resource_group_name, job_name, custom_headers:nil) + response = stop_async(resource_group_name, job_name, custom_headers:custom_headers).value! nil end @@ -658,9 +660,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, job_name, custom_headers = nil) + def stop_async(resource_group_name, job_name, custom_headers:nil) # Send request - promise = begin_stop_async(resource_group_name, job_name, custom_headers) + promise = begin_stop_async(resource_group_name, job_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -694,8 +696,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [StreamingJob] operation results. # - def begin_create_or_replace(streaming_job, resource_group_name, job_name, if_match = nil, if_none_match = nil, custom_headers = nil) - response = begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match, if_none_match, custom_headers).value! + def begin_create_or_replace(streaming_job, resource_group_name, job_name, if_match:nil, if_none_match:nil, custom_headers:nil) + response = begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -719,8 +721,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_replace_with_http_info(streaming_job, resource_group_name, job_name, if_match = nil, if_none_match = nil, custom_headers = nil) - begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match, if_none_match, custom_headers).value! + def begin_create_or_replace_with_http_info(streaming_job, resource_group_name, job_name, if_match:nil, if_none_match:nil, custom_headers:nil) + begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! end # @@ -743,7 +745,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match = nil, if_none_match = nil, custom_headers = nil) + def begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:nil, if_none_match:nil, custom_headers:nil) fail ArgumentError, 'streaming_job is nil' if streaming_job.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -752,7 +754,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -828,8 +829,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, job_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, job_name, custom_headers).value! + def begin_delete(resource_group_name, job_name, custom_headers:nil) + response = begin_delete_async(resource_group_name, job_name, custom_headers:custom_headers).value! nil end @@ -845,8 +846,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, job_name, custom_headers = nil) - begin_delete_async(resource_group_name, job_name, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, job_name, custom_headers:nil) + begin_delete_async(resource_group_name, job_name, custom_headers:custom_headers).value! end # @@ -861,7 +862,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, job_name, custom_headers = nil) + def begin_delete_async(resource_group_name, job_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -869,6 +870,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -917,8 +919,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def begin_start(resource_group_name, job_name, start_job_parameters = nil, custom_headers = nil) - response = begin_start_async(resource_group_name, job_name, start_job_parameters, custom_headers).value! + def begin_start(resource_group_name, job_name, start_job_parameters:nil, custom_headers:nil) + response = begin_start_async(resource_group_name, job_name, start_job_parameters:start_job_parameters, custom_headers:custom_headers).value! nil end @@ -937,8 +939,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, job_name, start_job_parameters = nil, custom_headers = nil) - begin_start_async(resource_group_name, job_name, start_job_parameters, custom_headers).value! + def begin_start_with_http_info(resource_group_name, job_name, start_job_parameters:nil, custom_headers:nil) + begin_start_async(resource_group_name, job_name, start_job_parameters:start_job_parameters, custom_headers:custom_headers).value! end # @@ -956,7 +958,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, job_name, start_job_parameters = nil, custom_headers = nil) + def begin_start_async(resource_group_name, job_name, start_job_parameters:nil, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -964,7 +966,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1019,8 +1020,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def begin_stop(resource_group_name, job_name, custom_headers = nil) - response = begin_stop_async(resource_group_name, job_name, custom_headers).value! + def begin_stop(resource_group_name, job_name, custom_headers:nil) + response = begin_stop_async(resource_group_name, job_name, custom_headers:custom_headers).value! nil end @@ -1037,8 +1038,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, job_name, custom_headers = nil) - begin_stop_async(resource_group_name, job_name, custom_headers).value! + def begin_stop_with_http_info(resource_group_name, job_name, custom_headers:nil) + begin_stop_async(resource_group_name, job_name, custom_headers:custom_headers).value! end # @@ -1054,7 +1055,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, job_name, custom_headers = nil) + def begin_stop_async(resource_group_name, job_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1062,6 +1063,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1106,8 +1108,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [StreamingJobListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1121,8 +1123,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1135,11 +1137,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1193,8 +1196,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [StreamingJobListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1208,8 +1211,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1222,11 +1225,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1287,12 +1291,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [StreamingJobListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, expand = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, expand, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, expand:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1312,12 +1316,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # @return [StreamingJobListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(expand = nil, custom_headers = nil) - response = list_async(expand, custom_headers).value! + def list_as_lazy(expand:nil, custom_headers:nil) + response = list_async(expand:expand, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/subscriptions.rb b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/subscriptions.rb index 06c467f1a..ae092a5f5 100644 --- a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/subscriptions.rb +++ b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/subscriptions.rb @@ -33,8 +33,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [SubscriptionQuotasListResult] operation results. # - def list_quotas(location, custom_headers = nil) - response = list_quotas_async(location, custom_headers).value! + def list_quotas(location, custom_headers:nil) + response = list_quotas_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_quotas_with_http_info(location, custom_headers = nil) - list_quotas_async(location, custom_headers).value! + def list_quotas_with_http_info(location, custom_headers:nil) + list_quotas_async(location, custom_headers:custom_headers).value! end # @@ -66,13 +66,14 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_quotas_async(location, custom_headers = nil) + def list_quotas_async(location, custom_headers:nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/transformations.rb b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/transformations.rb index 9c07b63a1..9b1b85647 100644 --- a/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/transformations.rb +++ b/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/transformations.rb @@ -44,8 +44,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Transformation] operation results. # - def create_or_replace(transformation, resource_group_name, job_name, transformation_name, if_match = nil, if_none_match = nil, custom_headers = nil) - response = create_or_replace_async(transformation, resource_group_name, job_name, transformation_name, if_match, if_none_match, custom_headers).value! + def create_or_replace(transformation, resource_group_name, job_name, transformation_name, if_match:nil, if_none_match:nil, custom_headers:nil) + response = create_or_replace_async(transformation, resource_group_name, job_name, transformation_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -72,8 +72,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_replace_with_http_info(transformation, resource_group_name, job_name, transformation_name, if_match = nil, if_none_match = nil, custom_headers = nil) - create_or_replace_async(transformation, resource_group_name, job_name, transformation_name, if_match, if_none_match, custom_headers).value! + def create_or_replace_with_http_info(transformation, resource_group_name, job_name, transformation_name, if_match:nil, if_none_match:nil, custom_headers:nil) + create_or_replace_async(transformation, resource_group_name, job_name, transformation_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value! end # @@ -99,7 +99,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_replace_async(transformation, resource_group_name, job_name, transformation_name, if_match = nil, if_none_match = nil, custom_headers = nil) + def create_or_replace_async(transformation, resource_group_name, job_name, transformation_name, if_match:nil, if_none_match:nil, custom_headers:nil) fail ArgumentError, 'transformation is nil' if transformation.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -109,7 +109,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -199,8 +198,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Transformation] operation results. # - def update(transformation, resource_group_name, job_name, transformation_name, if_match = nil, custom_headers = nil) - response = update_async(transformation, resource_group_name, job_name, transformation_name, if_match, custom_headers).value! + def update(transformation, resource_group_name, job_name, transformation_name, if_match:nil, custom_headers:nil) + response = update_async(transformation, resource_group_name, job_name, transformation_name, if_match:if_match, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -229,8 +228,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(transformation, resource_group_name, job_name, transformation_name, if_match = nil, custom_headers = nil) - update_async(transformation, resource_group_name, job_name, transformation_name, if_match, custom_headers).value! + def update_with_http_info(transformation, resource_group_name, job_name, transformation_name, if_match:nil, custom_headers:nil) + update_async(transformation, resource_group_name, job_name, transformation_name, if_match:if_match, custom_headers:custom_headers).value! end # @@ -258,7 +257,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(transformation, resource_group_name, job_name, transformation_name, if_match = nil, custom_headers = nil) + def update_async(transformation, resource_group_name, job_name, transformation_name, if_match:nil, custom_headers:nil) fail ArgumentError, 'transformation is nil' if transformation.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -268,7 +267,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -335,8 +333,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Transformation] operation results. # - def get(resource_group_name, job_name, transformation_name, custom_headers = nil) - response = get_async(resource_group_name, job_name, transformation_name, custom_headers).value! + def get(resource_group_name, job_name, transformation_name, custom_headers:nil) + response = get_async(resource_group_name, job_name, transformation_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -353,8 +351,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, job_name, transformation_name, custom_headers = nil) - get_async(resource_group_name, job_name, transformation_name, custom_headers).value! + def get_with_http_info(resource_group_name, job_name, transformation_name, custom_headers:nil) + get_async(resource_group_name, job_name, transformation_name, custom_headers:custom_headers).value! end # @@ -370,7 +368,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, job_name, transformation_name, custom_headers = nil) + def get_async(resource_group_name, job_name, transformation_name, custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -379,6 +377,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_stream_analytics/lib/profiles/latest/modules/streamanalytics_profile_module.rb b/management/azure_mgmt_stream_analytics/lib/profiles/latest/modules/streamanalytics_profile_module.rb index 2053f8c6b..2e23b5e04 100644 --- a/management/azure_mgmt_stream_analytics/lib/profiles/latest/modules/streamanalytics_profile_module.rb +++ b/management/azure_mgmt_stream_analytics/lib/profiles/latest/modules/streamanalytics_profile_module.rb @@ -108,18 +108,18 @@ module Azure::StreamAnalytics::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::StreamAnalytics::Mgmt::V2016_03_01::StreamAnalyticsManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::StreamAnalytics::Mgmt::V2016_03_01::StreamAnalyticsManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @operations = client_0.operations - @streaming_jobs = client_0.streaming_jobs - @inputs = client_0.inputs - @outputs = client_0.outputs - @transformations = client_0.transformations - @functions = client_0.functions - @subscriptions = client_0.subscriptions + add_telemetry(@client_0) + @operations = @client_0.operations + @streaming_jobs = @client_0.streaming_jobs + @inputs = @client_0.inputs + @outputs = @client_0.outputs + @transformations = @client_0.transformations + @functions = @client_0.functions + @subscriptions = @client_0.subscriptions @model_classes = ModelClasses.new end @@ -129,6 +129,14 @@ module Azure::StreamAnalytics::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_subscriptions/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb b/management/azure_mgmt_subscriptions/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb index c623943fe..74c149ab8 100644 --- a/management/azure_mgmt_subscriptions/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb +++ b/management/azure_mgmt_subscriptions/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb @@ -30,8 +30,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [LocationListResult] operation results. # - def list_locations(subscription_id, custom_headers = nil) - response = list_locations_async(subscription_id, custom_headers).value! + def list_locations(subscription_id, custom_headers:nil) + response = list_locations_async(subscription_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_locations_with_http_info(subscription_id, custom_headers = nil) - list_locations_async(subscription_id, custom_headers).value! + def list_locations_with_http_info(subscription_id, custom_headers:nil) + list_locations_async(subscription_id, custom_headers:custom_headers).value! end # @@ -57,12 +57,13 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_locations_async(subscription_id, custom_headers = nil) + def list_locations_async(subscription_id, custom_headers:nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -116,8 +117,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [Subscription] operation results. # - def get(subscription_id, custom_headers = nil) - response = get_async(subscription_id, custom_headers).value! + def get(subscription_id, custom_headers:nil) + response = get_async(subscription_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -130,8 +131,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(subscription_id, custom_headers = nil) - get_async(subscription_id, custom_headers).value! + def get_with_http_info(subscription_id, custom_headers:nil) + get_async(subscription_id, custom_headers:custom_headers).value! end # @@ -143,12 +144,13 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(subscription_id, custom_headers = nil) + def get_async(subscription_id, custom_headers:nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -201,8 +203,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -214,8 +216,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -226,11 +228,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -284,8 +287,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [SubscriptionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -299,8 +302,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -313,11 +316,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -370,12 +374,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # @return [SubscriptionListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_subscriptions/lib/2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb b/management/azure_mgmt_subscriptions/lib/2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb index 4aa67d15f..a21da352d 100644 --- a/management/azure_mgmt_subscriptions/lib/2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb +++ b/management/azure_mgmt_subscriptions/lib/2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb @@ -29,8 +29,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -42,8 +42,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -54,11 +54,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -112,8 +113,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [TenantListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -141,11 +142,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,12 +200,12 @@ module Azure::Subscriptions::Mgmt::V2015_11_01 # @return [TenantListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_subscriptions/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb b/management/azure_mgmt_subscriptions/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb index 71bb9fa82..f975e6c13 100644 --- a/management/azure_mgmt_subscriptions/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb +++ b/management/azure_mgmt_subscriptions/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb @@ -36,8 +36,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [LocationListResult] operation results. # - def list_locations(subscription_id, custom_headers = nil) - response = list_locations_async(subscription_id, custom_headers).value! + def list_locations(subscription_id, custom_headers:nil) + response = list_locations_async(subscription_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_locations_with_http_info(subscription_id, custom_headers = nil) - list_locations_async(subscription_id, custom_headers).value! + def list_locations_with_http_info(subscription_id, custom_headers:nil) + list_locations_async(subscription_id, custom_headers:custom_headers).value! end # @@ -69,12 +69,13 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_locations_async(subscription_id, custom_headers = nil) + def list_locations_async(subscription_id, custom_headers:nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -128,8 +129,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [Subscription] operation results. # - def get(subscription_id, custom_headers = nil) - response = get_async(subscription_id, custom_headers).value! + def get(subscription_id, custom_headers:nil) + response = get_async(subscription_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -142,8 +143,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(subscription_id, custom_headers = nil) - get_async(subscription_id, custom_headers).value! + def get_with_http_info(subscription_id, custom_headers:nil) + get_async(subscription_id, custom_headers:custom_headers).value! end # @@ -155,12 +156,13 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(subscription_id, custom_headers = nil) + def get_async(subscription_id, custom_headers:nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -213,8 +215,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -226,8 +228,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -238,11 +240,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -296,8 +299,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [SubscriptionListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -311,8 +314,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -325,11 +328,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -382,12 +386,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # @return [SubscriptionListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_subscriptions/lib/2016-06-01/generated/azure_mgmt_subscriptions/tenants.rb b/management/azure_mgmt_subscriptions/lib/2016-06-01/generated/azure_mgmt_subscriptions/tenants.rb index 93f57ff87..979c0afe1 100644 --- a/management/azure_mgmt_subscriptions/lib/2016-06-01/generated/azure_mgmt_subscriptions/tenants.rb +++ b/management/azure_mgmt_subscriptions/lib/2016-06-01/generated/azure_mgmt_subscriptions/tenants.rb @@ -32,8 +32,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -45,8 +45,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -57,11 +57,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -115,8 +116,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [TenantListResult] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -130,8 +131,8 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -144,11 +145,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -201,12 +203,12 @@ module Azure::Subscriptions::Mgmt::V2016_06_01 # @return [TenantListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_subscriptions/lib/profiles/latest/modules/subscriptions_profile_module.rb b/management/azure_mgmt_subscriptions/lib/profiles/latest/modules/subscriptions_profile_module.rb index c71b1e289..bf1e4cee4 100644 --- a/management/azure_mgmt_subscriptions/lib/profiles/latest/modules/subscriptions_profile_module.rb +++ b/management/azure_mgmt_subscriptions/lib/profiles/latest/modules/subscriptions_profile_module.rb @@ -40,13 +40,13 @@ module Azure::Subscriptions::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @subscriptions = client_0.subscriptions - @tenants = client_0.tenants + add_telemetry(@client_0) + @subscriptions = @client_0.subscriptions + @tenants = @client_0.tenants @model_classes = ModelClasses.new end @@ -56,6 +56,14 @@ module Azure::Subscriptions::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_subscriptions/lib/profiles/v2017_03_09/modules/subscriptions_profile_module.rb b/management/azure_mgmt_subscriptions/lib/profiles/v2017_03_09/modules/subscriptions_profile_module.rb index aa11eaf31..3a4a00251 100644 --- a/management/azure_mgmt_subscriptions/lib/profiles/v2017_03_09/modules/subscriptions_profile_module.rb +++ b/management/azure_mgmt_subscriptions/lib/profiles/v2017_03_09/modules/subscriptions_profile_module.rb @@ -40,13 +40,13 @@ module Azure::Subscriptions::Profiles::V2017_03_09 @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Subscriptions::Mgmt::V2016_06_01::SubscriptionClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @subscriptions = client_0.subscriptions - @tenants = client_0.tenants + add_telemetry(@client_0) + @subscriptions = @client_0.subscriptions + @tenants = @client_0.tenants @model_classes = ModelClasses.new end @@ -56,6 +56,14 @@ module Azure::Subscriptions::Profiles::V2017_03_09 client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_traffic_manager/lib/2015-11-01/generated/azure_mgmt_traffic_manager/endpoints.rb b/management/azure_mgmt_traffic_manager/lib/2015-11-01/generated/azure_mgmt_traffic_manager/endpoints.rb index cfb728715..4a521d2d5 100644 --- a/management/azure_mgmt_traffic_manager/lib/2015-11-01/generated/azure_mgmt_traffic_manager/endpoints.rb +++ b/management/azure_mgmt_traffic_manager/lib/2015-11-01/generated/azure_mgmt_traffic_manager/endpoints.rb @@ -38,8 +38,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Endpoint] operation results. # - def update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) + def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -92,7 +92,6 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -158,8 +157,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Endpoint] operation results. # - def get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -176,8 +175,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! end # @@ -193,7 +192,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -203,6 +202,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -264,8 +264,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Endpoint] operation results. # - def create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -286,8 +286,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! end # @@ -307,7 +307,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -318,7 +318,6 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -395,8 +394,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # will be added to the HTTP request. # # - def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! nil end @@ -415,8 +414,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! end # @@ -434,7 +433,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -444,6 +443,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_traffic_manager/lib/2015-11-01/generated/azure_mgmt_traffic_manager/profiles.rb b/management/azure_mgmt_traffic_manager/lib/2015-11-01/generated/azure_mgmt_traffic_manager/profiles.rb index 2492a5150..ca9d9e21b 100644 --- a/management/azure_mgmt_traffic_manager/lib/2015-11-01/generated/azure_mgmt_traffic_manager/profiles.rb +++ b/management/azure_mgmt_traffic_manager/lib/2015-11-01/generated/azure_mgmt_traffic_manager/profiles.rb @@ -32,8 +32,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [TrafficManagerNameAvailability] operation results. # - def check_traffic_manager_relative_dns_name_availability(parameters, custom_headers = nil) - response = check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers).value! + def check_traffic_manager_relative_dns_name_availability(parameters, custom_headers:nil) + response = check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_traffic_manager_relative_dns_name_availability_with_http_info(parameters, custom_headers = nil) - check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers).value! + def check_traffic_manager_relative_dns_name_availability_with_http_info(parameters, custom_headers:nil) + check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers:custom_headers).value! end # @@ -63,13 +63,12 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers = nil) + def check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -131,8 +130,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [ProfileListResult] operation results. # - def list_all_in_resource_group(resource_group_name, custom_headers = nil) - response = list_all_in_resource_group_async(resource_group_name, custom_headers).value! + def list_all_in_resource_group(resource_group_name, custom_headers:nil) + response = list_all_in_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -146,8 +145,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_in_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_all_in_resource_group_async(resource_group_name, custom_headers).value! + def list_all_in_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_all_in_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -160,13 +159,14 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_in_resource_group_async(resource_group_name, custom_headers = nil) + def list_all_in_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -219,8 +219,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [ProfileListResult] operation results. # - def list_all(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -232,8 +232,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -244,12 +244,13 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +306,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Profile] operation results. # - def get(resource_group_name, profile_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, custom_headers).value! + def get(resource_group_name, profile_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,8 +322,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, custom_headers = nil) - get_async(resource_group_name, profile_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, custom_headers:nil) + get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -336,7 +337,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -344,6 +345,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -401,8 +403,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Profile] operation results. # - def create_or_update(resource_group_name, profile_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, profile_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -419,8 +421,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, profile_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, profile_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! end # @@ -436,7 +438,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, profile_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -445,7 +447,6 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -519,8 +520,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # will be added to the HTTP request. # # - def delete(resource_group_name, profile_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, custom_headers).value! + def delete(resource_group_name, profile_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! nil end @@ -536,8 +537,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, profile_name, custom_headers = nil) - delete_async(resource_group_name, profile_name, custom_headers).value! + def delete_with_http_info(resource_group_name, profile_name, custom_headers:nil) + delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -552,7 +553,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, profile_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -560,6 +561,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -607,8 +609,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Profile] operation results. # - def update(resource_group_name, profile_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def update(resource_group_name, profile_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -625,8 +627,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers = nil) - update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers:nil) + update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! end # @@ -642,7 +644,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, profile_name, parameters, custom_headers = nil) + def update_async(resource_group_name, profile_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -651,7 +653,6 @@ module Azure::TrafficManager::Mgmt::V2015_11_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/endpoints.rb b/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/endpoints.rb index 7f3ca37b1..ca60f56a0 100644 --- a/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/endpoints.rb +++ b/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/endpoints.rb @@ -38,8 +38,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Endpoint] operation results. # - def update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) + def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -92,7 +92,6 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -158,8 +157,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Endpoint] operation results. # - def get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -176,8 +175,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! end # @@ -193,7 +192,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -203,6 +202,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -264,8 +264,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Endpoint] operation results. # - def create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -286,8 +286,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! end # @@ -307,7 +307,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -318,7 +318,6 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -396,8 +395,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [DeleteOperationResult] operation results. # - def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -416,8 +415,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! end # @@ -435,7 +434,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -445,6 +444,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb b/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb index 292601f33..0327ff9c2 100644 --- a/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +++ b/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb @@ -30,8 +30,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [TrafficManagerGeographicHierarchy] operation results. # - def get_default(custom_headers = nil) - response = get_default_async(custom_headers).value! + def get_default(custom_headers:nil) + response = get_default_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_default_with_http_info(custom_headers = nil) - get_default_async(custom_headers).value! + def get_default_with_http_info(custom_headers:nil) + get_default_async(custom_headers:custom_headers).value! end # @@ -57,11 +57,12 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_default_async(custom_headers = nil) + def get_default_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/profiles.rb b/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/profiles.rb index c2ca095d6..34f320d80 100644 --- a/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/profiles.rb +++ b/management/azure_mgmt_traffic_manager/lib/2017-03-01/generated/azure_mgmt_traffic_manager/profiles.rb @@ -32,8 +32,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [TrafficManagerNameAvailability] operation results. # - def check_traffic_manager_relative_dns_name_availability(parameters, custom_headers = nil) - response = check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers).value! + def check_traffic_manager_relative_dns_name_availability(parameters, custom_headers:nil) + response = check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_traffic_manager_relative_dns_name_availability_with_http_info(parameters, custom_headers = nil) - check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers).value! + def check_traffic_manager_relative_dns_name_availability_with_http_info(parameters, custom_headers:nil) + check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers:custom_headers).value! end # @@ -63,13 +63,12 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers = nil) + def check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -131,8 +130,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [ProfileListResult] operation results. # - def list_all_in_resource_group(resource_group_name, custom_headers = nil) - response = list_all_in_resource_group_async(resource_group_name, custom_headers).value! + def list_all_in_resource_group(resource_group_name, custom_headers:nil) + response = list_all_in_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -146,8 +145,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_in_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_all_in_resource_group_async(resource_group_name, custom_headers).value! + def list_all_in_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_all_in_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -160,13 +159,14 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_in_resource_group_async(resource_group_name, custom_headers = nil) + def list_all_in_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -219,8 +219,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [ProfileListResult] operation results. # - def list_all(custom_headers = nil) - response = list_all_async(custom_headers).value! + def list_all(custom_headers:nil) + response = list_all_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -232,8 +232,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_all_with_http_info(custom_headers = nil) - list_all_async(custom_headers).value! + def list_all_with_http_info(custom_headers:nil) + list_all_async(custom_headers:custom_headers).value! end # @@ -244,12 +244,13 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_all_async(custom_headers = nil) + def list_all_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +306,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Profile] operation results. # - def get(resource_group_name, profile_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, custom_headers).value! + def get(resource_group_name, profile_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,8 +322,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, custom_headers = nil) - get_async(resource_group_name, profile_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, custom_headers:nil) + get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -336,7 +337,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -344,6 +345,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -401,8 +403,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Profile] operation results. # - def create_or_update(resource_group_name, profile_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, profile_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -419,8 +421,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, profile_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, profile_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! end # @@ -436,7 +438,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, profile_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -445,7 +447,6 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -520,8 +521,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [DeleteOperationResult] operation results. # - def delete(resource_group_name, profile_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, custom_headers).value! + def delete(resource_group_name, profile_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -537,8 +538,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, profile_name, custom_headers = nil) - delete_async(resource_group_name, profile_name, custom_headers).value! + def delete_with_http_info(resource_group_name, profile_name, custom_headers:nil) + delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -553,7 +554,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, profile_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -561,6 +562,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -628,8 +630,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Profile] operation results. # - def update(resource_group_name, profile_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def update(resource_group_name, profile_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -646,8 +648,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers = nil) - update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers:nil) + update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! end # @@ -663,7 +665,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, profile_name, parameters, custom_headers = nil) + def update_async(resource_group_name, profile_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -672,7 +674,6 @@ module Azure::TrafficManager::Mgmt::V2017_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/endpoints.rb b/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/endpoints.rb index b13eadc5a..a4157d9b7 100644 --- a/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/endpoints.rb +++ b/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/endpoints.rb @@ -38,8 +38,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Endpoint] operation results. # - def update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! end # @@ -81,7 +81,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) + def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -92,7 +92,6 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -158,8 +157,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Endpoint] operation results. # - def get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -176,8 +175,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! end # @@ -193,7 +192,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -203,6 +202,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -264,8 +264,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Endpoint] operation results. # - def create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -286,8 +286,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value! end # @@ -307,7 +307,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -318,7 +318,6 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -396,8 +395,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [DeleteOperationResult] operation results. # - def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -416,8 +415,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) - delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value! + def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) + delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value! end # @@ -435,7 +434,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil? @@ -445,6 +444,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb b/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb index e6208b01b..a070fa355 100644 --- a/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +++ b/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb @@ -30,8 +30,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [TrafficManagerGeographicHierarchy] operation results. # - def get_default(custom_headers = nil) - response = get_default_async(custom_headers).value! + def get_default(custom_headers:nil) + response = get_default_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_default_with_http_info(custom_headers = nil) - get_default_async(custom_headers).value! + def get_default_with_http_info(custom_headers:nil) + get_default_async(custom_headers:custom_headers).value! end # @@ -57,11 +57,12 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_default_async(custom_headers = nil) + def get_default_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/profiles.rb b/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/profiles.rb index f11b41b35..1238a6ede 100644 --- a/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/profiles.rb +++ b/management/azure_mgmt_traffic_manager/lib/2017-05-01/generated/azure_mgmt_traffic_manager/profiles.rb @@ -32,8 +32,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [TrafficManagerNameAvailability] operation results. # - def check_traffic_manager_relative_dns_name_availability(parameters, custom_headers = nil) - response = check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers).value! + def check_traffic_manager_relative_dns_name_availability(parameters, custom_headers:nil) + response = check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_traffic_manager_relative_dns_name_availability_with_http_info(parameters, custom_headers = nil) - check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers).value! + def check_traffic_manager_relative_dns_name_availability_with_http_info(parameters, custom_headers:nil) + check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers:custom_headers).value! end # @@ -63,13 +63,12 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers = nil) + def check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -131,8 +130,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [ProfileListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -146,8 +145,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -160,13 +159,14 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -219,8 +219,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [ProfileListResult] operation results. # - def list_by_subscription(custom_headers = nil) - response = list_by_subscription_async(custom_headers).value! + def list_by_subscription(custom_headers:nil) + response = list_by_subscription_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -232,8 +232,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_with_http_info(custom_headers = nil) - list_by_subscription_async(custom_headers).value! + def list_by_subscription_with_http_info(custom_headers:nil) + list_by_subscription_async(custom_headers:custom_headers).value! end # @@ -244,12 +244,13 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_async(custom_headers = nil) + def list_by_subscription_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -305,8 +306,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Profile] operation results. # - def get(resource_group_name, profile_name, custom_headers = nil) - response = get_async(resource_group_name, profile_name, custom_headers).value! + def get(resource_group_name, profile_name, custom_headers:nil) + response = get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -321,8 +322,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, custom_headers = nil) - get_async(resource_group_name, profile_name, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, custom_headers:nil) + get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -336,7 +337,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, custom_headers = nil) + def get_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -344,6 +345,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -401,8 +403,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Profile] operation results. # - def create_or_update(resource_group_name, profile_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def create_or_update(resource_group_name, profile_name, parameters, custom_headers:nil) + response = create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -419,8 +421,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, profile_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, profile_name, parameters, custom_headers:nil) + create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! end # @@ -436,7 +438,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, profile_name, parameters, custom_headers = nil) + def create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -445,7 +447,6 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -520,8 +521,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [DeleteOperationResult] operation results. # - def delete(resource_group_name, profile_name, custom_headers = nil) - response = delete_async(resource_group_name, profile_name, custom_headers).value! + def delete(resource_group_name, profile_name, custom_headers:nil) + response = delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -537,8 +538,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, profile_name, custom_headers = nil) - delete_async(resource_group_name, profile_name, custom_headers).value! + def delete_with_http_info(resource_group_name, profile_name, custom_headers:nil) + delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! end # @@ -553,7 +554,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, profile_name, custom_headers = nil) + def delete_async(resource_group_name, profile_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -561,6 +562,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -618,8 +620,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Profile] operation results. # - def update(resource_group_name, profile_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def update(resource_group_name, profile_name, parameters, custom_headers:nil) + response = update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -636,8 +638,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers = nil) - update_async(resource_group_name, profile_name, parameters, custom_headers).value! + def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers:nil) + update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value! end # @@ -653,7 +655,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, profile_name, parameters, custom_headers = nil) + def update_async(resource_group_name, profile_name, parameters, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -662,7 +664,6 @@ module Azure::TrafficManager::Mgmt::V2017_05_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers diff --git a/management/azure_mgmt_traffic_manager/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/heat_map.rb b/management/azure_mgmt_traffic_manager/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/heat_map.rb index d81aaac82..aa096a08f 100644 --- a/management/azure_mgmt_traffic_manager/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/heat_map.rb +++ b/management/azure_mgmt_traffic_manager/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/heat_map.rb @@ -36,8 +36,8 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [HeatMapModel] operation results. # - def get(resource_group_name, profile_name, top_left = nil, bot_right = nil, custom_headers = nil) - response = get_async(resource_group_name, profile_name, top_left, bot_right, custom_headers).value! + def get(resource_group_name, profile_name, top_left:nil, bot_right:nil, custom_headers:nil) + response = get_async(resource_group_name, profile_name, top_left:top_left, bot_right:bot_right, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -56,8 +56,8 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, top_left = nil, bot_right = nil, custom_headers = nil) - get_async(resource_group_name, profile_name, top_left, bot_right, custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, top_left:nil, bot_right:nil, custom_headers:nil) + get_async(resource_group_name, profile_name, top_left:top_left, bot_right:bot_right, custom_headers:custom_headers).value! end # @@ -75,7 +75,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, top_left = nil, bot_right = nil, custom_headers = nil) + def get_async(resource_group_name, profile_name, top_left:nil, bot_right:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -88,6 +88,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_traffic_manager/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb b/management/azure_mgmt_traffic_manager/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb index 4cc54d5a4..59ad8a5e3 100644 --- a/management/azure_mgmt_traffic_manager/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb +++ b/management/azure_mgmt_traffic_manager/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb @@ -29,8 +29,8 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [TrafficManagerUserMetricsKeyModel] operation results. # - def get_default(custom_headers = nil) - response = get_default_async(custom_headers).value! + def get_default(custom_headers:nil) + response = get_default_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_default_with_http_info(custom_headers = nil) - get_default_async(custom_headers).value! + def get_default_with_http_info(custom_headers:nil) + get_default_async(custom_headers:custom_headers).value! end # @@ -54,12 +54,13 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_default_async(custom_headers = nil) + def get_default_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -113,8 +114,8 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [TrafficManagerUserMetricsKeyModel] operation results. # - def create_or_update(custom_headers = nil) - response = create_or_update_async(custom_headers).value! + def create_or_update(custom_headers:nil) + response = create_or_update_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -127,8 +128,8 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(custom_headers = nil) - create_or_update_async(custom_headers).value! + def create_or_update_with_http_info(custom_headers:nil) + create_or_update_async(custom_headers:custom_headers).value! end # @@ -140,12 +141,13 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(custom_headers = nil) + def create_or_update_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -198,8 +200,8 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [DeleteOperationResult] operation results. # - def delete(custom_headers = nil) - response = delete_async(custom_headers).value! + def delete(custom_headers:nil) + response = delete_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -211,8 +213,8 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(custom_headers = nil) - delete_async(custom_headers).value! + def delete_with_http_info(custom_headers:nil) + delete_async(custom_headers:custom_headers).value! end # @@ -223,12 +225,13 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(custom_headers = nil) + def delete_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_traffic_manager/lib/profiles/latest/modules/trafficmanager_profile_module.rb b/management/azure_mgmt_traffic_manager/lib/profiles/latest/modules/trafficmanager_profile_module.rb index 311b49e02..230286b44 100644 --- a/management/azure_mgmt_traffic_manager/lib/profiles/latest/modules/trafficmanager_profile_module.rb +++ b/management/azure_mgmt_traffic_manager/lib/profiles/latest/modules/trafficmanager_profile_module.rb @@ -58,22 +58,22 @@ module Azure::TrafficManager::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::TrafficManager::Mgmt::V2017_05_01::TrafficManagerManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::TrafficManager::Mgmt::V2017_05_01::TrafficManagerManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @endpoints = client_0.endpoints - @profiles = client_0.profiles - @geographic_hierarchies = client_0.geographic_hierarchies + add_telemetry(@client_0) + @endpoints = @client_0.endpoints + @profiles = @client_0.profiles + @geographic_hierarchies = @client_0.geographic_hierarchies - client_1 = Azure::TrafficManager::Mgmt::V2017_09_01_preview::TrafficManagerManagementClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::TrafficManager::Mgmt::V2017_09_01_preview::TrafficManagerManagementClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @heat_map = client_1.heat_map - @traffic_manager_user_metrics_keys = client_1.traffic_manager_user_metrics_keys + add_telemetry(@client_1) + @heat_map = @client_1.heat_map + @traffic_manager_user_metrics_keys = @client_1.traffic_manager_user_metrics_keys @model_classes = ModelClasses.new end @@ -83,6 +83,16 @@ module Azure::TrafficManager::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses diff --git a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/domains.rb b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/domains.rb index 09b108172..ba975c116 100644 --- a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/domains.rb +++ b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/domains.rb @@ -32,8 +32,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [DomainAvailablilityCheckResult] operation results. # - def check_availability(identifier, custom_headers = nil) - response = check_availability_async(identifier, custom_headers).value! + def check_availability(identifier, custom_headers:nil) + response = check_availability_async(identifier, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -48,8 +48,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_availability_with_http_info(identifier, custom_headers = nil) - check_availability_async(identifier, custom_headers).value! + def check_availability_with_http_info(identifier, custom_headers:nil) + check_availability_async(identifier, custom_headers:custom_headers).value! end # @@ -63,14 +63,13 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_availability_async(identifier, custom_headers = nil) + def check_availability_async(identifier, custom_headers:nil) fail ArgumentError, 'identifier is nil' if identifier.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -133,8 +132,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -148,8 +147,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -162,12 +161,13 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +222,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [DomainControlCenterSsoRequest] operation results. # - def get_control_center_sso_request(custom_headers = nil) - response = get_control_center_sso_request_async(custom_headers).value! + def get_control_center_sso_request(custom_headers:nil) + response = get_control_center_sso_request_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -237,8 +237,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_control_center_sso_request_with_http_info(custom_headers = nil) - get_control_center_sso_request_async(custom_headers).value! + def get_control_center_sso_request_with_http_info(custom_headers:nil) + get_control_center_sso_request_async(custom_headers:custom_headers).value! end # @@ -251,12 +251,13 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_control_center_sso_request_async(custom_headers = nil) + def get_control_center_sso_request_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -313,8 +314,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Array] operation results. # - def list_recommendations(parameters, custom_headers = nil) - first_page = list_recommendations_as_lazy(parameters, custom_headers) + def list_recommendations(parameters, custom_headers:nil) + first_page = list_recommendations_as_lazy(parameters, custom_headers:custom_headers) first_page.get_all_items end @@ -330,8 +331,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_recommendations_with_http_info(parameters, custom_headers = nil) - list_recommendations_async(parameters, custom_headers).value! + def list_recommendations_with_http_info(parameters, custom_headers:nil) + list_recommendations_async(parameters, custom_headers:custom_headers).value! end # @@ -346,14 +347,13 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_recommendations_async(parameters, custom_headers = nil) + def list_recommendations_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -418,8 +418,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -435,8 +435,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -451,7 +451,7 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -461,6 +461,7 @@ module Azure::Web::Mgmt::V2015_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -518,8 +519,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Domain] operation results. # - def get(resource_group_name, domain_name, custom_headers = nil) - response = get_async(resource_group_name, domain_name, custom_headers).value! + def get(resource_group_name, domain_name, custom_headers:nil) + response = get_async(resource_group_name, domain_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -536,8 +537,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, domain_name, custom_headers = nil) - get_async(resource_group_name, domain_name, custom_headers).value! + def get_with_http_info(resource_group_name, domain_name, custom_headers:nil) + get_async(resource_group_name, domain_name, custom_headers:custom_headers).value! end # @@ -553,7 +554,7 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, domain_name, custom_headers = nil) + def get_async(resource_group_name, domain_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -564,6 +565,7 @@ module Azure::Web::Mgmt::V2015_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -622,8 +624,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Domain] operation results. # - def create_or_update(resource_group_name, domain_name, domain, custom_headers = nil) - response = create_or_update_async(resource_group_name, domain_name, domain, custom_headers).value! + def create_or_update(resource_group_name, domain_name, domain, custom_headers:nil) + response = create_or_update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -638,9 +640,9 @@ module Azure::Web::Mgmt::V2015_04_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, domain_name, domain, custom_headers = nil) + def create_or_update_async(resource_group_name, domain_name, domain, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers) + promise = begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -671,8 +673,8 @@ module Azure::Web::Mgmt::V2015_04_01 # will be added to the HTTP request. # # - def delete(resource_group_name, domain_name, force_hard_delete_domain = nil, custom_headers = nil) - response = delete_async(resource_group_name, domain_name, force_hard_delete_domain, custom_headers).value! + def delete(resource_group_name, domain_name, force_hard_delete_domain:nil, custom_headers:nil) + response = delete_async(resource_group_name, domain_name, force_hard_delete_domain:force_hard_delete_domain, custom_headers:custom_headers).value! nil end @@ -692,8 +694,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, domain_name, force_hard_delete_domain = nil, custom_headers = nil) - delete_async(resource_group_name, domain_name, force_hard_delete_domain, custom_headers).value! + def delete_with_http_info(resource_group_name, domain_name, force_hard_delete_domain:nil, custom_headers:nil) + delete_async(resource_group_name, domain_name, force_hard_delete_domain:force_hard_delete_domain, custom_headers:custom_headers).value! end # @@ -712,7 +714,7 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, domain_name, force_hard_delete_domain = nil, custom_headers = nil) + def delete_async(resource_group_name, domain_name, force_hard_delete_domain:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -723,6 +725,7 @@ module Azure::Web::Mgmt::V2015_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -770,8 +773,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Array] operation results. # - def list_ownership_identifiers(resource_group_name, domain_name, custom_headers = nil) - first_page = list_ownership_identifiers_as_lazy(resource_group_name, domain_name, custom_headers) + def list_ownership_identifiers(resource_group_name, domain_name, custom_headers:nil) + first_page = list_ownership_identifiers_as_lazy(resource_group_name, domain_name, custom_headers:custom_headers) first_page.get_all_items end @@ -788,8 +791,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_ownership_identifiers_with_http_info(resource_group_name, domain_name, custom_headers = nil) - list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers).value! + def list_ownership_identifiers_with_http_info(resource_group_name, domain_name, custom_headers:nil) + list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers:custom_headers).value! end # @@ -805,7 +808,7 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers = nil) + def list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -816,6 +819,7 @@ module Azure::Web::Mgmt::V2015_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -874,8 +878,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [DomainOwnershipIdentifier] operation results. # - def get_ownership_identifier(resource_group_name, domain_name, name, custom_headers = nil) - response = get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers).value! + def get_ownership_identifier(resource_group_name, domain_name, name, custom_headers:nil) + response = get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -893,8 +897,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_ownership_identifier_with_http_info(resource_group_name, domain_name, name, custom_headers = nil) - get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers).value! + def get_ownership_identifier_with_http_info(resource_group_name, domain_name, name, custom_headers:nil) + get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:custom_headers).value! end # @@ -911,7 +915,7 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers = nil) + def get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -923,6 +927,7 @@ module Azure::Web::Mgmt::V2015_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -985,8 +990,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [DomainOwnershipIdentifier] operation results. # - def create_or_update_ownership_identifier(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil) - response = create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers).value! + def create_or_update_ownership_identifier(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil) + response = create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1008,8 +1013,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_ownership_identifier_with_http_info(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil) - create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers).value! + def create_or_update_ownership_identifier_with_http_info(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil) + create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:custom_headers).value! end # @@ -1030,7 +1035,7 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil) + def create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1043,7 +1048,6 @@ module Azure::Web::Mgmt::V2015_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1109,8 +1113,8 @@ module Azure::Web::Mgmt::V2015_04_01 # will be added to the HTTP request. # # - def delete_ownership_identifier(resource_group_name, domain_name, name, custom_headers = nil) - response = delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers).value! + def delete_ownership_identifier(resource_group_name, domain_name, name, custom_headers:nil) + response = delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:custom_headers).value! nil end @@ -1128,8 +1132,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_ownership_identifier_with_http_info(resource_group_name, domain_name, name, custom_headers = nil) - delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers).value! + def delete_ownership_identifier_with_http_info(resource_group_name, domain_name, name, custom_headers:nil) + delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:custom_headers).value! end # @@ -1146,7 +1150,7 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers = nil) + def delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1158,6 +1162,7 @@ module Azure::Web::Mgmt::V2015_04_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1210,8 +1215,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [DomainOwnershipIdentifier] operation results. # - def update_ownership_identifier(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil) - response = update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers).value! + def update_ownership_identifier(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil) + response = update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1233,8 +1238,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_ownership_identifier_with_http_info(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil) - update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers).value! + def update_ownership_identifier_with_http_info(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil) + update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:custom_headers).value! end # @@ -1255,7 +1260,7 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil) + def update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1268,7 +1273,6 @@ module Azure::Web::Mgmt::V2015_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1335,8 +1339,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Domain] operation results. # - def begin_create_or_update(resource_group_name, domain_name, domain, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers).value! + def begin_create_or_update(resource_group_name, domain_name, domain, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1354,8 +1358,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, domain_name, domain, custom_headers = nil) - begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, domain_name, domain, custom_headers:nil) + begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers:custom_headers).value! end # @@ -1372,7 +1376,7 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1385,7 +1389,6 @@ module Azure::Web::Mgmt::V2015_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1460,8 +1463,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [DomainCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1477,8 +1480,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1493,11 +1496,12 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1553,8 +1557,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [NameIdentifierCollection] operation results. # - def list_recommendations_next(next_page_link, custom_headers = nil) - response = list_recommendations_next_async(next_page_link, custom_headers).value! + def list_recommendations_next(next_page_link, custom_headers:nil) + response = list_recommendations_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1570,8 +1574,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_recommendations_next_with_http_info(next_page_link, custom_headers = nil) - list_recommendations_next_async(next_page_link, custom_headers).value! + def list_recommendations_next_with_http_info(next_page_link, custom_headers:nil) + list_recommendations_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1586,11 +1590,12 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_recommendations_next_async(next_page_link, custom_headers = nil) + def list_recommendations_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1646,8 +1651,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [DomainCollection] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1663,8 +1668,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1679,11 +1684,12 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1739,8 +1745,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [DomainOwnershipIdentifierCollection] operation results. # - def list_ownership_identifiers_next(next_page_link, custom_headers = nil) - response = list_ownership_identifiers_next_async(next_page_link, custom_headers).value! + def list_ownership_identifiers_next(next_page_link, custom_headers:nil) + response = list_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1756,8 +1762,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_ownership_identifiers_next_with_http_info(next_page_link, custom_headers = nil) - list_ownership_identifiers_next_async(next_page_link, custom_headers).value! + def list_ownership_identifiers_next_with_http_info(next_page_link, custom_headers:nil) + list_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1772,11 +1778,12 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_ownership_identifiers_next_async(next_page_link, custom_headers = nil) + def list_ownership_identifiers_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1831,12 +1838,12 @@ module Azure::Web::Mgmt::V2015_04_01 # @return [DomainCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1855,12 +1862,12 @@ module Azure::Web::Mgmt::V2015_04_01 # @return [NameIdentifierCollection] which provide lazy access to pages of the # response. # - def list_recommendations_as_lazy(parameters, custom_headers = nil) - response = list_recommendations_async(parameters, custom_headers).value! + def list_recommendations_as_lazy(parameters, custom_headers:nil) + response = list_recommendations_async(parameters, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_recommendations_next_async(next_page_link, custom_headers) + list_recommendations_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1879,12 +1886,12 @@ module Azure::Web::Mgmt::V2015_04_01 # @return [DomainCollection] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -1904,12 +1911,12 @@ module Azure::Web::Mgmt::V2015_04_01 # @return [DomainOwnershipIdentifierCollection] which provide lazy access to # pages of the response. # - def list_ownership_identifiers_as_lazy(resource_group_name, domain_name, custom_headers = nil) - response = list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers).value! + def list_ownership_identifiers_as_lazy(resource_group_name, domain_name, custom_headers:nil) + response = list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_ownership_identifiers_next_async(next_page_link, custom_headers) + list_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb index 0691ebea0..a2fb4a892 100644 --- a/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb +++ b/management/azure_mgmt_web/lib/2015-04-01/generated/azure_mgmt_web/top_level_domains.rb @@ -31,8 +31,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,12 +60,13 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -121,8 +122,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [TopLevelDomain] operation results. # - def get(name, custom_headers = nil) - response = get_async(name, custom_headers).value! + def get(name, custom_headers:nil) + response = get_async(name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -137,8 +138,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(name, custom_headers = nil) - get_async(name, custom_headers).value! + def get_with_http_info(name, custom_headers:nil) + get_async(name, custom_headers:custom_headers).value! end # @@ -152,13 +153,14 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(name, custom_headers = nil) + def get_async(name, custom_headers:nil) fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -218,8 +220,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Array] operation results. # - def list_agreements(name, agreement_option, custom_headers = nil) - first_page = list_agreements_as_lazy(name, agreement_option, custom_headers) + def list_agreements(name, agreement_option, custom_headers:nil) + first_page = list_agreements_as_lazy(name, agreement_option, custom_headers:custom_headers) first_page.get_all_items end @@ -238,8 +240,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_agreements_with_http_info(name, agreement_option, custom_headers = nil) - list_agreements_async(name, agreement_option, custom_headers).value! + def list_agreements_with_http_info(name, agreement_option, custom_headers:nil) + list_agreements_async(name, agreement_option, custom_headers:custom_headers).value! end # @@ -257,7 +259,7 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_agreements_async(name, agreement_option, custom_headers = nil) + def list_agreements_async(name, agreement_option, custom_headers:nil) fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'agreement_option is nil' if agreement_option.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -265,7 +267,6 @@ module Azure::Web::Mgmt::V2015_04_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -330,8 +331,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [TopLevelDomainCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -347,8 +348,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -363,11 +364,12 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -425,8 +427,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [TldLegalAgreementCollection] operation results. # - def list_agreements_next(next_page_link, custom_headers = nil) - response = list_agreements_next_async(next_page_link, custom_headers).value! + def list_agreements_next(next_page_link, custom_headers:nil) + response = list_agreements_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -444,8 +446,8 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_agreements_next_with_http_info(next_page_link, custom_headers = nil) - list_agreements_next_async(next_page_link, custom_headers).value! + def list_agreements_next_with_http_info(next_page_link, custom_headers:nil) + list_agreements_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -462,11 +464,12 @@ module Azure::Web::Mgmt::V2015_04_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_agreements_next_async(next_page_link, custom_headers = nil) + def list_agreements_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -521,12 +524,12 @@ module Azure::Web::Mgmt::V2015_04_01 # @return [TopLevelDomainCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -548,12 +551,12 @@ module Azure::Web::Mgmt::V2015_04_01 # @return [TldLegalAgreementCollection] which provide lazy access to pages of # the response. # - def list_agreements_as_lazy(name, agreement_option, custom_headers = nil) - response = list_agreements_async(name, agreement_option, custom_headers).value! + def list_agreements_as_lazy(name, agreement_option, custom_headers:nil) + response = list_agreements_async(name, agreement_option, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_agreements_next_async(next_page_link, custom_headers) + list_agreements_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb index 397839703..f1ff8d672 100644 --- a/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb +++ b/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb @@ -31,8 +31,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,12 +60,13 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -121,8 +122,8 @@ module Azure::Web::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def validate_purchase_information(app_service_certificate_order, custom_headers = nil) - response = validate_purchase_information_async(app_service_certificate_order, custom_headers).value! + def validate_purchase_information(app_service_certificate_order, custom_headers:nil) + response = validate_purchase_information_async(app_service_certificate_order, custom_headers:custom_headers).value! nil end @@ -138,8 +139,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_purchase_information_with_http_info(app_service_certificate_order, custom_headers = nil) - validate_purchase_information_async(app_service_certificate_order, custom_headers).value! + def validate_purchase_information_with_http_info(app_service_certificate_order, custom_headers:nil) + validate_purchase_information_async(app_service_certificate_order, custom_headers:custom_headers).value! end # @@ -154,14 +155,13 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_purchase_information_async(app_service_certificate_order, custom_headers = nil) + def validate_purchase_information_async(app_service_certificate_order, custom_headers:nil) fail ArgumentError, 'app_service_certificate_order is nil' if app_service_certificate_order.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -216,8 +216,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -233,8 +233,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -249,7 +249,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -259,6 +259,7 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -316,8 +317,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [AppServiceCertificateOrder] operation results. # - def get(resource_group_name, certificate_order_name, custom_headers = nil) - response = get_async(resource_group_name, certificate_order_name, custom_headers).value! + def get(resource_group_name, certificate_order_name, custom_headers:nil) + response = get_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -334,8 +335,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) - get_async(resource_group_name, certificate_order_name, custom_headers).value! + def get_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil) + get_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! end # @@ -351,7 +352,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, certificate_order_name, custom_headers = nil) + def get_async(resource_group_name, certificate_order_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -362,6 +363,7 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -421,8 +423,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [AppServiceCertificateOrder] operation results. # - def create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) - response = create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers).value! + def create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil) + response = create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -438,9 +440,9 @@ module Azure::Web::Mgmt::V2015_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) + def create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers) + promise = begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -468,8 +470,8 @@ module Azure::Web::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete(resource_group_name, certificate_order_name, custom_headers = nil) - response = delete_async(resource_group_name, certificate_order_name, custom_headers).value! + def delete(resource_group_name, certificate_order_name, custom_headers:nil) + response = delete_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! nil end @@ -486,8 +488,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) - delete_async(resource_group_name, certificate_order_name, custom_headers).value! + def delete_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil) + delete_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! end # @@ -503,7 +505,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, certificate_order_name, custom_headers = nil) + def delete_async(resource_group_name, certificate_order_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -514,6 +516,7 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -561,8 +564,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def list_certificates(resource_group_name, certificate_order_name, custom_headers = nil) - first_page = list_certificates_as_lazy(resource_group_name, certificate_order_name, custom_headers) + def list_certificates(resource_group_name, certificate_order_name, custom_headers:nil) + first_page = list_certificates_as_lazy(resource_group_name, certificate_order_name, custom_headers:custom_headers) first_page.get_all_items end @@ -579,8 +582,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_certificates_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) - list_certificates_async(resource_group_name, certificate_order_name, custom_headers).value! + def list_certificates_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil) + list_certificates_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! end # @@ -596,7 +599,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_certificates_async(resource_group_name, certificate_order_name, custom_headers = nil) + def list_certificates_async(resource_group_name, certificate_order_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -607,6 +610,7 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -665,8 +669,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [AppServiceCertificateResource] operation results. # - def get_certificate(resource_group_name, certificate_order_name, name, custom_headers = nil) - response = get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers).value! + def get_certificate(resource_group_name, certificate_order_name, name, custom_headers:nil) + response = get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -684,8 +688,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers = nil) - get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers).value! + def get_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers:nil) + get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value! end # @@ -702,7 +706,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers = nil) + def get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -714,6 +718,7 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -774,8 +779,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [AppServiceCertificateResource] operation results. # - def create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) - response = create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers).value! + def create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil) + response = create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -792,9 +797,9 @@ module Azure::Web::Mgmt::V2015_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) + def create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil) # Send request - promise = begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers) + promise = begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -823,8 +828,8 @@ module Azure::Web::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def delete_certificate(resource_group_name, certificate_order_name, name, custom_headers = nil) - response = delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers).value! + def delete_certificate(resource_group_name, certificate_order_name, name, custom_headers:nil) + response = delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value! nil end @@ -842,8 +847,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers = nil) - delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers).value! + def delete_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers:nil) + delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value! end # @@ -860,7 +865,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers = nil) + def delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -872,6 +877,7 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -920,8 +926,8 @@ module Azure::Web::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def reissue(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers = nil) - response = reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers).value! + def reissue(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers:nil) + response = reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers:custom_headers).value! nil end @@ -940,8 +946,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def reissue_with_http_info(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers = nil) - reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers).value! + def reissue_with_http_info(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers:nil) + reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers:custom_headers).value! end # @@ -959,7 +965,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers = nil) + def reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -971,7 +977,6 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1028,8 +1033,8 @@ module Azure::Web::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def renew(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers = nil) - response = renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers).value! + def renew(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:nil) + response = renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:custom_headers).value! nil end @@ -1048,8 +1053,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def renew_with_http_info(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers = nil) - renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers).value! + def renew_with_http_info(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:nil) + renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:custom_headers).value! end # @@ -1067,7 +1072,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers = nil) + def renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1079,7 +1084,6 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1134,8 +1138,8 @@ module Azure::Web::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def resend_email(resource_group_name, certificate_order_name, custom_headers = nil) - response = resend_email_async(resource_group_name, certificate_order_name, custom_headers).value! + def resend_email(resource_group_name, certificate_order_name, custom_headers:nil) + response = resend_email_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! nil end @@ -1152,8 +1156,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def resend_email_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) - resend_email_async(resource_group_name, certificate_order_name, custom_headers).value! + def resend_email_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil) + resend_email_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! end # @@ -1169,7 +1173,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def resend_email_async(resource_group_name, certificate_order_name, custom_headers = nil) + def resend_email_async(resource_group_name, certificate_order_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1180,6 +1184,7 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1227,8 +1232,8 @@ module Azure::Web::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def resend_request_emails(resource_group_name, certificate_order_name, name_identifier, custom_headers = nil) - response = resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers).value! + def resend_request_emails(resource_group_name, certificate_order_name, name_identifier, custom_headers:nil) + response = resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers:custom_headers).value! nil end @@ -1246,8 +1251,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def resend_request_emails_with_http_info(resource_group_name, certificate_order_name, name_identifier, custom_headers = nil) - resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers).value! + def resend_request_emails_with_http_info(resource_group_name, certificate_order_name, name_identifier, custom_headers:nil) + resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers:custom_headers).value! end # @@ -1264,7 +1269,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers = nil) + def resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1276,7 +1281,6 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1333,8 +1337,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [SiteSeal] operation results. # - def retrieve_site_seal(resource_group_name, certificate_order_name, site_seal_request, custom_headers = nil) - response = retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers).value! + def retrieve_site_seal(resource_group_name, certificate_order_name, site_seal_request, custom_headers:nil) + response = retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1352,8 +1356,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def retrieve_site_seal_with_http_info(resource_group_name, certificate_order_name, site_seal_request, custom_headers = nil) - retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers).value! + def retrieve_site_seal_with_http_info(resource_group_name, certificate_order_name, site_seal_request, custom_headers:nil) + retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers:custom_headers).value! end # @@ -1370,7 +1374,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers = nil) + def retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1382,7 +1386,6 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1447,8 +1450,8 @@ module Azure::Web::Mgmt::V2015_08_01 # will be added to the HTTP request. # # - def verify_domain_ownership(resource_group_name, certificate_order_name, custom_headers = nil) - response = verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers).value! + def verify_domain_ownership(resource_group_name, certificate_order_name, custom_headers:nil) + response = verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! nil end @@ -1465,8 +1468,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def verify_domain_ownership_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) - verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers).value! + def verify_domain_ownership_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil) + verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! end # @@ -1482,7 +1485,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers = nil) + def verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1493,6 +1496,7 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1540,8 +1544,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def retrieve_certificate_actions(resource_group_name, name, custom_headers = nil) - response = retrieve_certificate_actions_async(resource_group_name, name, custom_headers).value! + def retrieve_certificate_actions(resource_group_name, name, custom_headers:nil) + response = retrieve_certificate_actions_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1558,8 +1562,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def retrieve_certificate_actions_with_http_info(resource_group_name, name, custom_headers = nil) - retrieve_certificate_actions_async(resource_group_name, name, custom_headers).value! + def retrieve_certificate_actions_with_http_info(resource_group_name, name, custom_headers:nil) + retrieve_certificate_actions_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1575,7 +1579,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def retrieve_certificate_actions_async(resource_group_name, name, custom_headers = nil) + def retrieve_certificate_actions_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1586,6 +1590,7 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1659,8 +1664,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Array] operation results. # - def retrieve_certificate_email_history(resource_group_name, name, custom_headers = nil) - response = retrieve_certificate_email_history_async(resource_group_name, name, custom_headers).value! + def retrieve_certificate_email_history(resource_group_name, name, custom_headers:nil) + response = retrieve_certificate_email_history_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1677,8 +1682,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def retrieve_certificate_email_history_with_http_info(resource_group_name, name, custom_headers = nil) - retrieve_certificate_email_history_async(resource_group_name, name, custom_headers).value! + def retrieve_certificate_email_history_with_http_info(resource_group_name, name, custom_headers:nil) + retrieve_certificate_email_history_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1694,7 +1699,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def retrieve_certificate_email_history_async(resource_group_name, name, custom_headers = nil) + def retrieve_certificate_email_history_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1705,6 +1710,7 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1780,8 +1786,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [AppServiceCertificateOrder] operation results. # - def begin_create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers).value! + def begin_create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1800,8 +1806,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) - begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil) + begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value! end # @@ -1819,7 +1825,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1831,7 +1837,6 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1910,8 +1915,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [AppServiceCertificateResource] operation results. # - def begin_create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) - response = begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers).value! + def begin_create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil) + response = begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1931,8 +1936,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) - begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers).value! + def begin_create_or_update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil) + begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value! end # @@ -1951,7 +1956,7 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) + def begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1964,7 +1969,6 @@ module Azure::Web::Mgmt::V2015_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2039,8 +2043,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [AppServiceCertificateOrderCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2056,8 +2060,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2072,11 +2076,12 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2132,8 +2137,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [AppServiceCertificateOrderCollection] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2149,8 +2154,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2165,11 +2170,12 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2225,8 +2231,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [AppServiceCertificateCollection] operation results. # - def list_certificates_next(next_page_link, custom_headers = nil) - response = list_certificates_next_async(next_page_link, custom_headers).value! + def list_certificates_next(next_page_link, custom_headers:nil) + response = list_certificates_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2242,8 +2248,8 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_certificates_next_with_http_info(next_page_link, custom_headers = nil) - list_certificates_next_async(next_page_link, custom_headers).value! + def list_certificates_next_with_http_info(next_page_link, custom_headers:nil) + list_certificates_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -2258,11 +2264,12 @@ module Azure::Web::Mgmt::V2015_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_certificates_next_async(next_page_link, custom_headers = nil) + def list_certificates_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2317,12 +2324,12 @@ module Azure::Web::Mgmt::V2015_08_01 # @return [AppServiceCertificateOrderCollection] which provide lazy access to # pages of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2341,12 +2348,12 @@ module Azure::Web::Mgmt::V2015_08_01 # @return [AppServiceCertificateOrderCollection] which provide lazy access to # pages of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2366,12 +2373,12 @@ module Azure::Web::Mgmt::V2015_08_01 # @return [AppServiceCertificateCollection] which provide lazy access to pages # of the response. # - def list_certificates_as_lazy(resource_group_name, certificate_order_name, custom_headers = nil) - response = list_certificates_async(resource_group_name, certificate_order_name, custom_headers).value! + def list_certificates_as_lazy(resource_group_name, certificate_order_name, custom_headers:nil) + response = list_certificates_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_certificates_next_async(next_page_link, custom_headers) + list_certificates_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb index d6ae873d0..ca5cfc336 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/certificates.rb @@ -31,8 +31,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,12 +60,13 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -122,8 +123,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -139,8 +140,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -155,7 +156,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -165,6 +166,7 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +224,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Certificate] operation results. # - def get(resource_group_name, name, custom_headers = nil) - response = get_async(resource_group_name, name, custom_headers).value! + def get(resource_group_name, name, custom_headers:nil) + response = get_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -240,8 +242,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, custom_headers = nil) - get_async(resource_group_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, name, custom_headers:nil) + get_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -257,7 +259,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, custom_headers = nil) + def get_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -268,6 +270,7 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -327,8 +330,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Certificate] operation results. # - def create_or_update(resource_group_name, name, certificate_envelope, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, certificate_envelope, custom_headers).value! + def create_or_update(resource_group_name, name, certificate_envelope, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, certificate_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -347,8 +350,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, name, certificate_envelope, custom_headers = nil) - create_or_update_async(resource_group_name, name, certificate_envelope, custom_headers).value! + def create_or_update_with_http_info(resource_group_name, name, certificate_envelope, custom_headers:nil) + create_or_update_async(resource_group_name, name, certificate_envelope, custom_headers:custom_headers).value! end # @@ -366,7 +369,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, name, certificate_envelope, custom_headers = nil) + def create_or_update_async(resource_group_name, name, certificate_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -378,7 +381,6 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -443,8 +445,8 @@ module Azure::Web::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def delete(resource_group_name, name, custom_headers = nil) - response = delete_async(resource_group_name, name, custom_headers).value! + def delete(resource_group_name, name, custom_headers:nil) + response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -461,8 +463,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, name, custom_headers = nil) - delete_async(resource_group_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, name, custom_headers:nil) + delete_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -478,7 +480,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, name, custom_headers = nil) + def delete_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -489,6 +491,7 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -538,8 +541,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Certificate] operation results. # - def update(resource_group_name, name, certificate_envelope, custom_headers = nil) - response = update_async(resource_group_name, name, certificate_envelope, custom_headers).value! + def update(resource_group_name, name, certificate_envelope, custom_headers:nil) + response = update_async(resource_group_name, name, certificate_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -558,8 +561,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, name, certificate_envelope, custom_headers = nil) - update_async(resource_group_name, name, certificate_envelope, custom_headers).value! + def update_with_http_info(resource_group_name, name, certificate_envelope, custom_headers:nil) + update_async(resource_group_name, name, certificate_envelope, custom_headers:custom_headers).value! end # @@ -577,7 +580,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, name, certificate_envelope, custom_headers = nil) + def update_async(resource_group_name, name, certificate_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -589,7 +592,6 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -654,8 +656,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [CertificateCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -671,8 +673,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -687,11 +689,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -747,8 +750,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [CertificateCollection] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -764,8 +767,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -780,11 +783,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -839,12 +843,12 @@ module Azure::Web::Mgmt::V2016_03_01 # @return [CertificateCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -863,12 +867,12 @@ module Azure::Web::Mgmt::V2016_03_01 # @return [CertificateCollection] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb index f60fd0676..6185ca615 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/deleted_web_apps.rb @@ -31,8 +31,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,12 +60,13 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -122,8 +123,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [DeletedWebAppCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -139,8 +140,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -155,11 +156,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -214,12 +216,12 @@ module Azure::Web::Mgmt::V2016_03_01 # @return [DeletedWebAppCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/provider.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/provider.rb index 377ecbd6d..ffc852ebf 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/provider.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/provider.rb @@ -31,8 +31,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Object] operation results. # - def get_available_stacks(custom_headers = nil) - response = get_available_stacks_async(custom_headers).value! + def get_available_stacks(custom_headers:nil) + response = get_available_stacks_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_available_stacks_with_http_info(custom_headers = nil) - get_available_stacks_async(custom_headers).value! + def get_available_stacks_with_http_info(custom_headers:nil) + get_available_stacks_async(custom_headers:custom_headers).value! end # @@ -60,11 +60,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_available_stacks_async(custom_headers = nil) + def get_available_stacks_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -104,8 +105,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_operations(custom_headers = nil) - first_page = list_operations_as_lazy(custom_headers) + def list_operations(custom_headers:nil) + first_page = list_operations_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -115,8 +116,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_with_http_info(custom_headers = nil) - list_operations_async(custom_headers).value! + def list_operations_with_http_info(custom_headers:nil) + list_operations_async(custom_headers:custom_headers).value! end # @@ -125,11 +126,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_async(custom_headers = nil) + def list_operations_async(custom_headers:nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -183,8 +185,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Object] operation results. # - def get_available_stacks_on_prem(custom_headers = nil) - response = get_available_stacks_on_prem_async(custom_headers).value! + def get_available_stacks_on_prem(custom_headers:nil) + response = get_available_stacks_on_prem_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -198,8 +200,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_available_stacks_on_prem_with_http_info(custom_headers = nil) - get_available_stacks_on_prem_async(custom_headers).value! + def get_available_stacks_on_prem_with_http_info(custom_headers:nil) + get_available_stacks_on_prem_async(custom_headers:custom_headers).value! end # @@ -212,12 +214,13 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_available_stacks_on_prem_async(custom_headers = nil) + def get_available_stacks_on_prem_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -260,8 +263,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [CsmOperationCollection] operation results. # - def list_operations_next(next_page_link, custom_headers = nil) - response = list_operations_next_async(next_page_link, custom_headers).value! + def list_operations_next(next_page_link, custom_headers:nil) + response = list_operations_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -273,8 +276,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_next_with_http_info(next_page_link, custom_headers = nil) - list_operations_next_async(next_page_link, custom_headers).value! + def list_operations_next_with_http_info(next_page_link, custom_headers:nil) + list_operations_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -285,11 +288,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_next_async(next_page_link, custom_headers = nil) + def list_operations_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -340,12 +344,12 @@ module Azure::Web::Mgmt::V2016_03_01 # @return [CsmOperationCollection] which provide lazy access to pages of the # response. # - def list_operations_as_lazy(custom_headers = nil) - response = list_operations_async(custom_headers).value! + def list_operations_as_lazy(custom_headers:nil) + response = list_operations_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_operations_next_async(next_page_link, custom_headers) + list_operations_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb index 1ccf21e3c..9895a3dba 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/recommendations.rb @@ -38,8 +38,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list(featured = nil, filter = nil, custom_headers = nil) - response = list_async(featured, filter, custom_headers).value! + def list(featured:nil, filter:nil, custom_headers:nil) + response = list_async(featured:featured, filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -60,8 +60,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(featured = nil, filter = nil, custom_headers = nil) - list_async(featured, filter, custom_headers).value! + def list_with_http_info(featured:nil, filter:nil, custom_headers:nil) + list_async(featured:featured, filter:filter, custom_headers:custom_headers).value! end # @@ -81,12 +81,13 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(featured = nil, filter = nil, custom_headers = nil) + def list_async(featured:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -157,8 +158,8 @@ module Azure::Web::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def reset_all_filters(custom_headers = nil) - response = reset_all_filters_async(custom_headers).value! + def reset_all_filters(custom_headers:nil) + response = reset_all_filters_async(custom_headers:custom_headers).value! nil end @@ -172,8 +173,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def reset_all_filters_with_http_info(custom_headers = nil) - reset_all_filters_async(custom_headers).value! + def reset_all_filters_with_http_info(custom_headers:nil) + reset_all_filters_async(custom_headers:custom_headers).value! end # @@ -186,12 +187,13 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def reset_all_filters_async(custom_headers = nil) + def reset_all_filters_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -243,8 +245,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_history_for_web_app(resource_group_name, site_name, filter = nil, custom_headers = nil) - response = list_history_for_web_app_async(resource_group_name, site_name, filter, custom_headers).value! + def list_history_for_web_app(resource_group_name, site_name, filter:nil, custom_headers:nil) + response = list_history_for_web_app_async(resource_group_name, site_name, filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -265,8 +267,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_history_for_web_app_with_http_info(resource_group_name, site_name, filter = nil, custom_headers = nil) - list_history_for_web_app_async(resource_group_name, site_name, filter, custom_headers).value! + def list_history_for_web_app_with_http_info(resource_group_name, site_name, filter:nil, custom_headers:nil) + list_history_for_web_app_async(resource_group_name, site_name, filter:filter, custom_headers:custom_headers).value! end # @@ -286,7 +288,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_history_for_web_app_async(resource_group_name, site_name, filter = nil, custom_headers = nil) + def list_history_for_web_app_async(resource_group_name, site_name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -297,6 +299,7 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -377,8 +380,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_recommended_rules_for_web_app(resource_group_name, site_name, featured = nil, filter = nil, custom_headers = nil) - response = list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured, filter, custom_headers).value! + def list_recommended_rules_for_web_app(resource_group_name, site_name, featured:nil, filter:nil, custom_headers:nil) + response = list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured:featured, filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -401,8 +404,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_recommended_rules_for_web_app_with_http_info(resource_group_name, site_name, featured = nil, filter = nil, custom_headers = nil) - list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured, filter, custom_headers).value! + def list_recommended_rules_for_web_app_with_http_info(resource_group_name, site_name, featured:nil, filter:nil, custom_headers:nil) + list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured:featured, filter:filter, custom_headers:custom_headers).value! end # @@ -424,7 +427,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured = nil, filter = nil, custom_headers = nil) + def list_recommended_rules_for_web_app_async(resource_group_name, site_name, featured:nil, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -435,6 +438,7 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -508,8 +512,8 @@ module Azure::Web::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def disable_all_for_web_app(resource_group_name, site_name, custom_headers = nil) - response = disable_all_for_web_app_async(resource_group_name, site_name, custom_headers).value! + def disable_all_for_web_app(resource_group_name, site_name, custom_headers:nil) + response = disable_all_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value! nil end @@ -526,8 +530,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def disable_all_for_web_app_with_http_info(resource_group_name, site_name, custom_headers = nil) - disable_all_for_web_app_async(resource_group_name, site_name, custom_headers).value! + def disable_all_for_web_app_with_http_info(resource_group_name, site_name, custom_headers:nil) + disable_all_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value! end # @@ -543,7 +547,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def disable_all_for_web_app_async(resource_group_name, site_name, custom_headers = nil) + def disable_all_for_web_app_async(resource_group_name, site_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -554,6 +558,7 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -600,8 +605,8 @@ module Azure::Web::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def reset_all_filters_for_web_app(resource_group_name, site_name, custom_headers = nil) - response = reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers).value! + def reset_all_filters_for_web_app(resource_group_name, site_name, custom_headers:nil) + response = reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value! nil end @@ -618,8 +623,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def reset_all_filters_for_web_app_with_http_info(resource_group_name, site_name, custom_headers = nil) - reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers).value! + def reset_all_filters_for_web_app_with_http_info(resource_group_name, site_name, custom_headers:nil) + reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers:custom_headers).value! end # @@ -635,7 +640,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers = nil) + def reset_all_filters_for_web_app_async(resource_group_name, site_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -646,6 +651,7 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -696,8 +702,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [RecommendationRule] operation results. # - def get_rule_details_by_web_app(resource_group_name, site_name, name, update_seen = nil, custom_headers = nil) - response = get_rule_details_by_web_app_async(resource_group_name, site_name, name, update_seen, custom_headers).value! + def get_rule_details_by_web_app(resource_group_name, site_name, name, update_seen:nil, custom_headers:nil) + response = get_rule_details_by_web_app_async(resource_group_name, site_name, name, update_seen:update_seen, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -717,8 +723,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_rule_details_by_web_app_with_http_info(resource_group_name, site_name, name, update_seen = nil, custom_headers = nil) - get_rule_details_by_web_app_async(resource_group_name, site_name, name, update_seen, custom_headers).value! + def get_rule_details_by_web_app_with_http_info(resource_group_name, site_name, name, update_seen:nil, custom_headers:nil) + get_rule_details_by_web_app_async(resource_group_name, site_name, name, update_seen:update_seen, custom_headers:custom_headers).value! end # @@ -737,7 +743,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_rule_details_by_web_app_async(resource_group_name, site_name, name, update_seen = nil, custom_headers = nil) + def get_rule_details_by_web_app_async(resource_group_name, site_name, name, update_seen:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -749,6 +755,7 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb index bd0cebb06..c529175c5 100644 --- a/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb +++ b/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb @@ -139,8 +139,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [User] operation results. # - def get_publishing_user(custom_headers = nil) - response = get_publishing_user_async(custom_headers).value! + def get_publishing_user(custom_headers:nil) + response = get_publishing_user_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -154,8 +154,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_publishing_user_with_http_info(custom_headers = nil) - get_publishing_user_async(custom_headers).value! + def get_publishing_user_with_http_info(custom_headers:nil) + get_publishing_user_async(custom_headers:custom_headers).value! end # @@ -168,11 +168,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_publishing_user_async(custom_headers = nil) + def get_publishing_user_async(custom_headers:nil) fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -227,8 +228,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [User] operation results. # - def update_publishing_user(user_details, custom_headers = nil) - response = update_publishing_user_async(user_details, custom_headers).value! + def update_publishing_user(user_details, custom_headers:nil) + response = update_publishing_user_async(user_details, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -243,8 +244,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_publishing_user_with_http_info(user_details, custom_headers = nil) - update_publishing_user_async(user_details, custom_headers).value! + def update_publishing_user_with_http_info(user_details, custom_headers:nil) + update_publishing_user_async(user_details, custom_headers:custom_headers).value! end # @@ -258,13 +259,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_publishing_user_async(user_details, custom_headers = nil) + def update_publishing_user_async(user_details, custom_headers:nil) fail ArgumentError, 'user_details is nil' if user_details.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -326,8 +326,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_source_controls(custom_headers = nil) - first_page = list_source_controls_as_lazy(custom_headers) + def list_source_controls(custom_headers:nil) + first_page = list_source_controls_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -341,8 +341,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_source_controls_with_http_info(custom_headers = nil) - list_source_controls_async(custom_headers).value! + def list_source_controls_with_http_info(custom_headers:nil) + list_source_controls_async(custom_headers:custom_headers).value! end # @@ -355,11 +355,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_source_controls_async(custom_headers = nil) + def list_source_controls_async(custom_headers:nil) fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -415,8 +416,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [SourceControl] operation results. # - def update_source_control(source_control_type, request_message, custom_headers = nil) - response = update_source_control_async(source_control_type, request_message, custom_headers).value! + def update_source_control(source_control_type, request_message, custom_headers:nil) + response = update_source_control_async(source_control_type, request_message, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -432,8 +433,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_source_control_with_http_info(source_control_type, request_message, custom_headers = nil) - update_source_control_async(source_control_type, request_message, custom_headers).value! + def update_source_control_with_http_info(source_control_type, request_message, custom_headers:nil) + update_source_control_async(source_control_type, request_message, custom_headers:custom_headers).value! end # @@ -448,14 +449,13 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_source_control_async(source_control_type, request_message, custom_headers = nil) + def update_source_control_async(source_control_type, request_message, custom_headers:nil) fail ArgumentError, 'source_control_type is nil' if source_control_type.nil? fail ArgumentError, 'request_message is nil' if request_message.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -522,8 +522,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [ResourceNameAvailability] operation results. # - def check_name_availability(name, type, is_fqdn = nil, custom_headers = nil) - response = check_name_availability_async(name, type, is_fqdn, custom_headers).value! + def check_name_availability(name, type, is_fqdn:nil, custom_headers:nil) + response = check_name_availability_async(name, type, is_fqdn:is_fqdn, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -541,8 +541,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(name, type, is_fqdn = nil, custom_headers = nil) - check_name_availability_async(name, type, is_fqdn, custom_headers).value! + def check_name_availability_with_http_info(name, type, is_fqdn:nil, custom_headers:nil) + check_name_availability_async(name, type, is_fqdn:is_fqdn, custom_headers:custom_headers).value! end # @@ -559,7 +559,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(name, type, is_fqdn = nil, custom_headers = nil) + def check_name_availability_async(name, type, is_fqdn:nil, custom_headers:nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? fail ArgumentError, 'name is nil' if name.nil? @@ -573,7 +573,6 @@ module Azure::Web::Mgmt::V2016_03_01 end request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -641,8 +640,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_geo_regions(sku = nil, linux_workers_enabled = nil, custom_headers = nil) - first_page = list_geo_regions_as_lazy(sku, linux_workers_enabled, custom_headers) + def list_geo_regions(sku:nil, linux_workers_enabled:nil, custom_headers:nil) + first_page = list_geo_regions_as_lazy(sku:sku, linux_workers_enabled:linux_workers_enabled, custom_headers:custom_headers) first_page.get_all_items end @@ -661,8 +660,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_geo_regions_with_http_info(sku = nil, linux_workers_enabled = nil, custom_headers = nil) - list_geo_regions_async(sku, linux_workers_enabled, custom_headers).value! + def list_geo_regions_with_http_info(sku:nil, linux_workers_enabled:nil, custom_headers:nil) + list_geo_regions_async(sku:sku, linux_workers_enabled:linux_workers_enabled, custom_headers:custom_headers).value! end # @@ -680,12 +679,13 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_geo_regions_async(sku = nil, linux_workers_enabled = nil, custom_headers = nil) + def list_geo_regions_async(sku:nil, linux_workers_enabled:nil, custom_headers:nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -740,8 +740,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Array] operation results. # - def list_premier_add_on_offers(custom_headers = nil) - first_page = list_premier_add_on_offers_as_lazy(custom_headers) + def list_premier_add_on_offers(custom_headers:nil) + first_page = list_premier_add_on_offers_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -755,8 +755,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_premier_add_on_offers_with_http_info(custom_headers = nil) - list_premier_add_on_offers_async(custom_headers).value! + def list_premier_add_on_offers_with_http_info(custom_headers:nil) + list_premier_add_on_offers_async(custom_headers:custom_headers).value! end # @@ -769,12 +769,13 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_premier_add_on_offers_async(custom_headers = nil) + def list_premier_add_on_offers_async(custom_headers:nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -829,8 +830,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [SkuInfos] operation results. # - def list_skus(custom_headers = nil) - response = list_skus_async(custom_headers).value! + def list_skus(custom_headers:nil) + response = list_skus_async(custom_headers:custom_headers).value! response.body unless response.nil? end @@ -844,8 +845,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_skus_with_http_info(custom_headers = nil) - list_skus_async(custom_headers).value! + def list_skus_with_http_info(custom_headers:nil) + list_skus_async(custom_headers:custom_headers).value! end # @@ -858,12 +859,13 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_skus_async(custom_headers = nil) + def list_skus_async(custom_headers:nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -920,8 +922,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [VnetValidationFailureDetails] operation results. # - def verify_hosting_environment_vnet(parameters, custom_headers = nil) - response = verify_hosting_environment_vnet_async(parameters, custom_headers).value! + def verify_hosting_environment_vnet(parameters, custom_headers:nil) + response = verify_hosting_environment_vnet_async(parameters, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -937,8 +939,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def verify_hosting_environment_vnet_with_http_info(parameters, custom_headers = nil) - verify_hosting_environment_vnet_async(parameters, custom_headers).value! + def verify_hosting_environment_vnet_with_http_info(parameters, custom_headers:nil) + verify_hosting_environment_vnet_async(parameters, custom_headers:custom_headers).value! end # @@ -953,14 +955,13 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def verify_hosting_environment_vnet_async(parameters, custom_headers = nil) + def verify_hosting_environment_vnet_async(parameters, custom_headers:nil) fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, 'api_version is nil' if api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1026,8 +1027,8 @@ module Azure::Web::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def move(resource_group_name, move_resource_envelope, custom_headers = nil) - response = move_async(resource_group_name, move_resource_envelope, custom_headers).value! + def move(resource_group_name, move_resource_envelope, custom_headers:nil) + response = move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value! nil end @@ -1045,8 +1046,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def move_with_http_info(resource_group_name, move_resource_envelope, custom_headers = nil) - move_async(resource_group_name, move_resource_envelope, custom_headers).value! + def move_with_http_info(resource_group_name, move_resource_envelope, custom_headers:nil) + move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value! end # @@ -1063,7 +1064,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def move_async(resource_group_name, move_resource_envelope, custom_headers = nil) + def move_async(resource_group_name, move_resource_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1074,7 +1075,6 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1131,8 +1131,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [ValidateResponse] operation results. # - def validate(resource_group_name, validate_request, custom_headers = nil) - response = validate_async(resource_group_name, validate_request, custom_headers).value! + def validate(resource_group_name, validate_request, custom_headers:nil) + response = validate_async(resource_group_name, validate_request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1150,8 +1150,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_with_http_info(resource_group_name, validate_request, custom_headers = nil) - validate_async(resource_group_name, validate_request, custom_headers).value! + def validate_with_http_info(resource_group_name, validate_request, custom_headers:nil) + validate_async(resource_group_name, validate_request, custom_headers:custom_headers).value! end # @@ -1168,7 +1168,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_async(resource_group_name, validate_request, custom_headers = nil) + def validate_async(resource_group_name, validate_request, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1179,7 +1179,6 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1245,8 +1244,8 @@ module Azure::Web::Mgmt::V2016_03_01 # will be added to the HTTP request. # # - def validate_move(resource_group_name, move_resource_envelope, custom_headers = nil) - response = validate_move_async(resource_group_name, move_resource_envelope, custom_headers).value! + def validate_move(resource_group_name, move_resource_envelope, custom_headers:nil) + response = validate_move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value! nil end @@ -1264,8 +1263,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_move_with_http_info(resource_group_name, move_resource_envelope, custom_headers = nil) - validate_move_async(resource_group_name, move_resource_envelope, custom_headers).value! + def validate_move_with_http_info(resource_group_name, move_resource_envelope, custom_headers:nil) + validate_move_async(resource_group_name, move_resource_envelope, custom_headers:custom_headers).value! end # @@ -1282,7 +1281,7 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_move_async(resource_group_name, move_resource_envelope, custom_headers = nil) + def validate_move_async(resource_group_name, move_resource_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1293,7 +1292,6 @@ module Azure::Web::Mgmt::V2016_03_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1348,8 +1346,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [SourceControlCollection] operation results. # - def list_source_controls_next(next_page_link, custom_headers = nil) - response = list_source_controls_next_async(next_page_link, custom_headers).value! + def list_source_controls_next(next_page_link, custom_headers:nil) + response = list_source_controls_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1365,8 +1363,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_source_controls_next_with_http_info(next_page_link, custom_headers = nil) - list_source_controls_next_async(next_page_link, custom_headers).value! + def list_source_controls_next_with_http_info(next_page_link, custom_headers:nil) + list_source_controls_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1381,11 +1379,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_source_controls_next_async(next_page_link, custom_headers = nil) + def list_source_controls_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1441,8 +1440,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [GeoRegionCollection] operation results. # - def list_geo_regions_next(next_page_link, custom_headers = nil) - response = list_geo_regions_next_async(next_page_link, custom_headers).value! + def list_geo_regions_next(next_page_link, custom_headers:nil) + response = list_geo_regions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1458,8 +1457,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_geo_regions_next_with_http_info(next_page_link, custom_headers = nil) - list_geo_regions_next_async(next_page_link, custom_headers).value! + def list_geo_regions_next_with_http_info(next_page_link, custom_headers:nil) + list_geo_regions_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1474,11 +1473,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_geo_regions_next_async(next_page_link, custom_headers = nil) + def list_geo_regions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1534,8 +1534,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [PremierAddOnOfferCollection] operation results. # - def list_premier_add_on_offers_next(next_page_link, custom_headers = nil) - response = list_premier_add_on_offers_next_async(next_page_link, custom_headers).value! + def list_premier_add_on_offers_next(next_page_link, custom_headers:nil) + response = list_premier_add_on_offers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1551,8 +1551,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_premier_add_on_offers_next_with_http_info(next_page_link, custom_headers = nil) - list_premier_add_on_offers_next_async(next_page_link, custom_headers).value! + def list_premier_add_on_offers_next_with_http_info(next_page_link, custom_headers:nil) + list_premier_add_on_offers_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -1567,11 +1567,12 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_premier_add_on_offers_next_async(next_page_link, custom_headers = nil) + def list_premier_add_on_offers_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1625,8 +1626,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [SourceControlCollection] operation results. # - def list_source_controls_as_lazy(custom_headers = nil) - first_page = list_source_controls_as_lazy_as_lazy(custom_headers) + def list_source_controls_as_lazy(custom_headers:nil) + first_page = list_source_controls_as_lazy_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -1640,8 +1641,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_source_controls_as_lazy_with_http_info(custom_headers = nil) - list_source_controls_as_lazy_async(custom_headers).value! + def list_source_controls_as_lazy_with_http_info(custom_headers:nil) + list_source_controls_as_lazy_async(custom_headers:custom_headers).value! end # @@ -1654,10 +1655,11 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_source_controls_as_lazy_async(custom_headers = nil) + def list_source_controls_as_lazy_async(custom_headers:nil) request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' path_template = 'providers/Microsoft.Web/sourcecontrols' request_url = @base_url || self.base_url @@ -1711,8 +1713,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [GeoRegionCollection] operation results. # - def list_geo_regions_as_lazy(sku = nil, linux_workers_enabled = nil, custom_headers = nil) - first_page = list_geo_regions_as_lazy_as_lazy(sku, linux_workers_enabled, custom_headers) + def list_geo_regions_as_lazy(sku:nil, linux_workers_enabled:nil, custom_headers:nil) + first_page = list_geo_regions_as_lazy_as_lazy(sku:sku, linux_workers_enabled:linux_workers_enabled, custom_headers:custom_headers) first_page.get_all_items end @@ -1731,8 +1733,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_geo_regions_as_lazy_with_http_info(sku = nil, linux_workers_enabled = nil, custom_headers = nil) - list_geo_regions_as_lazy_async(sku, linux_workers_enabled, custom_headers).value! + def list_geo_regions_as_lazy_with_http_info(sku:nil, linux_workers_enabled:nil, custom_headers:nil) + list_geo_regions_as_lazy_async(sku:sku, linux_workers_enabled:linux_workers_enabled, custom_headers:custom_headers).value! end # @@ -1750,10 +1752,11 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_geo_regions_as_lazy_async(sku = nil, linux_workers_enabled = nil, custom_headers = nil) + def list_geo_regions_as_lazy_async(sku:nil, linux_workers_enabled:nil, custom_headers:nil) request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions' request_url = @base_url || self.base_url @@ -1803,8 +1806,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [PremierAddOnOfferCollection] operation results. # - def list_premier_add_on_offers_as_lazy(custom_headers = nil) - first_page = list_premier_add_on_offers_as_lazy_as_lazy(custom_headers) + def list_premier_add_on_offers_as_lazy(custom_headers:nil) + first_page = list_premier_add_on_offers_as_lazy_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -1818,8 +1821,8 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_premier_add_on_offers_as_lazy_with_http_info(custom_headers = nil) - list_premier_add_on_offers_as_lazy_async(custom_headers).value! + def list_premier_add_on_offers_as_lazy_with_http_info(custom_headers:nil) + list_premier_add_on_offers_as_lazy_async(custom_headers:custom_headers).value! end # @@ -1832,10 +1835,11 @@ module Azure::Web::Mgmt::V2016_03_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_premier_add_on_offers_as_lazy_async(custom_headers = nil) + def list_premier_add_on_offers_as_lazy_async(custom_headers:nil) request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers' request_url = @base_url || self.base_url diff --git a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb index 25781e3fa..8510d191d 100644 --- a/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb +++ b/management/azure_mgmt_web/lib/2016-08-01/generated/azure_mgmt_web/web_apps.rb @@ -31,8 +31,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,12 +60,13 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -125,8 +126,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, include_slots = nil, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, include_slots, custom_headers) + def list_by_resource_group(resource_group_name, include_slots:nil, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, include_slots:include_slots, custom_headers:custom_headers) first_page.get_all_items end @@ -145,8 +146,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, include_slots = nil, custom_headers = nil) - list_by_resource_group_async(resource_group_name, include_slots, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, include_slots:nil, custom_headers:nil) + list_by_resource_group_async(resource_group_name, include_slots:include_slots, custom_headers:custom_headers).value! end # @@ -164,7 +165,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, include_slots = nil, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, include_slots:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -174,6 +175,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -231,8 +233,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Site] operation results. # - def get(resource_group_name, name, custom_headers = nil) - response = get_async(resource_group_name, name, custom_headers).value! + def get(resource_group_name, name, custom_headers:nil) + response = get_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -249,8 +251,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, custom_headers = nil) - get_async(resource_group_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, name, custom_headers:nil) + get_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -266,7 +268,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, custom_headers = nil) + def get_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -277,6 +279,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -348,8 +351,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Site] operation results. # - def create_or_update(resource_group_name, name, site_envelope, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers).value! + def create_or_update(resource_group_name, name, site_envelope, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -375,9 +378,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) + def create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers) + promise = begin_create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -410,8 +413,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete(resource_group_name, name, delete_metrics = nil, delete_empty_server_farm = nil, skip_dns_registration = nil, custom_headers = nil) - response = delete_async(resource_group_name, name, delete_metrics, delete_empty_server_farm, skip_dns_registration, custom_headers).value! + def delete(resource_group_name, name, delete_metrics:nil, delete_empty_server_farm:nil, skip_dns_registration:nil, custom_headers:nil) + response = delete_async(resource_group_name, name, delete_metrics:delete_metrics, delete_empty_server_farm:delete_empty_server_farm, skip_dns_registration:skip_dns_registration, custom_headers:custom_headers).value! nil end @@ -433,8 +436,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, name, delete_metrics = nil, delete_empty_server_farm = nil, skip_dns_registration = nil, custom_headers = nil) - delete_async(resource_group_name, name, delete_metrics, delete_empty_server_farm, skip_dns_registration, custom_headers).value! + def delete_with_http_info(resource_group_name, name, delete_metrics:nil, delete_empty_server_farm:nil, skip_dns_registration:nil, custom_headers:nil) + delete_async(resource_group_name, name, delete_metrics:delete_metrics, delete_empty_server_farm:delete_empty_server_farm, skip_dns_registration:skip_dns_registration, custom_headers:custom_headers).value! end # @@ -455,7 +458,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, name, delete_metrics = nil, delete_empty_server_farm = nil, skip_dns_registration = nil, custom_headers = nil) + def delete_async(resource_group_name, name, delete_metrics:nil, delete_empty_server_farm:nil, skip_dns_registration:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -466,6 +469,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -514,8 +518,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [CustomHostnameAnalysisResult] operation results. # - def analyze_custom_hostname(resource_group_name, name, host_name = nil, custom_headers = nil) - response = analyze_custom_hostname_async(resource_group_name, name, host_name, custom_headers).value! + def analyze_custom_hostname(resource_group_name, name, host_name:nil, custom_headers:nil) + response = analyze_custom_hostname_async(resource_group_name, name, host_name:host_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -533,8 +537,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def analyze_custom_hostname_with_http_info(resource_group_name, name, host_name = nil, custom_headers = nil) - analyze_custom_hostname_async(resource_group_name, name, host_name, custom_headers).value! + def analyze_custom_hostname_with_http_info(resource_group_name, name, host_name:nil, custom_headers:nil) + analyze_custom_hostname_async(resource_group_name, name, host_name:host_name, custom_headers:custom_headers).value! end # @@ -551,7 +555,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def analyze_custom_hostname_async(resource_group_name, name, host_name = nil, custom_headers = nil) + def analyze_custom_hostname_async(resource_group_name, name, host_name:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -562,6 +566,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -622,8 +627,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def apply_slot_config_to_production(resource_group_name, name, slot_swap_entity, custom_headers = nil) - response = apply_slot_config_to_production_async(resource_group_name, name, slot_swap_entity, custom_headers).value! + def apply_slot_config_to_production(resource_group_name, name, slot_swap_entity, custom_headers:nil) + response = apply_slot_config_to_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! nil end @@ -644,8 +649,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def apply_slot_config_to_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers = nil) - apply_slot_config_to_production_async(resource_group_name, name, slot_swap_entity, custom_headers).value! + def apply_slot_config_to_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers:nil) + apply_slot_config_to_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! end # @@ -665,7 +670,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def apply_slot_config_to_production_async(resource_group_name, name, slot_swap_entity, custom_headers = nil) + def apply_slot_config_to_production_async(resource_group_name, name, slot_swap_entity, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -677,7 +682,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -735,8 +739,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupItem] operation results. # - def backup(resource_group_name, name, request, custom_headers = nil) - response = backup_async(resource_group_name, name, request, custom_headers).value! + def backup(resource_group_name, name, request, custom_headers:nil) + response = backup_async(resource_group_name, name, request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -755,8 +759,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def backup_with_http_info(resource_group_name, name, request, custom_headers = nil) - backup_async(resource_group_name, name, request, custom_headers).value! + def backup_with_http_info(resource_group_name, name, request, custom_headers:nil) + backup_async(resource_group_name, name, request, custom_headers:custom_headers).value! end # @@ -774,7 +778,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def backup_async(resource_group_name, name, request, custom_headers = nil) + def backup_async(resource_group_name, name, request, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -786,7 +790,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -852,8 +855,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_backups(resource_group_name, name, custom_headers = nil) - first_page = list_backups_as_lazy(resource_group_name, name, custom_headers) + def list_backups(resource_group_name, name, custom_headers:nil) + first_page = list_backups_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -870,8 +873,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_backups_with_http_info(resource_group_name, name, custom_headers = nil) - list_backups_async(resource_group_name, name, custom_headers).value! + def list_backups_with_http_info(resource_group_name, name, custom_headers:nil) + list_backups_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -887,7 +890,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_backups_async(resource_group_name, name, custom_headers = nil) + def list_backups_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -898,6 +901,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -959,8 +963,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RestoreRequest] operation results. # - def discover_restore(resource_group_name, name, request, custom_headers = nil) - response = discover_restore_async(resource_group_name, name, request, custom_headers).value! + def discover_restore(resource_group_name, name, request, custom_headers:nil) + response = discover_restore_async(resource_group_name, name, request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -981,8 +985,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def discover_restore_with_http_info(resource_group_name, name, request, custom_headers = nil) - discover_restore_async(resource_group_name, name, request, custom_headers).value! + def discover_restore_with_http_info(resource_group_name, name, request, custom_headers:nil) + discover_restore_async(resource_group_name, name, request, custom_headers:custom_headers).value! end # @@ -1002,7 +1006,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def discover_restore_async(resource_group_name, name, request, custom_headers = nil) + def discover_restore_async(resource_group_name, name, request, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1014,7 +1018,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1081,8 +1084,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupItem] operation results. # - def get_backup_status(resource_group_name, name, backup_id, custom_headers = nil) - response = get_backup_status_async(resource_group_name, name, backup_id, custom_headers).value! + def get_backup_status(resource_group_name, name, backup_id, custom_headers:nil) + response = get_backup_status_async(resource_group_name, name, backup_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1100,8 +1103,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_backup_status_with_http_info(resource_group_name, name, backup_id, custom_headers = nil) - get_backup_status_async(resource_group_name, name, backup_id, custom_headers).value! + def get_backup_status_with_http_info(resource_group_name, name, backup_id, custom_headers:nil) + get_backup_status_async(resource_group_name, name, backup_id, custom_headers:custom_headers).value! end # @@ -1118,7 +1121,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_backup_status_async(resource_group_name, name, backup_id, custom_headers = nil) + def get_backup_status_async(resource_group_name, name, backup_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1130,6 +1133,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1187,8 +1191,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_backup(resource_group_name, name, backup_id, custom_headers = nil) - response = delete_backup_async(resource_group_name, name, backup_id, custom_headers).value! + def delete_backup(resource_group_name, name, backup_id, custom_headers:nil) + response = delete_backup_async(resource_group_name, name, backup_id, custom_headers:custom_headers).value! nil end @@ -1206,8 +1210,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_backup_with_http_info(resource_group_name, name, backup_id, custom_headers = nil) - delete_backup_async(resource_group_name, name, backup_id, custom_headers).value! + def delete_backup_with_http_info(resource_group_name, name, backup_id, custom_headers:nil) + delete_backup_async(resource_group_name, name, backup_id, custom_headers:custom_headers).value! end # @@ -1224,7 +1228,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_backup_async(resource_group_name, name, backup_id, custom_headers = nil) + def delete_backup_async(resource_group_name, name, backup_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1236,6 +1240,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1291,8 +1296,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupItem] operation results. # - def list_backup_status_secrets(resource_group_name, name, backup_id, request, custom_headers = nil) - response = list_backup_status_secrets_async(resource_group_name, name, backup_id, request, custom_headers).value! + def list_backup_status_secrets(resource_group_name, name, backup_id, request, custom_headers:nil) + response = list_backup_status_secrets_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1317,8 +1322,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_backup_status_secrets_with_http_info(resource_group_name, name, backup_id, request, custom_headers = nil) - list_backup_status_secrets_async(resource_group_name, name, backup_id, request, custom_headers).value! + def list_backup_status_secrets_with_http_info(resource_group_name, name, backup_id, request, custom_headers:nil) + list_backup_status_secrets_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers).value! end # @@ -1342,7 +1347,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_backup_status_secrets_async(resource_group_name, name, backup_id, request, custom_headers = nil) + def list_backup_status_secrets_async(resource_group_name, name, backup_id, request, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1355,7 +1360,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1423,8 +1427,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RestoreResponse] operation results. # - def restore(resource_group_name, name, backup_id, request, custom_headers = nil) - response = restore_async(resource_group_name, name, backup_id, request, custom_headers).value! + def restore(resource_group_name, name, backup_id, request, custom_headers:nil) + response = restore_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1440,9 +1444,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restore_async(resource_group_name, name, backup_id, request, custom_headers = nil) + def restore_async(resource_group_name, name, backup_id, request, custom_headers:nil) # Send request - promise = begin_restore_async(resource_group_name, name, backup_id, request, custom_headers) + promise = begin_restore_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1471,8 +1475,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_configurations(resource_group_name, name, custom_headers = nil) - first_page = list_configurations_as_lazy(resource_group_name, name, custom_headers) + def list_configurations(resource_group_name, name, custom_headers:nil) + first_page = list_configurations_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -1489,8 +1493,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_configurations_with_http_info(resource_group_name, name, custom_headers = nil) - list_configurations_async(resource_group_name, name, custom_headers).value! + def list_configurations_with_http_info(resource_group_name, name, custom_headers:nil) + list_configurations_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1506,7 +1510,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_configurations_async(resource_group_name, name, custom_headers = nil) + def list_configurations_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1517,6 +1521,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1575,8 +1580,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [StringDictionary] operation results. # - def update_application_settings(resource_group_name, name, app_settings, custom_headers = nil) - response = update_application_settings_async(resource_group_name, name, app_settings, custom_headers).value! + def update_application_settings(resource_group_name, name, app_settings, custom_headers:nil) + response = update_application_settings_async(resource_group_name, name, app_settings, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1594,8 +1599,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_application_settings_with_http_info(resource_group_name, name, app_settings, custom_headers = nil) - update_application_settings_async(resource_group_name, name, app_settings, custom_headers).value! + def update_application_settings_with_http_info(resource_group_name, name, app_settings, custom_headers:nil) + update_application_settings_async(resource_group_name, name, app_settings, custom_headers:custom_headers).value! end # @@ -1612,7 +1617,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_application_settings_async(resource_group_name, name, app_settings, custom_headers = nil) + def update_application_settings_async(resource_group_name, name, app_settings, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1624,7 +1629,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1690,8 +1694,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [StringDictionary] operation results. # - def list_application_settings(resource_group_name, name, custom_headers = nil) - response = list_application_settings_async(resource_group_name, name, custom_headers).value! + def list_application_settings(resource_group_name, name, custom_headers:nil) + response = list_application_settings_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1708,8 +1712,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_application_settings_with_http_info(resource_group_name, name, custom_headers = nil) - list_application_settings_async(resource_group_name, name, custom_headers).value! + def list_application_settings_with_http_info(resource_group_name, name, custom_headers:nil) + list_application_settings_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1725,7 +1729,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_application_settings_async(resource_group_name, name, custom_headers = nil) + def list_application_settings_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1736,6 +1740,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1795,8 +1800,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteAuthSettings] operation results. # - def update_auth_settings(resource_group_name, name, site_auth_settings, custom_headers = nil) - response = update_auth_settings_async(resource_group_name, name, site_auth_settings, custom_headers).value! + def update_auth_settings(resource_group_name, name, site_auth_settings, custom_headers:nil) + response = update_auth_settings_async(resource_group_name, name, site_auth_settings, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1815,8 +1820,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_auth_settings_with_http_info(resource_group_name, name, site_auth_settings, custom_headers = nil) - update_auth_settings_async(resource_group_name, name, site_auth_settings, custom_headers).value! + def update_auth_settings_with_http_info(resource_group_name, name, site_auth_settings, custom_headers:nil) + update_auth_settings_async(resource_group_name, name, site_auth_settings, custom_headers:custom_headers).value! end # @@ -1834,7 +1839,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_auth_settings_async(resource_group_name, name, site_auth_settings, custom_headers = nil) + def update_auth_settings_async(resource_group_name, name, site_auth_settings, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1846,7 +1851,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -1912,8 +1916,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteAuthSettings] operation results. # - def get_auth_settings(resource_group_name, name, custom_headers = nil) - response = get_auth_settings_async(resource_group_name, name, custom_headers).value! + def get_auth_settings(resource_group_name, name, custom_headers:nil) + response = get_auth_settings_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1930,8 +1934,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_auth_settings_with_http_info(resource_group_name, name, custom_headers = nil) - get_auth_settings_async(resource_group_name, name, custom_headers).value! + def get_auth_settings_with_http_info(resource_group_name, name, custom_headers:nil) + get_auth_settings_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1947,7 +1951,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_auth_settings_async(resource_group_name, name, custom_headers = nil) + def get_auth_settings_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1958,6 +1962,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2016,8 +2021,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupRequest] operation results. # - def update_backup_configuration(resource_group_name, name, request, custom_headers = nil) - response = update_backup_configuration_async(resource_group_name, name, request, custom_headers).value! + def update_backup_configuration(resource_group_name, name, request, custom_headers:nil) + response = update_backup_configuration_async(resource_group_name, name, request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2035,8 +2040,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_backup_configuration_with_http_info(resource_group_name, name, request, custom_headers = nil) - update_backup_configuration_async(resource_group_name, name, request, custom_headers).value! + def update_backup_configuration_with_http_info(resource_group_name, name, request, custom_headers:nil) + update_backup_configuration_async(resource_group_name, name, request, custom_headers:custom_headers).value! end # @@ -2053,7 +2058,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_backup_configuration_async(resource_group_name, name, request, custom_headers = nil) + def update_backup_configuration_async(resource_group_name, name, request, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2065,7 +2070,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2130,8 +2134,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_backup_configuration(resource_group_name, name, custom_headers = nil) - response = delete_backup_configuration_async(resource_group_name, name, custom_headers).value! + def delete_backup_configuration(resource_group_name, name, custom_headers:nil) + response = delete_backup_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -2148,8 +2152,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_backup_configuration_with_http_info(resource_group_name, name, custom_headers = nil) - delete_backup_configuration_async(resource_group_name, name, custom_headers).value! + def delete_backup_configuration_with_http_info(resource_group_name, name, custom_headers:nil) + delete_backup_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -2165,7 +2169,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_backup_configuration_async(resource_group_name, name, custom_headers = nil) + def delete_backup_configuration_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2176,6 +2180,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2223,8 +2228,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupRequest] operation results. # - def get_backup_configuration(resource_group_name, name, custom_headers = nil) - response = get_backup_configuration_async(resource_group_name, name, custom_headers).value! + def get_backup_configuration(resource_group_name, name, custom_headers:nil) + response = get_backup_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2241,8 +2246,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_backup_configuration_with_http_info(resource_group_name, name, custom_headers = nil) - get_backup_configuration_async(resource_group_name, name, custom_headers).value! + def get_backup_configuration_with_http_info(resource_group_name, name, custom_headers:nil) + get_backup_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -2258,7 +2263,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_backup_configuration_async(resource_group_name, name, custom_headers = nil) + def get_backup_configuration_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2269,6 +2274,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2328,8 +2334,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ConnectionStringDictionary] operation results. # - def update_connection_strings(resource_group_name, name, connection_strings, custom_headers = nil) - response = update_connection_strings_async(resource_group_name, name, connection_strings, custom_headers).value! + def update_connection_strings(resource_group_name, name, connection_strings, custom_headers:nil) + response = update_connection_strings_async(resource_group_name, name, connection_strings, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2348,8 +2354,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_connection_strings_with_http_info(resource_group_name, name, connection_strings, custom_headers = nil) - update_connection_strings_async(resource_group_name, name, connection_strings, custom_headers).value! + def update_connection_strings_with_http_info(resource_group_name, name, connection_strings, custom_headers:nil) + update_connection_strings_async(resource_group_name, name, connection_strings, custom_headers:custom_headers).value! end # @@ -2367,7 +2373,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_connection_strings_async(resource_group_name, name, connection_strings, custom_headers = nil) + def update_connection_strings_async(resource_group_name, name, connection_strings, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2379,7 +2385,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2445,8 +2450,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ConnectionStringDictionary] operation results. # - def list_connection_strings(resource_group_name, name, custom_headers = nil) - response = list_connection_strings_async(resource_group_name, name, custom_headers).value! + def list_connection_strings(resource_group_name, name, custom_headers:nil) + response = list_connection_strings_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2463,8 +2468,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_connection_strings_with_http_info(resource_group_name, name, custom_headers = nil) - list_connection_strings_async(resource_group_name, name, custom_headers).value! + def list_connection_strings_with_http_info(resource_group_name, name, custom_headers:nil) + list_connection_strings_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -2480,7 +2485,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_connection_strings_async(resource_group_name, name, custom_headers = nil) + def list_connection_strings_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2491,6 +2496,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2548,8 +2554,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteLogsConfig] operation results. # - def get_diagnostic_logs_configuration(resource_group_name, name, custom_headers = nil) - response = get_diagnostic_logs_configuration_async(resource_group_name, name, custom_headers).value! + def get_diagnostic_logs_configuration(resource_group_name, name, custom_headers:nil) + response = get_diagnostic_logs_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2566,8 +2572,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_diagnostic_logs_configuration_with_http_info(resource_group_name, name, custom_headers = nil) - get_diagnostic_logs_configuration_async(resource_group_name, name, custom_headers).value! + def get_diagnostic_logs_configuration_with_http_info(resource_group_name, name, custom_headers:nil) + get_diagnostic_logs_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -2583,7 +2589,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_diagnostic_logs_configuration_async(resource_group_name, name, custom_headers = nil) + def get_diagnostic_logs_configuration_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2594,6 +2600,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2653,8 +2660,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteLogsConfig] operation results. # - def update_diagnostic_logs_config(resource_group_name, name, site_logs_config, custom_headers = nil) - response = update_diagnostic_logs_config_async(resource_group_name, name, site_logs_config, custom_headers).value! + def update_diagnostic_logs_config(resource_group_name, name, site_logs_config, custom_headers:nil) + response = update_diagnostic_logs_config_async(resource_group_name, name, site_logs_config, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2673,8 +2680,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_diagnostic_logs_config_with_http_info(resource_group_name, name, site_logs_config, custom_headers = nil) - update_diagnostic_logs_config_async(resource_group_name, name, site_logs_config, custom_headers).value! + def update_diagnostic_logs_config_with_http_info(resource_group_name, name, site_logs_config, custom_headers:nil) + update_diagnostic_logs_config_async(resource_group_name, name, site_logs_config, custom_headers:custom_headers).value! end # @@ -2692,7 +2699,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_diagnostic_logs_config_async(resource_group_name, name, site_logs_config, custom_headers = nil) + def update_diagnostic_logs_config_async(resource_group_name, name, site_logs_config, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2704,7 +2711,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2772,8 +2778,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [StringDictionary] operation results. # - def update_metadata(resource_group_name, name, metadata, custom_headers = nil) - response = update_metadata_async(resource_group_name, name, metadata, custom_headers).value! + def update_metadata(resource_group_name, name, metadata, custom_headers:nil) + response = update_metadata_async(resource_group_name, name, metadata, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2792,8 +2798,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_metadata_with_http_info(resource_group_name, name, metadata, custom_headers = nil) - update_metadata_async(resource_group_name, name, metadata, custom_headers).value! + def update_metadata_with_http_info(resource_group_name, name, metadata, custom_headers:nil) + update_metadata_async(resource_group_name, name, metadata, custom_headers:custom_headers).value! end # @@ -2811,7 +2817,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_metadata_async(resource_group_name, name, metadata, custom_headers = nil) + def update_metadata_async(resource_group_name, name, metadata, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2823,7 +2829,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2889,8 +2894,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [StringDictionary] operation results. # - def list_metadata(resource_group_name, name, custom_headers = nil) - response = list_metadata_async(resource_group_name, name, custom_headers).value! + def list_metadata(resource_group_name, name, custom_headers:nil) + response = list_metadata_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2907,8 +2912,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metadata_with_http_info(resource_group_name, name, custom_headers = nil) - list_metadata_async(resource_group_name, name, custom_headers).value! + def list_metadata_with_http_info(resource_group_name, name, custom_headers:nil) + list_metadata_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -2924,7 +2929,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metadata_async(resource_group_name, name, custom_headers = nil) + def list_metadata_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2935,6 +2940,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2992,8 +2998,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [User] operation results. # - def list_publishing_credentials(resource_group_name, name, custom_headers = nil) - response = list_publishing_credentials_async(resource_group_name, name, custom_headers).value! + def list_publishing_credentials(resource_group_name, name, custom_headers:nil) + response = list_publishing_credentials_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3007,9 +3013,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_publishing_credentials_async(resource_group_name, name, custom_headers = nil) + def list_publishing_credentials_async(resource_group_name, name, custom_headers:nil) # Send request - promise = begin_list_publishing_credentials_async(resource_group_name, name, custom_headers) + promise = begin_list_publishing_credentials_async(resource_group_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -3039,8 +3045,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PushSettings] operation results. # - def update_site_push_settings(resource_group_name, name, push_settings, custom_headers = nil) - response = update_site_push_settings_async(resource_group_name, name, push_settings, custom_headers).value! + def update_site_push_settings(resource_group_name, name, push_settings, custom_headers:nil) + response = update_site_push_settings_async(resource_group_name, name, push_settings, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3058,8 +3064,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_site_push_settings_with_http_info(resource_group_name, name, push_settings, custom_headers = nil) - update_site_push_settings_async(resource_group_name, name, push_settings, custom_headers).value! + def update_site_push_settings_with_http_info(resource_group_name, name, push_settings, custom_headers:nil) + update_site_push_settings_async(resource_group_name, name, push_settings, custom_headers:custom_headers).value! end # @@ -3076,7 +3082,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_site_push_settings_async(resource_group_name, name, push_settings, custom_headers = nil) + def update_site_push_settings_async(resource_group_name, name, push_settings, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3088,7 +3094,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -3154,8 +3159,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PushSettings] operation results. # - def list_site_push_settings(resource_group_name, name, custom_headers = nil) - response = list_site_push_settings_async(resource_group_name, name, custom_headers).value! + def list_site_push_settings(resource_group_name, name, custom_headers:nil) + response = list_site_push_settings_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3172,8 +3177,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_site_push_settings_with_http_info(resource_group_name, name, custom_headers = nil) - list_site_push_settings_async(resource_group_name, name, custom_headers).value! + def list_site_push_settings_with_http_info(resource_group_name, name, custom_headers:nil) + list_site_push_settings_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -3189,7 +3194,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_site_push_settings_async(resource_group_name, name, custom_headers = nil) + def list_site_push_settings_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3200,6 +3205,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3259,8 +3265,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SlotConfigNamesResource] operation results. # - def list_slot_configuration_names(resource_group_name, name, custom_headers = nil) - response = list_slot_configuration_names_async(resource_group_name, name, custom_headers).value! + def list_slot_configuration_names(resource_group_name, name, custom_headers:nil) + response = list_slot_configuration_names_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3279,8 +3285,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_slot_configuration_names_with_http_info(resource_group_name, name, custom_headers = nil) - list_slot_configuration_names_async(resource_group_name, name, custom_headers).value! + def list_slot_configuration_names_with_http_info(resource_group_name, name, custom_headers:nil) + list_slot_configuration_names_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -3298,7 +3304,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_slot_configuration_names_async(resource_group_name, name, custom_headers = nil) + def list_slot_configuration_names_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3309,6 +3315,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3370,8 +3377,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SlotConfigNamesResource] operation results. # - def update_slot_configuration_names(resource_group_name, name, slot_config_names, custom_headers = nil) - response = update_slot_configuration_names_async(resource_group_name, name, slot_config_names, custom_headers).value! + def update_slot_configuration_names(resource_group_name, name, slot_config_names, custom_headers:nil) + response = update_slot_configuration_names_async(resource_group_name, name, slot_config_names, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3392,8 +3399,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_slot_configuration_names_with_http_info(resource_group_name, name, slot_config_names, custom_headers = nil) - update_slot_configuration_names_async(resource_group_name, name, slot_config_names, custom_headers).value! + def update_slot_configuration_names_with_http_info(resource_group_name, name, slot_config_names, custom_headers:nil) + update_slot_configuration_names_async(resource_group_name, name, slot_config_names, custom_headers:custom_headers).value! end # @@ -3413,7 +3420,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_slot_configuration_names_async(resource_group_name, name, slot_config_names, custom_headers = nil) + def update_slot_configuration_names_async(resource_group_name, name, slot_config_names, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3425,7 +3432,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -3493,8 +3499,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteConfigResource] operation results. # - def get_configuration(resource_group_name, name, custom_headers = nil) - response = get_configuration_async(resource_group_name, name, custom_headers).value! + def get_configuration(resource_group_name, name, custom_headers:nil) + response = get_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3513,8 +3519,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_configuration_with_http_info(resource_group_name, name, custom_headers = nil) - get_configuration_async(resource_group_name, name, custom_headers).value! + def get_configuration_with_http_info(resource_group_name, name, custom_headers:nil) + get_configuration_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -3532,7 +3538,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_configuration_async(resource_group_name, name, custom_headers = nil) + def get_configuration_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3543,6 +3549,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3602,8 +3609,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteConfigResource] operation results. # - def create_or_update_configuration(resource_group_name, name, site_config, custom_headers = nil) - response = create_or_update_configuration_async(resource_group_name, name, site_config, custom_headers).value! + def create_or_update_configuration(resource_group_name, name, site_config, custom_headers:nil) + response = create_or_update_configuration_async(resource_group_name, name, site_config, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3622,8 +3629,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_configuration_with_http_info(resource_group_name, name, site_config, custom_headers = nil) - create_or_update_configuration_async(resource_group_name, name, site_config, custom_headers).value! + def create_or_update_configuration_with_http_info(resource_group_name, name, site_config, custom_headers:nil) + create_or_update_configuration_async(resource_group_name, name, site_config, custom_headers:custom_headers).value! end # @@ -3641,7 +3648,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_configuration_async(resource_group_name, name, site_config, custom_headers = nil) + def create_or_update_configuration_async(resource_group_name, name, site_config, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3653,7 +3660,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -3721,8 +3727,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteConfigResource] operation results. # - def update_configuration(resource_group_name, name, site_config, custom_headers = nil) - response = update_configuration_async(resource_group_name, name, site_config, custom_headers).value! + def update_configuration(resource_group_name, name, site_config, custom_headers:nil) + response = update_configuration_async(resource_group_name, name, site_config, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3741,8 +3747,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_configuration_with_http_info(resource_group_name, name, site_config, custom_headers = nil) - update_configuration_async(resource_group_name, name, site_config, custom_headers).value! + def update_configuration_with_http_info(resource_group_name, name, site_config, custom_headers:nil) + update_configuration_async(resource_group_name, name, site_config, custom_headers:custom_headers).value! end # @@ -3760,7 +3766,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_configuration_async(resource_group_name, name, site_config, custom_headers = nil) + def update_configuration_async(resource_group_name, name, site_config, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3772,7 +3778,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -3840,8 +3845,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_configuration_snapshot_info(resource_group_name, name, custom_headers = nil) - response = list_configuration_snapshot_info_async(resource_group_name, name, custom_headers).value! + def list_configuration_snapshot_info(resource_group_name, name, custom_headers:nil) + response = list_configuration_snapshot_info_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3860,8 +3865,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_configuration_snapshot_info_with_http_info(resource_group_name, name, custom_headers = nil) - list_configuration_snapshot_info_async(resource_group_name, name, custom_headers).value! + def list_configuration_snapshot_info_with_http_info(resource_group_name, name, custom_headers:nil) + list_configuration_snapshot_info_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -3879,7 +3884,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_configuration_snapshot_info_async(resource_group_name, name, custom_headers = nil) + def list_configuration_snapshot_info_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3890,6 +3895,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3964,8 +3970,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteConfigResource] operation results. # - def get_configuration_snapshot(resource_group_name, name, snapshot_id, custom_headers = nil) - response = get_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers).value! + def get_configuration_snapshot(resource_group_name, name, snapshot_id, custom_headers:nil) + response = get_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3983,8 +3989,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_configuration_snapshot_with_http_info(resource_group_name, name, snapshot_id, custom_headers = nil) - get_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers).value! + def get_configuration_snapshot_with_http_info(resource_group_name, name, snapshot_id, custom_headers:nil) + get_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers:custom_headers).value! end # @@ -4001,7 +4007,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers = nil) + def get_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4013,6 +4019,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4070,8 +4077,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def recover_site_configuration_snapshot(resource_group_name, name, snapshot_id, custom_headers = nil) - response = recover_site_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers).value! + def recover_site_configuration_snapshot(resource_group_name, name, snapshot_id, custom_headers:nil) + response = recover_site_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers:custom_headers).value! nil end @@ -4089,8 +4096,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def recover_site_configuration_snapshot_with_http_info(resource_group_name, name, snapshot_id, custom_headers = nil) - recover_site_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers).value! + def recover_site_configuration_snapshot_with_http_info(resource_group_name, name, snapshot_id, custom_headers:nil) + recover_site_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers:custom_headers).value! end # @@ -4107,7 +4114,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def recover_site_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers = nil) + def recover_site_configuration_snapshot_async(resource_group_name, name, snapshot_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4119,6 +4126,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4166,8 +4174,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_continuous_web_jobs(resource_group_name, name, custom_headers = nil) - first_page = list_continuous_web_jobs_as_lazy(resource_group_name, name, custom_headers) + def list_continuous_web_jobs(resource_group_name, name, custom_headers:nil) + first_page = list_continuous_web_jobs_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -4184,8 +4192,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_continuous_web_jobs_with_http_info(resource_group_name, name, custom_headers = nil) - list_continuous_web_jobs_async(resource_group_name, name, custom_headers).value! + def list_continuous_web_jobs_with_http_info(resource_group_name, name, custom_headers:nil) + list_continuous_web_jobs_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -4201,7 +4209,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_continuous_web_jobs_async(resource_group_name, name, custom_headers = nil) + def list_continuous_web_jobs_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4212,6 +4220,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4271,8 +4280,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ContinuousWebJob] operation results. # - def get_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def get_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + response = get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -4291,8 +4300,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def get_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! end # @@ -4310,7 +4319,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def get_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4323,6 +4332,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4381,8 +4391,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = delete_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def delete_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + response = delete_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! nil end @@ -4401,8 +4411,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - delete_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def delete_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + delete_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! end # @@ -4420,7 +4430,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def delete_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4433,6 +4443,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4481,8 +4492,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def start_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = start_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def start_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + response = start_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! nil end @@ -4501,8 +4512,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def start_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - start_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def start_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + start_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! end # @@ -4520,7 +4531,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def start_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def start_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4533,6 +4544,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4581,8 +4593,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def stop_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = stop_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def stop_continuous_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + response = stop_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! nil end @@ -4601,8 +4613,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - stop_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def stop_continuous_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + stop_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! end # @@ -4620,7 +4632,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def stop_continuous_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4633,6 +4645,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4680,8 +4693,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_deployments(resource_group_name, name, custom_headers = nil) - first_page = list_deployments_as_lazy(resource_group_name, name, custom_headers) + def list_deployments(resource_group_name, name, custom_headers:nil) + first_page = list_deployments_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -4698,8 +4711,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_deployments_with_http_info(resource_group_name, name, custom_headers = nil) - list_deployments_async(resource_group_name, name, custom_headers).value! + def list_deployments_with_http_info(resource_group_name, name, custom_headers:nil) + list_deployments_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -4715,7 +4728,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_deployments_async(resource_group_name, name, custom_headers = nil) + def list_deployments_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4726,6 +4739,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4784,8 +4798,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Deployment] operation results. # - def get_deployment(resource_group_name, name, id, custom_headers = nil) - response = get_deployment_async(resource_group_name, name, id, custom_headers).value! + def get_deployment(resource_group_name, name, id, custom_headers:nil) + response = get_deployment_async(resource_group_name, name, id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -4803,8 +4817,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_deployment_with_http_info(resource_group_name, name, id, custom_headers = nil) - get_deployment_async(resource_group_name, name, id, custom_headers).value! + def get_deployment_with_http_info(resource_group_name, name, id, custom_headers:nil) + get_deployment_async(resource_group_name, name, id, custom_headers:custom_headers).value! end # @@ -4821,7 +4835,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_deployment_async(resource_group_name, name, id, custom_headers = nil) + def get_deployment_async(resource_group_name, name, id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4833,6 +4847,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4892,8 +4907,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Deployment] operation results. # - def create_deployment(resource_group_name, name, id, deployment, custom_headers = nil) - response = create_deployment_async(resource_group_name, name, id, deployment, custom_headers).value! + def create_deployment(resource_group_name, name, id, deployment, custom_headers:nil) + response = create_deployment_async(resource_group_name, name, id, deployment, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -4912,8 +4927,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_deployment_with_http_info(resource_group_name, name, id, deployment, custom_headers = nil) - create_deployment_async(resource_group_name, name, id, deployment, custom_headers).value! + def create_deployment_with_http_info(resource_group_name, name, id, deployment, custom_headers:nil) + create_deployment_async(resource_group_name, name, id, deployment, custom_headers:custom_headers).value! end # @@ -4931,7 +4946,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_deployment_async(resource_group_name, name, id, deployment, custom_headers = nil) + def create_deployment_async(resource_group_name, name, id, deployment, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4944,7 +4959,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -5010,8 +5024,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_deployment(resource_group_name, name, id, custom_headers = nil) - response = delete_deployment_async(resource_group_name, name, id, custom_headers).value! + def delete_deployment(resource_group_name, name, id, custom_headers:nil) + response = delete_deployment_async(resource_group_name, name, id, custom_headers:custom_headers).value! nil end @@ -5029,8 +5043,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_deployment_with_http_info(resource_group_name, name, id, custom_headers = nil) - delete_deployment_async(resource_group_name, name, id, custom_headers).value! + def delete_deployment_with_http_info(resource_group_name, name, id, custom_headers:nil) + delete_deployment_async(resource_group_name, name, id, custom_headers:custom_headers).value! end # @@ -5047,7 +5061,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_deployment_async(resource_group_name, name, id, custom_headers = nil) + def delete_deployment_async(resource_group_name, name, id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -5059,6 +5073,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5109,8 +5124,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Deployment] operation results. # - def list_deployment_log(resource_group_name, name, id, custom_headers = nil) - response = list_deployment_log_async(resource_group_name, name, id, custom_headers).value! + def list_deployment_log(resource_group_name, name, id, custom_headers:nil) + response = list_deployment_log_async(resource_group_name, name, id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5130,8 +5145,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_deployment_log_with_http_info(resource_group_name, name, id, custom_headers = nil) - list_deployment_log_async(resource_group_name, name, id, custom_headers).value! + def list_deployment_log_with_http_info(resource_group_name, name, id, custom_headers:nil) + list_deployment_log_async(resource_group_name, name, id, custom_headers:custom_headers).value! end # @@ -5150,7 +5165,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_deployment_log_async(resource_group_name, name, id, custom_headers = nil) + def list_deployment_log_async(resource_group_name, name, id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -5162,6 +5177,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5219,8 +5235,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_domain_ownership_identifiers(resource_group_name, name, custom_headers = nil) - first_page = list_domain_ownership_identifiers_as_lazy(resource_group_name, name, custom_headers) + def list_domain_ownership_identifiers(resource_group_name, name, custom_headers:nil) + first_page = list_domain_ownership_identifiers_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -5237,8 +5253,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_domain_ownership_identifiers_with_http_info(resource_group_name, name, custom_headers = nil) - list_domain_ownership_identifiers_async(resource_group_name, name, custom_headers).value! + def list_domain_ownership_identifiers_with_http_info(resource_group_name, name, custom_headers:nil) + list_domain_ownership_identifiers_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -5254,7 +5270,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_domain_ownership_identifiers_async(resource_group_name, name, custom_headers = nil) + def list_domain_ownership_identifiers_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -5265,6 +5281,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5324,8 +5341,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Identifier] operation results. # - def get_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, custom_headers = nil) - response = get_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers).value! + def get_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, custom_headers:nil) + response = get_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5344,8 +5361,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, custom_headers = nil) - get_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers).value! + def get_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, custom_headers:nil) + get_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers:custom_headers).value! end # @@ -5363,7 +5380,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers = nil) + def get_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -5375,6 +5392,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5438,8 +5456,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Identifier] operation results. # - def create_or_update_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers = nil) - response = create_or_update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers).value! + def create_or_update_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:nil) + response = create_or_update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5462,8 +5480,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers = nil) - create_or_update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers).value! + def create_or_update_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:nil) + create_or_update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:custom_headers).value! end # @@ -5485,7 +5503,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers = nil) + def create_or_update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -5498,7 +5516,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -5565,8 +5582,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, custom_headers = nil) - response = delete_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers).value! + def delete_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, custom_headers:nil) + response = delete_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers:custom_headers).value! nil end @@ -5585,8 +5602,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, custom_headers = nil) - delete_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers).value! + def delete_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, custom_headers:nil) + delete_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers:custom_headers).value! end # @@ -5604,7 +5621,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers = nil) + def delete_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -5616,6 +5633,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5669,8 +5687,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Identifier] operation results. # - def update_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers = nil) - response = update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers).value! + def update_domain_ownership_identifier(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:nil) + response = update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5693,8 +5711,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers = nil) - update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers).value! + def update_domain_ownership_identifier_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:nil) + update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:custom_headers).value! end # @@ -5716,7 +5734,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers = nil) + def update_domain_ownership_identifier_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -5729,7 +5747,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -5795,8 +5812,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def get_msdeploy_status(resource_group_name, name, custom_headers = nil) - response = get_msdeploy_status_async(resource_group_name, name, custom_headers).value! + def get_msdeploy_status(resource_group_name, name, custom_headers:nil) + response = get_msdeploy_status_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5813,8 +5830,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_msdeploy_status_with_http_info(resource_group_name, name, custom_headers = nil) - get_msdeploy_status_async(resource_group_name, name, custom_headers).value! + def get_msdeploy_status_with_http_info(resource_group_name, name, custom_headers:nil) + get_msdeploy_status_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -5830,7 +5847,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_msdeploy_status_async(resource_group_name, name, custom_headers = nil) + def get_msdeploy_status_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -5841,6 +5858,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5899,8 +5917,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def create_msdeploy_operation(resource_group_name, name, msdeploy, custom_headers = nil) - response = create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers).value! + def create_msdeploy_operation(resource_group_name, name, msdeploy, custom_headers:nil) + response = create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5915,9 +5933,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers = nil) + def create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers:nil) # Send request - promise = begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers) + promise = begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -5946,8 +5964,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployLog] operation results. # - def get_msdeploy_log(resource_group_name, name, custom_headers = nil) - response = get_msdeploy_log_async(resource_group_name, name, custom_headers).value! + def get_msdeploy_log(resource_group_name, name, custom_headers:nil) + response = get_msdeploy_log_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5964,8 +5982,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_msdeploy_log_with_http_info(resource_group_name, name, custom_headers = nil) - get_msdeploy_log_async(resource_group_name, name, custom_headers).value! + def get_msdeploy_log_with_http_info(resource_group_name, name, custom_headers:nil) + get_msdeploy_log_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -5981,7 +5999,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_msdeploy_log_async(resource_group_name, name, custom_headers = nil) + def get_msdeploy_log_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -5992,6 +6010,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6049,8 +6068,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_functions(resource_group_name, name, custom_headers = nil) - first_page = list_functions_as_lazy(resource_group_name, name, custom_headers) + def list_functions(resource_group_name, name, custom_headers:nil) + first_page = list_functions_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -6067,8 +6086,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_functions_with_http_info(resource_group_name, name, custom_headers = nil) - list_functions_async(resource_group_name, name, custom_headers).value! + def list_functions_with_http_info(resource_group_name, name, custom_headers:nil) + list_functions_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -6084,7 +6103,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_functions_async(resource_group_name, name, custom_headers = nil) + def list_functions_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -6095,6 +6114,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6152,8 +6172,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [String] operation results. # - def get_functions_admin_token(resource_group_name, name, custom_headers = nil) - response = get_functions_admin_token_async(resource_group_name, name, custom_headers).value! + def get_functions_admin_token(resource_group_name, name, custom_headers:nil) + response = get_functions_admin_token_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6170,8 +6190,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_functions_admin_token_with_http_info(resource_group_name, name, custom_headers = nil) - get_functions_admin_token_async(resource_group_name, name, custom_headers).value! + def get_functions_admin_token_with_http_info(resource_group_name, name, custom_headers:nil) + get_functions_admin_token_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -6187,7 +6207,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_functions_admin_token_async(resource_group_name, name, custom_headers = nil) + def get_functions_admin_token_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -6198,6 +6218,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6263,8 +6284,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionEnvelope] operation results. # - def get_function(resource_group_name, name, function_name, custom_headers = nil) - response = get_function_async(resource_group_name, name, function_name, custom_headers).value! + def get_function(resource_group_name, name, function_name, custom_headers:nil) + response = get_function_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6282,8 +6303,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_function_with_http_info(resource_group_name, name, function_name, custom_headers = nil) - get_function_async(resource_group_name, name, function_name, custom_headers).value! + def get_function_with_http_info(resource_group_name, name, function_name, custom_headers:nil) + get_function_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! end # @@ -6300,7 +6321,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_function_async(resource_group_name, name, function_name, custom_headers = nil) + def get_function_async(resource_group_name, name, function_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -6312,6 +6333,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6371,8 +6393,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionEnvelope] operation results. # - def create_function(resource_group_name, name, function_name, function_envelope, custom_headers = nil) - response = create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers).value! + def create_function(resource_group_name, name, function_name, function_envelope, custom_headers:nil) + response = create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6388,9 +6410,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers = nil) + def create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers:nil) # Send request - promise = begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers) + promise = begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -6419,8 +6441,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_function(resource_group_name, name, function_name, custom_headers = nil) - response = delete_function_async(resource_group_name, name, function_name, custom_headers).value! + def delete_function(resource_group_name, name, function_name, custom_headers:nil) + response = delete_function_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! nil end @@ -6438,8 +6460,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_function_with_http_info(resource_group_name, name, function_name, custom_headers = nil) - delete_function_async(resource_group_name, name, function_name, custom_headers).value! + def delete_function_with_http_info(resource_group_name, name, function_name, custom_headers:nil) + delete_function_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! end # @@ -6456,7 +6478,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_function_async(resource_group_name, name, function_name, custom_headers = nil) + def delete_function_async(resource_group_name, name, function_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -6468,6 +6490,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6516,8 +6539,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionSecrets] operation results. # - def list_function_secrets(resource_group_name, name, function_name, custom_headers = nil) - response = list_function_secrets_async(resource_group_name, name, function_name, custom_headers).value! + def list_function_secrets(resource_group_name, name, function_name, custom_headers:nil) + response = list_function_secrets_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6535,8 +6558,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_function_secrets_with_http_info(resource_group_name, name, function_name, custom_headers = nil) - list_function_secrets_async(resource_group_name, name, function_name, custom_headers).value! + def list_function_secrets_with_http_info(resource_group_name, name, function_name, custom_headers:nil) + list_function_secrets_async(resource_group_name, name, function_name, custom_headers:custom_headers).value! end # @@ -6553,7 +6576,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_function_secrets_async(resource_group_name, name, function_name, custom_headers = nil) + def list_function_secrets_async(resource_group_name, name, function_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -6565,6 +6588,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6622,8 +6646,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_host_name_bindings(resource_group_name, name, custom_headers = nil) - first_page = list_host_name_bindings_as_lazy(resource_group_name, name, custom_headers) + def list_host_name_bindings(resource_group_name, name, custom_headers:nil) + first_page = list_host_name_bindings_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -6640,8 +6664,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_host_name_bindings_with_http_info(resource_group_name, name, custom_headers = nil) - list_host_name_bindings_async(resource_group_name, name, custom_headers).value! + def list_host_name_bindings_with_http_info(resource_group_name, name, custom_headers:nil) + list_host_name_bindings_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -6657,7 +6681,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_host_name_bindings_async(resource_group_name, name, custom_headers = nil) + def list_host_name_bindings_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -6668,6 +6692,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6726,8 +6751,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HostNameBinding] operation results. # - def get_host_name_binding(resource_group_name, name, host_name, custom_headers = nil) - response = get_host_name_binding_async(resource_group_name, name, host_name, custom_headers).value! + def get_host_name_binding(resource_group_name, name, host_name, custom_headers:nil) + response = get_host_name_binding_async(resource_group_name, name, host_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6745,8 +6770,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_host_name_binding_with_http_info(resource_group_name, name, host_name, custom_headers = nil) - get_host_name_binding_async(resource_group_name, name, host_name, custom_headers).value! + def get_host_name_binding_with_http_info(resource_group_name, name, host_name, custom_headers:nil) + get_host_name_binding_async(resource_group_name, name, host_name, custom_headers:custom_headers).value! end # @@ -6763,7 +6788,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_host_name_binding_async(resource_group_name, name, host_name, custom_headers = nil) + def get_host_name_binding_async(resource_group_name, name, host_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -6775,6 +6800,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6835,8 +6861,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HostNameBinding] operation results. # - def create_or_update_host_name_binding(resource_group_name, name, host_name, host_name_binding, custom_headers = nil) - response = create_or_update_host_name_binding_async(resource_group_name, name, host_name, host_name_binding, custom_headers).value! + def create_or_update_host_name_binding(resource_group_name, name, host_name, host_name_binding, custom_headers:nil) + response = create_or_update_host_name_binding_async(resource_group_name, name, host_name, host_name_binding, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6856,8 +6882,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_host_name_binding_with_http_info(resource_group_name, name, host_name, host_name_binding, custom_headers = nil) - create_or_update_host_name_binding_async(resource_group_name, name, host_name, host_name_binding, custom_headers).value! + def create_or_update_host_name_binding_with_http_info(resource_group_name, name, host_name, host_name_binding, custom_headers:nil) + create_or_update_host_name_binding_async(resource_group_name, name, host_name, host_name_binding, custom_headers:custom_headers).value! end # @@ -6876,7 +6902,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_host_name_binding_async(resource_group_name, name, host_name, host_name_binding, custom_headers = nil) + def create_or_update_host_name_binding_async(resource_group_name, name, host_name, host_name_binding, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -6889,7 +6915,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -6955,8 +6980,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_host_name_binding(resource_group_name, name, host_name, custom_headers = nil) - response = delete_host_name_binding_async(resource_group_name, name, host_name, custom_headers).value! + def delete_host_name_binding(resource_group_name, name, host_name, custom_headers:nil) + response = delete_host_name_binding_async(resource_group_name, name, host_name, custom_headers:custom_headers).value! nil end @@ -6974,8 +6999,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_host_name_binding_with_http_info(resource_group_name, name, host_name, custom_headers = nil) - delete_host_name_binding_async(resource_group_name, name, host_name, custom_headers).value! + def delete_host_name_binding_with_http_info(resource_group_name, name, host_name, custom_headers:nil) + delete_host_name_binding_async(resource_group_name, name, host_name, custom_headers:custom_headers).value! end # @@ -6992,7 +7017,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_host_name_binding_async(resource_group_name, name, host_name, custom_headers = nil) + def delete_host_name_binding_async(resource_group_name, name, host_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -7004,6 +7029,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -7053,8 +7079,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HybridConnection] operation results. # - def get_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - response = get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def get_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + response = get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -7073,8 +7099,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def get_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -7092,7 +7118,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) + def get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -7105,6 +7131,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -7166,8 +7193,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HybridConnection] operation results. # - def create_or_update_hybrid_connection(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers = nil) - response = create_or_update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers).value! + def create_or_update_hybrid_connection(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:nil) + response = create_or_update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -7188,8 +7215,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers = nil) - create_or_update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers).value! + def create_or_update_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:nil) + create_or_update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:custom_headers).value! end # @@ -7209,7 +7236,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers = nil) + def create_or_update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -7223,7 +7250,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -7290,8 +7316,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - response = delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def delete_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + response = delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! nil end @@ -7310,8 +7336,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def delete_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -7329,7 +7355,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) + def delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -7342,6 +7368,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -7393,8 +7420,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HybridConnection] operation results. # - def update_hybrid_connection(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers = nil) - response = update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers).value! + def update_hybrid_connection(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:nil) + response = update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -7415,8 +7442,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers = nil) - update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers).value! + def update_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:nil) + update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:custom_headers).value! end # @@ -7436,7 +7463,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers = nil) + def update_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -7450,7 +7477,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -7518,8 +7544,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HybridConnectionKey] operation results. # - def list_hybrid_connection_keys(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - response = list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def list_hybrid_connection_keys(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + response = list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -7538,8 +7564,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_hybrid_connection_keys_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def list_hybrid_connection_keys_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -7557,7 +7583,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) + def list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -7570,6 +7596,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -7627,8 +7654,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HybridConnection] operation results. # - def list_hybrid_connections(resource_group_name, name, custom_headers = nil) - response = list_hybrid_connections_async(resource_group_name, name, custom_headers).value! + def list_hybrid_connections(resource_group_name, name, custom_headers:nil) + response = list_hybrid_connections_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -7645,8 +7672,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_hybrid_connections_with_http_info(resource_group_name, name, custom_headers = nil) - list_hybrid_connections_async(resource_group_name, name, custom_headers).value! + def list_hybrid_connections_with_http_info(resource_group_name, name, custom_headers:nil) + list_hybrid_connections_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -7662,7 +7689,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_hybrid_connections_async(resource_group_name, name, custom_headers = nil) + def list_hybrid_connections_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -7673,6 +7700,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -7732,8 +7760,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RelayServiceConnectionEntity] operation results. # - def list_relay_service_connections(resource_group_name, name, custom_headers = nil) - response = list_relay_service_connections_async(resource_group_name, name, custom_headers).value! + def list_relay_service_connections(resource_group_name, name, custom_headers:nil) + response = list_relay_service_connections_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -7752,8 +7780,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_relay_service_connections_with_http_info(resource_group_name, name, custom_headers = nil) - list_relay_service_connections_async(resource_group_name, name, custom_headers).value! + def list_relay_service_connections_with_http_info(resource_group_name, name, custom_headers:nil) + list_relay_service_connections_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -7771,7 +7799,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_relay_service_connections_async(resource_group_name, name, custom_headers = nil) + def list_relay_service_connections_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -7782,6 +7810,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -7840,8 +7869,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RelayServiceConnectionEntity] operation results. # - def get_relay_service_connection(resource_group_name, name, entity_name, custom_headers = nil) - response = get_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers).value! + def get_relay_service_connection(resource_group_name, name, entity_name, custom_headers:nil) + response = get_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -7859,8 +7888,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_relay_service_connection_with_http_info(resource_group_name, name, entity_name, custom_headers = nil) - get_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers).value! + def get_relay_service_connection_with_http_info(resource_group_name, name, entity_name, custom_headers:nil) + get_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers:custom_headers).value! end # @@ -7877,7 +7906,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers = nil) + def get_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -7889,6 +7918,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -7951,8 +7981,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RelayServiceConnectionEntity] operation results. # - def create_or_update_relay_service_connection(resource_group_name, name, entity_name, connection_envelope, custom_headers = nil) - response = create_or_update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers).value! + def create_or_update_relay_service_connection(resource_group_name, name, entity_name, connection_envelope, custom_headers:nil) + response = create_or_update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -7974,8 +8004,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_relay_service_connection_with_http_info(resource_group_name, name, entity_name, connection_envelope, custom_headers = nil) - create_or_update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers).value! + def create_or_update_relay_service_connection_with_http_info(resource_group_name, name, entity_name, connection_envelope, custom_headers:nil) + create_or_update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers:custom_headers).value! end # @@ -7996,7 +8026,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers = nil) + def create_or_update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -8009,7 +8039,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -8075,8 +8104,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_relay_service_connection(resource_group_name, name, entity_name, custom_headers = nil) - response = delete_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers).value! + def delete_relay_service_connection(resource_group_name, name, entity_name, custom_headers:nil) + response = delete_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers:custom_headers).value! nil end @@ -8094,8 +8123,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_relay_service_connection_with_http_info(resource_group_name, name, entity_name, custom_headers = nil) - delete_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers).value! + def delete_relay_service_connection_with_http_info(resource_group_name, name, entity_name, custom_headers:nil) + delete_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers:custom_headers).value! end # @@ -8112,7 +8141,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers = nil) + def delete_relay_service_connection_async(resource_group_name, name, entity_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -8124,6 +8153,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -8176,8 +8206,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RelayServiceConnectionEntity] operation results. # - def update_relay_service_connection(resource_group_name, name, entity_name, connection_envelope, custom_headers = nil) - response = update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers).value! + def update_relay_service_connection(resource_group_name, name, entity_name, connection_envelope, custom_headers:nil) + response = update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -8199,8 +8229,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_relay_service_connection_with_http_info(resource_group_name, name, entity_name, connection_envelope, custom_headers = nil) - update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers).value! + def update_relay_service_connection_with_http_info(resource_group_name, name, entity_name, connection_envelope, custom_headers:nil) + update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers:custom_headers).value! end # @@ -8221,7 +8251,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers = nil) + def update_relay_service_connection_async(resource_group_name, name, entity_name, connection_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -8234,7 +8264,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -8300,8 +8329,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_instance_identifiers(resource_group_name, name, custom_headers = nil) - first_page = list_instance_identifiers_as_lazy(resource_group_name, name, custom_headers) + def list_instance_identifiers(resource_group_name, name, custom_headers:nil) + first_page = list_instance_identifiers_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -8318,8 +8347,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_identifiers_with_http_info(resource_group_name, name, custom_headers = nil) - list_instance_identifiers_async(resource_group_name, name, custom_headers).value! + def list_instance_identifiers_with_http_info(resource_group_name, name, custom_headers:nil) + list_instance_identifiers_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -8335,7 +8364,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_identifiers_async(resource_group_name, name, custom_headers = nil) + def list_instance_identifiers_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -8346,6 +8375,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -8404,8 +8434,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def get_instance_ms_deploy_status(resource_group_name, name, instance_id, custom_headers = nil) - response = get_instance_ms_deploy_status_async(resource_group_name, name, instance_id, custom_headers).value! + def get_instance_ms_deploy_status(resource_group_name, name, instance_id, custom_headers:nil) + response = get_instance_ms_deploy_status_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -8423,8 +8453,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_ms_deploy_status_with_http_info(resource_group_name, name, instance_id, custom_headers = nil) - get_instance_ms_deploy_status_async(resource_group_name, name, instance_id, custom_headers).value! + def get_instance_ms_deploy_status_with_http_info(resource_group_name, name, instance_id, custom_headers:nil) + get_instance_ms_deploy_status_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! end # @@ -8441,7 +8471,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_ms_deploy_status_async(resource_group_name, name, instance_id, custom_headers = nil) + def get_instance_ms_deploy_status_async(resource_group_name, name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -8453,6 +8483,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -8512,8 +8543,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def create_instance_msdeploy_operation(resource_group_name, name, instance_id, msdeploy, custom_headers = nil) - response = create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers).value! + def create_instance_msdeploy_operation(resource_group_name, name, instance_id, msdeploy, custom_headers:nil) + response = create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -8529,9 +8560,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers = nil) + def create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers:nil) # Send request - promise = begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers) + promise = begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -8561,8 +8592,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployLog] operation results. # - def get_instance_msdeploy_log(resource_group_name, name, instance_id, custom_headers = nil) - response = get_instance_msdeploy_log_async(resource_group_name, name, instance_id, custom_headers).value! + def get_instance_msdeploy_log(resource_group_name, name, instance_id, custom_headers:nil) + response = get_instance_msdeploy_log_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -8580,8 +8611,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_msdeploy_log_with_http_info(resource_group_name, name, instance_id, custom_headers = nil) - get_instance_msdeploy_log_async(resource_group_name, name, instance_id, custom_headers).value! + def get_instance_msdeploy_log_with_http_info(resource_group_name, name, instance_id, custom_headers:nil) + get_instance_msdeploy_log_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! end # @@ -8598,7 +8629,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_msdeploy_log_async(resource_group_name, name, instance_id, custom_headers = nil) + def get_instance_msdeploy_log_async(resource_group_name, name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -8610,6 +8641,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -8672,8 +8704,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_instance_processes(resource_group_name, name, instance_id, custom_headers = nil) - first_page = list_instance_processes_as_lazy(resource_group_name, name, instance_id, custom_headers) + def list_instance_processes(resource_group_name, name, instance_id, custom_headers:nil) + first_page = list_instance_processes_as_lazy(resource_group_name, name, instance_id, custom_headers:custom_headers) first_page.get_all_items end @@ -8695,8 +8727,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_processes_with_http_info(resource_group_name, name, instance_id, custom_headers = nil) - list_instance_processes_async(resource_group_name, name, instance_id, custom_headers).value! + def list_instance_processes_with_http_info(resource_group_name, name, instance_id, custom_headers:nil) + list_instance_processes_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! end # @@ -8717,7 +8749,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_processes_async(resource_group_name, name, instance_id, custom_headers = nil) + def list_instance_processes_async(resource_group_name, name, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -8729,6 +8761,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -8792,8 +8825,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessInfo] operation results. # - def get_instance_process(resource_group_name, name, process_id, instance_id, custom_headers = nil) - response = get_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers).value! + def get_instance_process(resource_group_name, name, process_id, instance_id, custom_headers:nil) + response = get_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -8816,8 +8849,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_process_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers = nil) - get_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers).value! + def get_instance_process_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers:nil) + get_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! end # @@ -8839,7 +8872,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers = nil) + def get_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -8852,6 +8885,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -8914,8 +8948,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_instance_process(resource_group_name, name, process_id, instance_id, custom_headers = nil) - response = delete_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers).value! + def delete_instance_process(resource_group_name, name, process_id, instance_id, custom_headers:nil) + response = delete_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! nil end @@ -8938,8 +8972,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_instance_process_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers = nil) - delete_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers).value! + def delete_instance_process_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers:nil) + delete_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! end # @@ -8961,7 +8995,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers = nil) + def delete_instance_process_async(resource_group_name, name, process_id, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -8974,6 +9008,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -9027,8 +9062,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Object] operation results. # - def get_instance_process_dump(resource_group_name, name, process_id, instance_id, custom_headers = nil) - response = get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, custom_headers).value! + def get_instance_process_dump(resource_group_name, name, process_id, instance_id, custom_headers:nil) + response = get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -9051,8 +9086,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_process_dump_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers = nil) - get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, custom_headers).value! + def get_instance_process_dump_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers:nil) + get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! end # @@ -9074,7 +9109,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, custom_headers = nil) + def get_instance_process_dump_async(resource_group_name, name, process_id, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -9087,6 +9122,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -9140,8 +9176,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_instance_process_modules(resource_group_name, name, process_id, instance_id, custom_headers = nil) - first_page = list_instance_process_modules_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers) + def list_instance_process_modules(resource_group_name, name, process_id, instance_id, custom_headers:nil) + first_page = list_instance_process_modules_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers) first_page.get_all_items end @@ -9164,8 +9200,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_process_modules_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers = nil) - list_instance_process_modules_async(resource_group_name, name, process_id, instance_id, custom_headers).value! + def list_instance_process_modules_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers:nil) + list_instance_process_modules_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! end # @@ -9187,7 +9223,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_process_modules_async(resource_group_name, name, process_id, instance_id, custom_headers = nil) + def list_instance_process_modules_async(resource_group_name, name, process_id, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -9200,6 +9236,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -9265,8 +9302,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessModuleInfo] operation results. # - def get_instance_process_module(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers = nil) - response = get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers).value! + def get_instance_process_module(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers:nil) + response = get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -9291,8 +9328,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_process_module_with_http_info(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers = nil) - get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers).value! + def get_instance_process_module_with_http_info(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers:nil) + get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers:custom_headers).value! end # @@ -9316,7 +9353,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers = nil) + def get_instance_process_module_async(resource_group_name, name, process_id, base_address, instance_id, base_address1, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -9331,6 +9368,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -9394,8 +9432,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_instance_process_threads(resource_group_name, name, process_id, instance_id, custom_headers = nil) - first_page = list_instance_process_threads_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers) + def list_instance_process_threads(resource_group_name, name, process_id, instance_id, custom_headers:nil) + first_page = list_instance_process_threads_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers) first_page.get_all_items end @@ -9418,8 +9456,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_process_threads_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers = nil) - list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers).value! + def list_instance_process_threads_with_http_info(resource_group_name, name, process_id, instance_id, custom_headers:nil) + list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! end # @@ -9441,7 +9479,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers = nil) + def list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -9454,6 +9492,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -9518,8 +9557,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessThreadInfo] operation results. # - def get_instance_process_thread(resource_group_name, name, process_id, thread_id, instance_id, custom_headers = nil) - response = get_instance_process_thread_async(resource_group_name, name, process_id, thread_id, instance_id, custom_headers).value! + def get_instance_process_thread(resource_group_name, name, process_id, thread_id, instance_id, custom_headers:nil) + response = get_instance_process_thread_async(resource_group_name, name, process_id, thread_id, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -9543,8 +9582,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_process_thread_with_http_info(resource_group_name, name, process_id, thread_id, instance_id, custom_headers = nil) - get_instance_process_thread_async(resource_group_name, name, process_id, thread_id, instance_id, custom_headers).value! + def get_instance_process_thread_with_http_info(resource_group_name, name, process_id, thread_id, instance_id, custom_headers:nil) + get_instance_process_thread_async(resource_group_name, name, process_id, thread_id, instance_id, custom_headers:custom_headers).value! end # @@ -9567,7 +9606,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_process_thread_async(resource_group_name, name, process_id, thread_id, instance_id, custom_headers = nil) + def get_instance_process_thread_async(resource_group_name, name, process_id, thread_id, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -9581,6 +9620,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -9638,8 +9678,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteCloneability] operation results. # - def is_cloneable(resource_group_name, name, custom_headers = nil) - response = is_cloneable_async(resource_group_name, name, custom_headers).value! + def is_cloneable(resource_group_name, name, custom_headers:nil) + response = is_cloneable_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -9656,8 +9696,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def is_cloneable_with_http_info(resource_group_name, name, custom_headers = nil) - is_cloneable_async(resource_group_name, name, custom_headers).value! + def is_cloneable_with_http_info(resource_group_name, name, custom_headers:nil) + is_cloneable_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -9673,7 +9713,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def is_cloneable_async(resource_group_name, name, custom_headers = nil) + def is_cloneable_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -9684,6 +9724,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -9741,8 +9782,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionSecrets] operation results. # - def list_sync_function_triggers(resource_group_name, name, custom_headers = nil) - response = list_sync_function_triggers_async(resource_group_name, name, custom_headers).value! + def list_sync_function_triggers(resource_group_name, name, custom_headers:nil) + response = list_sync_function_triggers_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -9759,8 +9800,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_sync_function_triggers_with_http_info(resource_group_name, name, custom_headers = nil) - list_sync_function_triggers_async(resource_group_name, name, custom_headers).value! + def list_sync_function_triggers_with_http_info(resource_group_name, name, custom_headers:nil) + list_sync_function_triggers_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -9776,7 +9817,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_sync_function_triggers_async(resource_group_name, name, custom_headers = nil) + def list_sync_function_triggers_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -9787,6 +9828,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -9844,8 +9886,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_metric_definitions(resource_group_name, name, custom_headers = nil) - first_page = list_metric_definitions_as_lazy(resource_group_name, name, custom_headers) + def list_metric_definitions(resource_group_name, name, custom_headers:nil) + first_page = list_metric_definitions_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -9862,8 +9904,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_definitions_with_http_info(resource_group_name, name, custom_headers = nil) - list_metric_definitions_async(resource_group_name, name, custom_headers).value! + def list_metric_definitions_with_http_info(resource_group_name, name, custom_headers:nil) + list_metric_definitions_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -9879,7 +9921,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definitions_async(resource_group_name, name, custom_headers = nil) + def list_metric_definitions_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -9890,6 +9932,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -9953,8 +9996,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_metrics(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) - first_page = list_metrics_as_lazy(resource_group_name, name, details, filter, custom_headers) + def list_metrics(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) + first_page = list_metrics_as_lazy(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -9977,8 +10020,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_with_http_info(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) - list_metrics_async(resource_group_name, name, details, filter, custom_headers).value! + def list_metrics_with_http_info(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) + list_metrics_async(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers).value! end # @@ -10000,7 +10043,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_async(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) + def list_metrics_async(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -10011,6 +10054,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -10072,8 +10116,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [StorageMigrationResponse] operation results. # - def migrate_storage(subscription_name, resource_group_name, name, migration_options, custom_headers = nil) - response = migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers).value! + def migrate_storage(subscription_name, resource_group_name, name, migration_options, custom_headers:nil) + response = migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -10090,9 +10134,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers = nil) + def migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers:nil) # Send request - promise = begin_migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers) + promise = begin_migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -10123,8 +10167,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Operation] operation results. # - def migrate_my_sql(resource_group_name, name, migration_request_envelope, custom_headers = nil) - response = migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers).value! + def migrate_my_sql(resource_group_name, name, migration_request_envelope, custom_headers:nil) + response = migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -10140,9 +10184,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers = nil) + def migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers:nil) # Send request - promise = begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers) + promise = begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -10173,8 +10217,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MigrateMySqlStatus] operation results. # - def get_migrate_my_sql_status(resource_group_name, name, custom_headers = nil) - response = get_migrate_my_sql_status_async(resource_group_name, name, custom_headers).value! + def get_migrate_my_sql_status(resource_group_name, name, custom_headers:nil) + response = get_migrate_my_sql_status_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -10193,8 +10237,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_migrate_my_sql_status_with_http_info(resource_group_name, name, custom_headers = nil) - get_migrate_my_sql_status_async(resource_group_name, name, custom_headers).value! + def get_migrate_my_sql_status_with_http_info(resource_group_name, name, custom_headers:nil) + get_migrate_my_sql_status_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -10212,7 +10256,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_migrate_my_sql_status_async(resource_group_name, name, custom_headers = nil) + def get_migrate_my_sql_status_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -10223,6 +10267,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -10282,8 +10327,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [NetworkFeatures] operation results. # - def list_network_features(resource_group_name, name, view, custom_headers = nil) - response = list_network_features_async(resource_group_name, name, view, custom_headers).value! + def list_network_features(resource_group_name, name, view, custom_headers:nil) + response = list_network_features_async(resource_group_name, name, view, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -10302,8 +10347,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_network_features_with_http_info(resource_group_name, name, view, custom_headers = nil) - list_network_features_async(resource_group_name, name, view, custom_headers).value! + def list_network_features_with_http_info(resource_group_name, name, view, custom_headers:nil) + list_network_features_async(resource_group_name, name, view, custom_headers:custom_headers).value! end # @@ -10321,7 +10366,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_network_features_async(resource_group_name, name, view, custom_headers = nil) + def list_network_features_async(resource_group_name, name, view, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -10333,6 +10378,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -10395,8 +10441,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [String] operation results. # - def start_web_site_network_trace(resource_group_name, name, duration_in_seconds = nil, max_frame_length = nil, sas_url = nil, custom_headers = nil) - response = start_web_site_network_trace_async(resource_group_name, name, duration_in_seconds, max_frame_length, sas_url, custom_headers).value! + def start_web_site_network_trace(resource_group_name, name, duration_in_seconds:nil, max_frame_length:nil, sas_url:nil, custom_headers:nil) + response = start_web_site_network_trace_async(resource_group_name, name, duration_in_seconds:duration_in_seconds, max_frame_length:max_frame_length, sas_url:sas_url, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -10418,8 +10464,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def start_web_site_network_trace_with_http_info(resource_group_name, name, duration_in_seconds = nil, max_frame_length = nil, sas_url = nil, custom_headers = nil) - start_web_site_network_trace_async(resource_group_name, name, duration_in_seconds, max_frame_length, sas_url, custom_headers).value! + def start_web_site_network_trace_with_http_info(resource_group_name, name, duration_in_seconds:nil, max_frame_length:nil, sas_url:nil, custom_headers:nil) + start_web_site_network_trace_async(resource_group_name, name, duration_in_seconds:duration_in_seconds, max_frame_length:max_frame_length, sas_url:sas_url, custom_headers:custom_headers).value! end # @@ -10440,7 +10486,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def start_web_site_network_trace_async(resource_group_name, name, duration_in_seconds = nil, max_frame_length = nil, sas_url = nil, custom_headers = nil) + def start_web_site_network_trace_async(resource_group_name, name, duration_in_seconds:nil, max_frame_length:nil, sas_url:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -10451,6 +10497,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -10515,8 +10562,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [String] operation results. # - def stop_web_site_network_trace(resource_group_name, name, custom_headers = nil) - response = stop_web_site_network_trace_async(resource_group_name, name, custom_headers).value! + def stop_web_site_network_trace(resource_group_name, name, custom_headers:nil) + response = stop_web_site_network_trace_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -10533,8 +10580,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_web_site_network_trace_with_http_info(resource_group_name, name, custom_headers = nil) - stop_web_site_network_trace_async(resource_group_name, name, custom_headers).value! + def stop_web_site_network_trace_with_http_info(resource_group_name, name, custom_headers:nil) + stop_web_site_network_trace_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -10550,7 +10597,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_web_site_network_trace_async(resource_group_name, name, custom_headers = nil) + def stop_web_site_network_trace_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -10561,6 +10608,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -10626,8 +10674,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def generate_new_site_publishing_password(resource_group_name, name, custom_headers = nil) - response = generate_new_site_publishing_password_async(resource_group_name, name, custom_headers).value! + def generate_new_site_publishing_password(resource_group_name, name, custom_headers:nil) + response = generate_new_site_publishing_password_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -10646,8 +10694,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_new_site_publishing_password_with_http_info(resource_group_name, name, custom_headers = nil) - generate_new_site_publishing_password_async(resource_group_name, name, custom_headers).value! + def generate_new_site_publishing_password_with_http_info(resource_group_name, name, custom_headers:nil) + generate_new_site_publishing_password_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -10665,7 +10713,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_new_site_publishing_password_async(resource_group_name, name, custom_headers = nil) + def generate_new_site_publishing_password_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -10676,6 +10724,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -10727,8 +10776,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_perf_mon_counters(resource_group_name, name, filter = nil, custom_headers = nil) - first_page = list_perf_mon_counters_as_lazy(resource_group_name, name, filter, custom_headers) + def list_perf_mon_counters(resource_group_name, name, filter:nil, custom_headers:nil) + first_page = list_perf_mon_counters_as_lazy(resource_group_name, name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -10749,8 +10798,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_perf_mon_counters_with_http_info(resource_group_name, name, filter = nil, custom_headers = nil) - list_perf_mon_counters_async(resource_group_name, name, filter, custom_headers).value! + def list_perf_mon_counters_with_http_info(resource_group_name, name, filter:nil, custom_headers:nil) + list_perf_mon_counters_async(resource_group_name, name, filter:filter, custom_headers:custom_headers).value! end # @@ -10770,7 +10819,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_perf_mon_counters_async(resource_group_name, name, filter = nil, custom_headers = nil) + def list_perf_mon_counters_async(resource_group_name, name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -10781,6 +10830,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -10839,8 +10889,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SitePhpErrorLogFlag] operation results. # - def get_site_php_error_log_flag(resource_group_name, name, custom_headers = nil) - response = get_site_php_error_log_flag_async(resource_group_name, name, custom_headers).value! + def get_site_php_error_log_flag(resource_group_name, name, custom_headers:nil) + response = get_site_php_error_log_flag_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -10857,8 +10907,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_site_php_error_log_flag_with_http_info(resource_group_name, name, custom_headers = nil) - get_site_php_error_log_flag_async(resource_group_name, name, custom_headers).value! + def get_site_php_error_log_flag_with_http_info(resource_group_name, name, custom_headers:nil) + get_site_php_error_log_flag_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -10874,7 +10924,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_site_php_error_log_flag_async(resource_group_name, name, custom_headers = nil) + def get_site_php_error_log_flag_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -10885,6 +10935,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -10942,8 +10993,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PremierAddOn] operation results. # - def list_premier_add_ons(resource_group_name, name, custom_headers = nil) - response = list_premier_add_ons_async(resource_group_name, name, custom_headers).value! + def list_premier_add_ons(resource_group_name, name, custom_headers:nil) + response = list_premier_add_ons_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -10960,8 +11011,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_premier_add_ons_with_http_info(resource_group_name, name, custom_headers = nil) - list_premier_add_ons_async(resource_group_name, name, custom_headers).value! + def list_premier_add_ons_with_http_info(resource_group_name, name, custom_headers:nil) + list_premier_add_ons_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -10977,7 +11028,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_premier_add_ons_async(resource_group_name, name, custom_headers = nil) + def list_premier_add_ons_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -10988,6 +11039,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -11046,8 +11098,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PremierAddOn] operation results. # - def get_premier_add_on(resource_group_name, name, premier_add_on_name, custom_headers = nil) - response = get_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers).value! + def get_premier_add_on(resource_group_name, name, premier_add_on_name, custom_headers:nil) + response = get_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -11065,8 +11117,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, custom_headers = nil) - get_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers).value! + def get_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, custom_headers:nil) + get_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers:custom_headers).value! end # @@ -11083,7 +11135,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers = nil) + def get_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -11095,6 +11147,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -11155,8 +11208,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PremierAddOn] operation results. # - def add_premier_add_on(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers = nil) - response = add_premier_add_on_async(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers).value! + def add_premier_add_on(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers:nil) + response = add_premier_add_on_async(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -11176,8 +11229,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers = nil) - add_premier_add_on_async(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers).value! + def add_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers:nil) + add_premier_add_on_async(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers:custom_headers).value! end # @@ -11196,7 +11249,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_premier_add_on_async(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers = nil) + def add_premier_add_on_async(resource_group_name, name, premier_add_on_name, premier_add_on, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -11209,7 +11262,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -11275,8 +11327,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_premier_add_on(resource_group_name, name, premier_add_on_name, custom_headers = nil) - response = delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers).value! + def delete_premier_add_on(resource_group_name, name, premier_add_on_name, custom_headers:nil) + response = delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers:custom_headers).value! nil end @@ -11294,8 +11346,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, custom_headers = nil) - delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers).value! + def delete_premier_add_on_with_http_info(resource_group_name, name, premier_add_on_name, custom_headers:nil) + delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers:custom_headers).value! end # @@ -11312,7 +11364,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers = nil) + def delete_premier_add_on_async(resource_group_name, name, premier_add_on_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -11324,6 +11376,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -11373,8 +11426,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_processes(resource_group_name, name, custom_headers = nil) - first_page = list_processes_as_lazy(resource_group_name, name, custom_headers) + def list_processes(resource_group_name, name, custom_headers:nil) + first_page = list_processes_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -11393,8 +11446,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_processes_with_http_info(resource_group_name, name, custom_headers = nil) - list_processes_async(resource_group_name, name, custom_headers).value! + def list_processes_with_http_info(resource_group_name, name, custom_headers:nil) + list_processes_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -11412,7 +11465,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_processes_async(resource_group_name, name, custom_headers = nil) + def list_processes_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -11423,6 +11476,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -11483,8 +11537,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessInfo] operation results. # - def get_process(resource_group_name, name, process_id, custom_headers = nil) - response = get_process_async(resource_group_name, name, process_id, custom_headers).value! + def get_process(resource_group_name, name, process_id, custom_headers:nil) + response = get_process_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -11504,8 +11558,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_process_with_http_info(resource_group_name, name, process_id, custom_headers = nil) - get_process_async(resource_group_name, name, process_id, custom_headers).value! + def get_process_with_http_info(resource_group_name, name, process_id, custom_headers:nil) + get_process_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! end # @@ -11524,7 +11578,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_process_async(resource_group_name, name, process_id, custom_headers = nil) + def get_process_async(resource_group_name, name, process_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -11536,6 +11590,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -11595,8 +11650,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_process(resource_group_name, name, process_id, custom_headers = nil) - response = delete_process_async(resource_group_name, name, process_id, custom_headers).value! + def delete_process(resource_group_name, name, process_id, custom_headers:nil) + response = delete_process_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! nil end @@ -11616,8 +11671,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_process_with_http_info(resource_group_name, name, process_id, custom_headers = nil) - delete_process_async(resource_group_name, name, process_id, custom_headers).value! + def delete_process_with_http_info(resource_group_name, name, process_id, custom_headers:nil) + delete_process_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! end # @@ -11636,7 +11691,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_process_async(resource_group_name, name, process_id, custom_headers = nil) + def delete_process_async(resource_group_name, name, process_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -11648,6 +11703,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -11698,8 +11754,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Object] operation results. # - def get_process_dump(resource_group_name, name, process_id, custom_headers = nil) - response = get_process_dump_async(resource_group_name, name, process_id, custom_headers).value! + def get_process_dump(resource_group_name, name, process_id, custom_headers:nil) + response = get_process_dump_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -11719,8 +11775,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_process_dump_with_http_info(resource_group_name, name, process_id, custom_headers = nil) - get_process_dump_async(resource_group_name, name, process_id, custom_headers).value! + def get_process_dump_with_http_info(resource_group_name, name, process_id, custom_headers:nil) + get_process_dump_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! end # @@ -11739,7 +11795,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_process_dump_async(resource_group_name, name, process_id, custom_headers = nil) + def get_process_dump_async(resource_group_name, name, process_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -11751,6 +11807,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -11801,8 +11858,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_process_modules(resource_group_name, name, process_id, custom_headers = nil) - first_page = list_process_modules_as_lazy(resource_group_name, name, process_id, custom_headers) + def list_process_modules(resource_group_name, name, process_id, custom_headers:nil) + first_page = list_process_modules_as_lazy(resource_group_name, name, process_id, custom_headers:custom_headers) first_page.get_all_items end @@ -11822,8 +11879,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_process_modules_with_http_info(resource_group_name, name, process_id, custom_headers = nil) - list_process_modules_async(resource_group_name, name, process_id, custom_headers).value! + def list_process_modules_with_http_info(resource_group_name, name, process_id, custom_headers:nil) + list_process_modules_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! end # @@ -11842,7 +11899,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_process_modules_async(resource_group_name, name, process_id, custom_headers = nil) + def list_process_modules_async(resource_group_name, name, process_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -11854,6 +11911,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -11916,8 +11974,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessModuleInfo] operation results. # - def get_process_module(resource_group_name, name, process_id, base_address, base_address1, custom_headers = nil) - response = get_process_module_async(resource_group_name, name, process_id, base_address, base_address1, custom_headers).value! + def get_process_module(resource_group_name, name, process_id, base_address, base_address1, custom_headers:nil) + response = get_process_module_async(resource_group_name, name, process_id, base_address, base_address1, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -11939,8 +11997,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_process_module_with_http_info(resource_group_name, name, process_id, base_address, base_address1, custom_headers = nil) - get_process_module_async(resource_group_name, name, process_id, base_address, base_address1, custom_headers).value! + def get_process_module_with_http_info(resource_group_name, name, process_id, base_address, base_address1, custom_headers:nil) + get_process_module_async(resource_group_name, name, process_id, base_address, base_address1, custom_headers:custom_headers).value! end # @@ -11961,7 +12019,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_process_module_async(resource_group_name, name, process_id, base_address, base_address1, custom_headers = nil) + def get_process_module_async(resource_group_name, name, process_id, base_address, base_address1, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -11975,6 +12033,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -12035,8 +12094,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_process_threads(resource_group_name, name, process_id, custom_headers = nil) - first_page = list_process_threads_as_lazy(resource_group_name, name, process_id, custom_headers) + def list_process_threads(resource_group_name, name, process_id, custom_headers:nil) + first_page = list_process_threads_as_lazy(resource_group_name, name, process_id, custom_headers:custom_headers) first_page.get_all_items end @@ -12056,8 +12115,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_process_threads_with_http_info(resource_group_name, name, process_id, custom_headers = nil) - list_process_threads_async(resource_group_name, name, process_id, custom_headers).value! + def list_process_threads_with_http_info(resource_group_name, name, process_id, custom_headers:nil) + list_process_threads_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! end # @@ -12076,7 +12135,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_process_threads_async(resource_group_name, name, process_id, custom_headers = nil) + def list_process_threads_async(resource_group_name, name, process_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -12088,6 +12147,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -12149,8 +12209,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessThreadInfo] operation results. # - def get_process_thread(resource_group_name, name, process_id, thread_id, custom_headers = nil) - response = get_process_thread_async(resource_group_name, name, process_id, thread_id, custom_headers).value! + def get_process_thread(resource_group_name, name, process_id, thread_id, custom_headers:nil) + response = get_process_thread_async(resource_group_name, name, process_id, thread_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -12171,8 +12231,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_process_thread_with_http_info(resource_group_name, name, process_id, thread_id, custom_headers = nil) - get_process_thread_async(resource_group_name, name, process_id, thread_id, custom_headers).value! + def get_process_thread_with_http_info(resource_group_name, name, process_id, thread_id, custom_headers:nil) + get_process_thread_async(resource_group_name, name, process_id, thread_id, custom_headers:custom_headers).value! end # @@ -12192,7 +12252,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_process_thread_async(resource_group_name, name, process_id, thread_id, custom_headers = nil) + def get_process_thread_async(resource_group_name, name, process_id, thread_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -12205,6 +12265,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -12262,8 +12323,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_public_certificates(resource_group_name, name, custom_headers = nil) - first_page = list_public_certificates_as_lazy(resource_group_name, name, custom_headers) + def list_public_certificates(resource_group_name, name, custom_headers:nil) + first_page = list_public_certificates_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -12280,8 +12341,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_public_certificates_with_http_info(resource_group_name, name, custom_headers = nil) - list_public_certificates_async(resource_group_name, name, custom_headers).value! + def list_public_certificates_with_http_info(resource_group_name, name, custom_headers:nil) + list_public_certificates_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -12297,7 +12358,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_public_certificates_async(resource_group_name, name, custom_headers = nil) + def list_public_certificates_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -12308,6 +12369,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -12368,8 +12430,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PublicCertificate] operation results. # - def get_public_certificate(resource_group_name, name, public_certificate_name, custom_headers = nil) - response = get_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers).value! + def get_public_certificate(resource_group_name, name, public_certificate_name, custom_headers:nil) + response = get_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -12389,8 +12451,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, custom_headers = nil) - get_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers).value! + def get_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, custom_headers:nil) + get_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers:custom_headers).value! end # @@ -12409,7 +12471,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers = nil) + def get_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -12421,6 +12483,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -12481,8 +12544,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PublicCertificate] operation results. # - def create_or_update_public_certificate(resource_group_name, name, public_certificate_name, public_certificate, custom_headers = nil) - response = create_or_update_public_certificate_async(resource_group_name, name, public_certificate_name, public_certificate, custom_headers).value! + def create_or_update_public_certificate(resource_group_name, name, public_certificate_name, public_certificate, custom_headers:nil) + response = create_or_update_public_certificate_async(resource_group_name, name, public_certificate_name, public_certificate, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -12502,8 +12565,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, public_certificate, custom_headers = nil) - create_or_update_public_certificate_async(resource_group_name, name, public_certificate_name, public_certificate, custom_headers).value! + def create_or_update_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, public_certificate, custom_headers:nil) + create_or_update_public_certificate_async(resource_group_name, name, public_certificate_name, public_certificate, custom_headers:custom_headers).value! end # @@ -12522,7 +12585,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_public_certificate_async(resource_group_name, name, public_certificate_name, public_certificate, custom_headers = nil) + def create_or_update_public_certificate_async(resource_group_name, name, public_certificate_name, public_certificate, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -12535,7 +12598,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -12601,8 +12663,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_public_certificate(resource_group_name, name, public_certificate_name, custom_headers = nil) - response = delete_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers).value! + def delete_public_certificate(resource_group_name, name, public_certificate_name, custom_headers:nil) + response = delete_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers:custom_headers).value! nil end @@ -12620,8 +12682,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, custom_headers = nil) - delete_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers).value! + def delete_public_certificate_with_http_info(resource_group_name, name, public_certificate_name, custom_headers:nil) + delete_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers:custom_headers).value! end # @@ -12638,7 +12700,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers = nil) + def delete_public_certificate_async(resource_group_name, name, public_certificate_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -12650,6 +12712,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -12700,8 +12763,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [NOT_IMPLEMENTED] operation results. # - def list_publishing_profile_xml_with_secrets(resource_group_name, name, publishing_profile_options, custom_headers = nil) - response = list_publishing_profile_xml_with_secrets_async(resource_group_name, name, publishing_profile_options, custom_headers).value! + def list_publishing_profile_xml_with_secrets(resource_group_name, name, publishing_profile_options, custom_headers:nil) + response = list_publishing_profile_xml_with_secrets_async(resource_group_name, name, publishing_profile_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -12721,8 +12784,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_publishing_profile_xml_with_secrets_with_http_info(resource_group_name, name, publishing_profile_options, custom_headers = nil) - list_publishing_profile_xml_with_secrets_async(resource_group_name, name, publishing_profile_options, custom_headers).value! + def list_publishing_profile_xml_with_secrets_with_http_info(resource_group_name, name, publishing_profile_options, custom_headers:nil) + list_publishing_profile_xml_with_secrets_async(resource_group_name, name, publishing_profile_options, custom_headers:custom_headers).value! end # @@ -12741,7 +12804,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_publishing_profile_xml_with_secrets_async(resource_group_name, name, publishing_profile_options, custom_headers = nil) + def list_publishing_profile_xml_with_secrets_async(resource_group_name, name, publishing_profile_options, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -12753,7 +12816,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -12827,8 +12889,8 @@ module Azure::Web::Mgmt::V2016_08_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def recover(resource_group_name, name, recovery_entity, custom_headers = nil) - response = recover_async(resource_group_name, name, recovery_entity, custom_headers).value! + def recover(resource_group_name, name, recovery_entity, custom_headers:nil) + response = recover_async(resource_group_name, name, recovery_entity, custom_headers:custom_headers).value! nil end @@ -12845,9 +12907,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def recover_async(resource_group_name, name, recovery_entity, custom_headers = nil) + def recover_async(resource_group_name, name, recovery_entity, custom_headers:nil) # Send request - promise = begin_recover_async(resource_group_name, name, recovery_entity, custom_headers) + promise = begin_recover_async(resource_group_name, name, recovery_entity, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -12875,8 +12937,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def reset_production_slot_config(resource_group_name, name, custom_headers = nil) - response = reset_production_slot_config_async(resource_group_name, name, custom_headers).value! + def reset_production_slot_config(resource_group_name, name, custom_headers:nil) + response = reset_production_slot_config_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -12895,8 +12957,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def reset_production_slot_config_with_http_info(resource_group_name, name, custom_headers = nil) - reset_production_slot_config_async(resource_group_name, name, custom_headers).value! + def reset_production_slot_config_with_http_info(resource_group_name, name, custom_headers:nil) + reset_production_slot_config_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -12914,7 +12976,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def reset_production_slot_config_async(resource_group_name, name, custom_headers = nil) + def reset_production_slot_config_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -12925,6 +12987,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -12977,8 +13040,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def restart(resource_group_name, name, soft_restart = nil, synchronous = nil, custom_headers = nil) - response = restart_async(resource_group_name, name, soft_restart, synchronous, custom_headers).value! + def restart(resource_group_name, name, soft_restart:nil, synchronous:nil, custom_headers:nil) + response = restart_async(resource_group_name, name, soft_restart:soft_restart, synchronous:synchronous, custom_headers:custom_headers).value! nil end @@ -13001,8 +13064,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def restart_with_http_info(resource_group_name, name, soft_restart = nil, synchronous = nil, custom_headers = nil) - restart_async(resource_group_name, name, soft_restart, synchronous, custom_headers).value! + def restart_with_http_info(resource_group_name, name, soft_restart:nil, synchronous:nil, custom_headers:nil) + restart_async(resource_group_name, name, soft_restart:soft_restart, synchronous:synchronous, custom_headers:custom_headers).value! end # @@ -13024,7 +13087,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def restart_async(resource_group_name, name, soft_restart = nil, synchronous = nil, custom_headers = nil) + def restart_async(resource_group_name, name, soft_restart:nil, synchronous:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -13035,6 +13098,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -13082,8 +13146,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_site_extensions(resource_group_name, name, custom_headers = nil) - first_page = list_site_extensions_as_lazy(resource_group_name, name, custom_headers) + def list_site_extensions(resource_group_name, name, custom_headers:nil) + first_page = list_site_extensions_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -13100,8 +13164,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_site_extensions_with_http_info(resource_group_name, name, custom_headers = nil) - list_site_extensions_async(resource_group_name, name, custom_headers).value! + def list_site_extensions_with_http_info(resource_group_name, name, custom_headers:nil) + list_site_extensions_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -13117,7 +13181,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_site_extensions_async(resource_group_name, name, custom_headers = nil) + def list_site_extensions_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -13128,6 +13192,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -13189,8 +13254,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteExtensionInfo] operation results. # - def get_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - response = get_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def get_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers:nil) + response = get_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -13211,8 +13276,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_site_extension_with_http_info(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - get_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def get_site_extension_with_http_info(resource_group_name, name, site_extension_id, extension_name, custom_headers:nil) + get_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:custom_headers).value! end # @@ -13232,7 +13297,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) + def get_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -13245,6 +13310,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -13304,8 +13370,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteExtensionInfo] operation results. # - def install_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - response = install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def install_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers:nil) + response = install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -13321,9 +13387,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) + def install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:nil) # Send request - promise = begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers) + promise = begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -13353,8 +13419,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - response = delete_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def delete_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers:nil) + response = delete_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:custom_headers).value! nil end @@ -13373,8 +13439,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_site_extension_with_http_info(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - delete_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def delete_site_extension_with_http_info(resource_group_name, name, site_extension_id, extension_name, custom_headers:nil) + delete_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:custom_headers).value! end # @@ -13392,7 +13458,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) + def delete_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -13405,6 +13471,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -13452,8 +13519,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_slots(resource_group_name, name, custom_headers = nil) - first_page = list_slots_as_lazy(resource_group_name, name, custom_headers) + def list_slots(resource_group_name, name, custom_headers:nil) + first_page = list_slots_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -13470,8 +13537,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_slots_with_http_info(resource_group_name, name, custom_headers = nil) - list_slots_async(resource_group_name, name, custom_headers).value! + def list_slots_with_http_info(resource_group_name, name, custom_headers:nil) + list_slots_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -13487,7 +13554,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_slots_async(resource_group_name, name, custom_headers = nil) + def list_slots_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -13498,6 +13565,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -13557,8 +13625,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Site] operation results. # - def get_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_slot(resource_group_name, name, slot, custom_headers:nil) + response = get_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -13577,8 +13645,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + get_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -13596,7 +13664,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -13608,6 +13676,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -13681,8 +13750,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Site] operation results. # - def create_or_update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) - response = create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers).value! + def create_or_update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) + response = create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -13710,9 +13779,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) + def create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) # Send request - promise = begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers) + promise = begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -13747,8 +13816,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_slot(resource_group_name, name, slot, delete_metrics = nil, delete_empty_server_farm = nil, skip_dns_registration = nil, custom_headers = nil) - response = delete_slot_async(resource_group_name, name, slot, delete_metrics, delete_empty_server_farm, skip_dns_registration, custom_headers).value! + def delete_slot(resource_group_name, name, slot, delete_metrics:nil, delete_empty_server_farm:nil, skip_dns_registration:nil, custom_headers:nil) + response = delete_slot_async(resource_group_name, name, slot, delete_metrics:delete_metrics, delete_empty_server_farm:delete_empty_server_farm, skip_dns_registration:skip_dns_registration, custom_headers:custom_headers).value! nil end @@ -13772,8 +13841,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_slot_with_http_info(resource_group_name, name, slot, delete_metrics = nil, delete_empty_server_farm = nil, skip_dns_registration = nil, custom_headers = nil) - delete_slot_async(resource_group_name, name, slot, delete_metrics, delete_empty_server_farm, skip_dns_registration, custom_headers).value! + def delete_slot_with_http_info(resource_group_name, name, slot, delete_metrics:nil, delete_empty_server_farm:nil, skip_dns_registration:nil, custom_headers:nil) + delete_slot_async(resource_group_name, name, slot, delete_metrics:delete_metrics, delete_empty_server_farm:delete_empty_server_farm, skip_dns_registration:skip_dns_registration, custom_headers:custom_headers).value! end # @@ -13796,7 +13865,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_slot_async(resource_group_name, name, slot, delete_metrics = nil, delete_empty_server_farm = nil, skip_dns_registration = nil, custom_headers = nil) + def delete_slot_async(resource_group_name, name, slot, delete_metrics:nil, delete_empty_server_farm:nil, skip_dns_registration:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -13808,6 +13877,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -13858,8 +13928,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [CustomHostnameAnalysisResult] operation results. # - def analyze_custom_hostname_slot(resource_group_name, name, slot, host_name = nil, custom_headers = nil) - response = analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_name, custom_headers).value! + def analyze_custom_hostname_slot(resource_group_name, name, slot, host_name:nil, custom_headers:nil) + response = analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_name:host_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -13879,8 +13949,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def analyze_custom_hostname_slot_with_http_info(resource_group_name, name, slot, host_name = nil, custom_headers = nil) - analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_name, custom_headers).value! + def analyze_custom_hostname_slot_with_http_info(resource_group_name, name, slot, host_name:nil, custom_headers:nil) + analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_name:host_name, custom_headers:custom_headers).value! end # @@ -13899,7 +13969,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_name = nil, custom_headers = nil) + def analyze_custom_hostname_slot_async(resource_group_name, name, slot, host_name:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -13911,6 +13981,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -13973,8 +14044,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def apply_slot_configuration_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) - response = apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers).value! + def apply_slot_configuration_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) + response = apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! nil end @@ -13997,8 +14068,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def apply_slot_configuration_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) - apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers).value! + def apply_slot_configuration_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) + apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! end # @@ -14020,7 +14091,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) + def apply_slot_configuration_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -14033,7 +14104,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -14093,8 +14163,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupItem] operation results. # - def backup_slot(resource_group_name, name, request, slot, custom_headers = nil) - response = backup_slot_async(resource_group_name, name, request, slot, custom_headers).value! + def backup_slot(resource_group_name, name, request, slot, custom_headers:nil) + response = backup_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -14115,8 +14185,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def backup_slot_with_http_info(resource_group_name, name, request, slot, custom_headers = nil) - backup_slot_async(resource_group_name, name, request, slot, custom_headers).value! + def backup_slot_with_http_info(resource_group_name, name, request, slot, custom_headers:nil) + backup_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! end # @@ -14136,7 +14206,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def backup_slot_async(resource_group_name, name, request, slot, custom_headers = nil) + def backup_slot_async(resource_group_name, name, request, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -14149,7 +14219,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -14217,8 +14286,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_backups_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_backups_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_backups_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_backups_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -14237,8 +14306,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_backups_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_backups_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_backups_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_backups_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -14256,7 +14325,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_backups_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_backups_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -14268,6 +14337,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -14331,8 +14401,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RestoreRequest] operation results. # - def discover_restore_slot(resource_group_name, name, request, slot, custom_headers = nil) - response = discover_restore_slot_async(resource_group_name, name, request, slot, custom_headers).value! + def discover_restore_slot(resource_group_name, name, request, slot, custom_headers:nil) + response = discover_restore_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -14355,8 +14425,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def discover_restore_slot_with_http_info(resource_group_name, name, request, slot, custom_headers = nil) - discover_restore_slot_async(resource_group_name, name, request, slot, custom_headers).value! + def discover_restore_slot_with_http_info(resource_group_name, name, request, slot, custom_headers:nil) + discover_restore_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! end # @@ -14378,7 +14448,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def discover_restore_slot_async(resource_group_name, name, request, slot, custom_headers = nil) + def discover_restore_slot_async(resource_group_name, name, request, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -14391,7 +14461,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -14460,8 +14529,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupItem] operation results. # - def get_backup_status_slot(resource_group_name, name, backup_id, slot, custom_headers = nil) - response = get_backup_status_slot_async(resource_group_name, name, backup_id, slot, custom_headers).value! + def get_backup_status_slot(resource_group_name, name, backup_id, slot, custom_headers:nil) + response = get_backup_status_slot_async(resource_group_name, name, backup_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -14481,8 +14550,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_backup_status_slot_with_http_info(resource_group_name, name, backup_id, slot, custom_headers = nil) - get_backup_status_slot_async(resource_group_name, name, backup_id, slot, custom_headers).value! + def get_backup_status_slot_with_http_info(resource_group_name, name, backup_id, slot, custom_headers:nil) + get_backup_status_slot_async(resource_group_name, name, backup_id, slot, custom_headers:custom_headers).value! end # @@ -14501,7 +14570,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_backup_status_slot_async(resource_group_name, name, backup_id, slot, custom_headers = nil) + def get_backup_status_slot_async(resource_group_name, name, backup_id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -14514,6 +14583,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -14573,8 +14643,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_backup_slot(resource_group_name, name, backup_id, slot, custom_headers = nil) - response = delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_headers).value! + def delete_backup_slot(resource_group_name, name, backup_id, slot, custom_headers:nil) + response = delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_headers:custom_headers).value! nil end @@ -14594,8 +14664,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_backup_slot_with_http_info(resource_group_name, name, backup_id, slot, custom_headers = nil) - delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_headers).value! + def delete_backup_slot_with_http_info(resource_group_name, name, backup_id, slot, custom_headers:nil) + delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_headers:custom_headers).value! end # @@ -14614,7 +14684,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_headers = nil) + def delete_backup_slot_async(resource_group_name, name, backup_id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -14627,6 +14697,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -14684,8 +14755,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupItem] operation results. # - def list_backup_status_secrets_slot(resource_group_name, name, backup_id, request, slot, custom_headers = nil) - response = list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers).value! + def list_backup_status_secrets_slot(resource_group_name, name, backup_id, request, slot, custom_headers:nil) + response = list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -14712,8 +14783,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_backup_status_secrets_slot_with_http_info(resource_group_name, name, backup_id, request, slot, custom_headers = nil) - list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers).value! + def list_backup_status_secrets_slot_with_http_info(resource_group_name, name, backup_id, request, slot, custom_headers:nil) + list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers).value! end # @@ -14739,7 +14810,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers = nil) + def list_backup_status_secrets_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -14753,7 +14824,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -14823,8 +14893,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RestoreResponse] operation results. # - def restore_slot(resource_group_name, name, backup_id, request, slot, custom_headers = nil) - response = restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers).value! + def restore_slot(resource_group_name, name, backup_id, request, slot, custom_headers:nil) + response = restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -14842,9 +14912,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers = nil) + def restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:nil) # Send request - promise = begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers) + promise = begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -14875,8 +14945,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_configurations_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_configurations_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_configurations_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_configurations_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -14895,8 +14965,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_configurations_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_configurations_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_configurations_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_configurations_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -14914,7 +14984,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_configurations_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_configurations_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -14926,6 +14996,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -14986,8 +15057,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [StringDictionary] operation results. # - def update_application_settings_slot(resource_group_name, name, app_settings, slot, custom_headers = nil) - response = update_application_settings_slot_async(resource_group_name, name, app_settings, slot, custom_headers).value! + def update_application_settings_slot(resource_group_name, name, app_settings, slot, custom_headers:nil) + response = update_application_settings_slot_async(resource_group_name, name, app_settings, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -15007,8 +15078,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_application_settings_slot_with_http_info(resource_group_name, name, app_settings, slot, custom_headers = nil) - update_application_settings_slot_async(resource_group_name, name, app_settings, slot, custom_headers).value! + def update_application_settings_slot_with_http_info(resource_group_name, name, app_settings, slot, custom_headers:nil) + update_application_settings_slot_async(resource_group_name, name, app_settings, slot, custom_headers:custom_headers).value! end # @@ -15027,7 +15098,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_application_settings_slot_async(resource_group_name, name, app_settings, slot, custom_headers = nil) + def update_application_settings_slot_async(resource_group_name, name, app_settings, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -15040,7 +15111,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -15108,8 +15178,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [StringDictionary] operation results. # - def list_application_settings_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_application_settings_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_application_settings_slot(resource_group_name, name, slot, custom_headers:nil) + response = list_application_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -15128,8 +15198,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_application_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_application_settings_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_application_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_application_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -15147,7 +15217,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_application_settings_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_application_settings_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -15159,6 +15229,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -15220,8 +15291,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteAuthSettings] operation results. # - def update_auth_settings_slot(resource_group_name, name, site_auth_settings, slot, custom_headers = nil) - response = update_auth_settings_slot_async(resource_group_name, name, site_auth_settings, slot, custom_headers).value! + def update_auth_settings_slot(resource_group_name, name, site_auth_settings, slot, custom_headers:nil) + response = update_auth_settings_slot_async(resource_group_name, name, site_auth_settings, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -15242,8 +15313,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_auth_settings_slot_with_http_info(resource_group_name, name, site_auth_settings, slot, custom_headers = nil) - update_auth_settings_slot_async(resource_group_name, name, site_auth_settings, slot, custom_headers).value! + def update_auth_settings_slot_with_http_info(resource_group_name, name, site_auth_settings, slot, custom_headers:nil) + update_auth_settings_slot_async(resource_group_name, name, site_auth_settings, slot, custom_headers:custom_headers).value! end # @@ -15263,7 +15334,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_auth_settings_slot_async(resource_group_name, name, site_auth_settings, slot, custom_headers = nil) + def update_auth_settings_slot_async(resource_group_name, name, site_auth_settings, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -15276,7 +15347,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -15344,8 +15414,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteAuthSettings] operation results. # - def get_auth_settings_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_auth_settings_slot(resource_group_name, name, slot, custom_headers:nil) + response = get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -15364,8 +15434,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_auth_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_auth_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -15383,7 +15453,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_auth_settings_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -15395,6 +15465,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -15455,8 +15526,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupRequest] operation results. # - def update_backup_configuration_slot(resource_group_name, name, request, slot, custom_headers = nil) - response = update_backup_configuration_slot_async(resource_group_name, name, request, slot, custom_headers).value! + def update_backup_configuration_slot(resource_group_name, name, request, slot, custom_headers:nil) + response = update_backup_configuration_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -15476,8 +15547,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_backup_configuration_slot_with_http_info(resource_group_name, name, request, slot, custom_headers = nil) - update_backup_configuration_slot_async(resource_group_name, name, request, slot, custom_headers).value! + def update_backup_configuration_slot_with_http_info(resource_group_name, name, request, slot, custom_headers:nil) + update_backup_configuration_slot_async(resource_group_name, name, request, slot, custom_headers:custom_headers).value! end # @@ -15496,7 +15567,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_backup_configuration_slot_async(resource_group_name, name, request, slot, custom_headers = nil) + def update_backup_configuration_slot_async(resource_group_name, name, request, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -15509,7 +15580,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -15576,8 +15646,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_backup_configuration_slot(resource_group_name, name, slot, custom_headers = nil) - response = delete_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers).value! + def delete_backup_configuration_slot(resource_group_name, name, slot, custom_headers:nil) + response = delete_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end @@ -15596,8 +15666,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_backup_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - delete_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers).value! + def delete_backup_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + delete_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -15615,7 +15685,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers = nil) + def delete_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -15627,6 +15697,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -15676,8 +15747,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupRequest] operation results. # - def get_backup_configuration_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_backup_configuration_slot(resource_group_name, name, slot, custom_headers:nil) + response = get_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -15696,8 +15767,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_backup_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_backup_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + get_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -15715,7 +15786,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_backup_configuration_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -15727,6 +15798,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -15788,8 +15860,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ConnectionStringDictionary] operation results. # - def update_connection_strings_slot(resource_group_name, name, connection_strings, slot, custom_headers = nil) - response = update_connection_strings_slot_async(resource_group_name, name, connection_strings, slot, custom_headers).value! + def update_connection_strings_slot(resource_group_name, name, connection_strings, slot, custom_headers:nil) + response = update_connection_strings_slot_async(resource_group_name, name, connection_strings, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -15810,8 +15882,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_connection_strings_slot_with_http_info(resource_group_name, name, connection_strings, slot, custom_headers = nil) - update_connection_strings_slot_async(resource_group_name, name, connection_strings, slot, custom_headers).value! + def update_connection_strings_slot_with_http_info(resource_group_name, name, connection_strings, slot, custom_headers:nil) + update_connection_strings_slot_async(resource_group_name, name, connection_strings, slot, custom_headers:custom_headers).value! end # @@ -15831,7 +15903,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_connection_strings_slot_async(resource_group_name, name, connection_strings, slot, custom_headers = nil) + def update_connection_strings_slot_async(resource_group_name, name, connection_strings, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -15844,7 +15916,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -15912,8 +15983,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ConnectionStringDictionary] operation results. # - def list_connection_strings_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_connection_strings_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_connection_strings_slot(resource_group_name, name, slot, custom_headers:nil) + response = list_connection_strings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -15932,8 +16003,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_connection_strings_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_connection_strings_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_connection_strings_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_connection_strings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -15951,7 +16022,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_connection_strings_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_connection_strings_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -15963,6 +16034,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -16022,8 +16094,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteLogsConfig] operation results. # - def get_diagnostic_logs_configuration_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_diagnostic_logs_configuration_slot(resource_group_name, name, slot, custom_headers:nil) + response = get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -16042,8 +16114,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_diagnostic_logs_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_diagnostic_logs_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -16061,7 +16133,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_diagnostic_logs_configuration_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -16073,6 +16145,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -16134,8 +16207,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteLogsConfig] operation results. # - def update_diagnostic_logs_config_slot(resource_group_name, name, site_logs_config, slot, custom_headers = nil) - response = update_diagnostic_logs_config_slot_async(resource_group_name, name, site_logs_config, slot, custom_headers).value! + def update_diagnostic_logs_config_slot(resource_group_name, name, site_logs_config, slot, custom_headers:nil) + response = update_diagnostic_logs_config_slot_async(resource_group_name, name, site_logs_config, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -16156,8 +16229,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_diagnostic_logs_config_slot_with_http_info(resource_group_name, name, site_logs_config, slot, custom_headers = nil) - update_diagnostic_logs_config_slot_async(resource_group_name, name, site_logs_config, slot, custom_headers).value! + def update_diagnostic_logs_config_slot_with_http_info(resource_group_name, name, site_logs_config, slot, custom_headers:nil) + update_diagnostic_logs_config_slot_async(resource_group_name, name, site_logs_config, slot, custom_headers:custom_headers).value! end # @@ -16177,7 +16250,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_diagnostic_logs_config_slot_async(resource_group_name, name, site_logs_config, slot, custom_headers = nil) + def update_diagnostic_logs_config_slot_async(resource_group_name, name, site_logs_config, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -16190,7 +16263,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -16260,8 +16332,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [StringDictionary] operation results. # - def update_metadata_slot(resource_group_name, name, metadata, slot, custom_headers = nil) - response = update_metadata_slot_async(resource_group_name, name, metadata, slot, custom_headers).value! + def update_metadata_slot(resource_group_name, name, metadata, slot, custom_headers:nil) + response = update_metadata_slot_async(resource_group_name, name, metadata, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -16282,8 +16354,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_metadata_slot_with_http_info(resource_group_name, name, metadata, slot, custom_headers = nil) - update_metadata_slot_async(resource_group_name, name, metadata, slot, custom_headers).value! + def update_metadata_slot_with_http_info(resource_group_name, name, metadata, slot, custom_headers:nil) + update_metadata_slot_async(resource_group_name, name, metadata, slot, custom_headers:custom_headers).value! end # @@ -16303,7 +16375,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_metadata_slot_async(resource_group_name, name, metadata, slot, custom_headers = nil) + def update_metadata_slot_async(resource_group_name, name, metadata, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -16316,7 +16388,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -16384,8 +16455,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [StringDictionary] operation results. # - def list_metadata_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_metadata_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_metadata_slot(resource_group_name, name, slot, custom_headers:nil) + response = list_metadata_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -16404,8 +16475,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metadata_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_metadata_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_metadata_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_metadata_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -16423,7 +16494,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metadata_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_metadata_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -16435,6 +16506,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -16494,8 +16566,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [User] operation results. # - def list_publishing_credentials_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_publishing_credentials_slot(resource_group_name, name, slot, custom_headers:nil) + response = list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -16511,9 +16583,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers:nil) # Send request - promise = begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers) + promise = begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -16545,8 +16617,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PushSettings] operation results. # - def update_site_push_settings_slot(resource_group_name, name, push_settings, slot, custom_headers = nil) - response = update_site_push_settings_slot_async(resource_group_name, name, push_settings, slot, custom_headers).value! + def update_site_push_settings_slot(resource_group_name, name, push_settings, slot, custom_headers:nil) + response = update_site_push_settings_slot_async(resource_group_name, name, push_settings, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -16566,8 +16638,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_site_push_settings_slot_with_http_info(resource_group_name, name, push_settings, slot, custom_headers = nil) - update_site_push_settings_slot_async(resource_group_name, name, push_settings, slot, custom_headers).value! + def update_site_push_settings_slot_with_http_info(resource_group_name, name, push_settings, slot, custom_headers:nil) + update_site_push_settings_slot_async(resource_group_name, name, push_settings, slot, custom_headers:custom_headers).value! end # @@ -16586,7 +16658,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_site_push_settings_slot_async(resource_group_name, name, push_settings, slot, custom_headers = nil) + def update_site_push_settings_slot_async(resource_group_name, name, push_settings, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -16599,7 +16671,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -16667,8 +16738,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PushSettings] operation results. # - def list_site_push_settings_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_site_push_settings_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_site_push_settings_slot(resource_group_name, name, slot, custom_headers:nil) + response = list_site_push_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -16687,8 +16758,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_site_push_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_site_push_settings_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_site_push_settings_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_site_push_settings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -16706,7 +16777,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_site_push_settings_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_site_push_settings_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -16718,6 +16789,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -16779,8 +16851,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteConfigResource] operation results. # - def get_configuration_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_configuration_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_configuration_slot(resource_group_name, name, slot, custom_headers:nil) + response = get_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -16801,8 +16873,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_configuration_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + get_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -16822,7 +16894,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_configuration_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_configuration_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -16834,6 +16906,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -16895,8 +16968,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteConfigResource] operation results. # - def create_or_update_configuration_slot(resource_group_name, name, site_config, slot, custom_headers = nil) - response = create_or_update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers).value! + def create_or_update_configuration_slot(resource_group_name, name, site_config, slot, custom_headers:nil) + response = create_or_update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -16917,8 +16990,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers = nil) - create_or_update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers).value! + def create_or_update_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers:nil) + create_or_update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers:custom_headers).value! end # @@ -16938,7 +17011,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers = nil) + def create_or_update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -16951,7 +17024,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -17021,8 +17093,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteConfigResource] operation results. # - def update_configuration_slot(resource_group_name, name, site_config, slot, custom_headers = nil) - response = update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers).value! + def update_configuration_slot(resource_group_name, name, site_config, slot, custom_headers:nil) + response = update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -17043,8 +17115,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers = nil) - update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers).value! + def update_configuration_slot_with_http_info(resource_group_name, name, site_config, slot, custom_headers:nil) + update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers:custom_headers).value! end # @@ -17064,7 +17136,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers = nil) + def update_configuration_slot_async(resource_group_name, name, site_config, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -17077,7 +17149,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -17147,8 +17218,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_configuration_snapshot_info_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_configuration_snapshot_info_slot(resource_group_name, name, slot, custom_headers:nil) + response = list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -17169,8 +17240,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_configuration_snapshot_info_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_configuration_snapshot_info_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -17190,7 +17261,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_configuration_snapshot_info_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -17202,6 +17273,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -17278,8 +17350,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteConfigResource] operation results. # - def get_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers = nil) - response = get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! + def get_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers:nil) + response = get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -17299,8 +17371,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers = nil) - get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! + def get_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers:nil) + get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers:custom_headers).value! end # @@ -17319,7 +17391,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers = nil) + def get_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -17332,6 +17404,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -17391,8 +17464,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def recover_site_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers = nil) - response = recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! + def recover_site_configuration_snapshot_slot(resource_group_name, name, snapshot_id, slot, custom_headers:nil) + response = recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers:custom_headers).value! nil end @@ -17412,8 +17485,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def recover_site_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers = nil) - recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers).value! + def recover_site_configuration_snapshot_slot_with_http_info(resource_group_name, name, snapshot_id, slot, custom_headers:nil) + recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers:custom_headers).value! end # @@ -17432,7 +17505,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers = nil) + def recover_site_configuration_snapshot_slot_async(resource_group_name, name, snapshot_id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -17445,6 +17518,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -17494,8 +17568,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_continuous_web_jobs_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_continuous_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_continuous_web_jobs_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_continuous_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -17514,8 +17588,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_continuous_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_continuous_web_jobs_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_continuous_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_continuous_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -17533,7 +17607,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_continuous_web_jobs_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_continuous_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -17545,6 +17619,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -17606,8 +17681,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ContinuousWebJob] operation results. # - def get_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = get_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def get_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + response = get_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -17628,8 +17703,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - get_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def get_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + get_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! end # @@ -17649,7 +17724,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def get_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -17663,6 +17738,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -17723,8 +17799,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = delete_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def delete_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + response = delete_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! nil end @@ -17745,8 +17821,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - delete_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def delete_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + delete_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! end # @@ -17766,7 +17842,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def delete_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -17780,6 +17856,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -17830,8 +17907,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def start_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = start_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def start_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + response = start_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! nil end @@ -17852,8 +17929,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def start_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - start_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def start_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + start_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! end # @@ -17873,7 +17950,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def start_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def start_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -17887,6 +17964,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -17937,8 +18015,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def stop_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = stop_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def stop_continuous_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + response = stop_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! nil end @@ -17959,8 +18037,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - stop_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def stop_continuous_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + stop_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! end # @@ -17980,7 +18058,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def stop_continuous_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -17994,6 +18072,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -18043,8 +18122,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_deployments_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_deployments_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_deployments_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_deployments_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -18063,8 +18142,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_deployments_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_deployments_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_deployments_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_deployments_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -18082,7 +18161,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_deployments_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_deployments_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -18094,6 +18173,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -18154,8 +18234,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Deployment] operation results. # - def get_deployment_slot(resource_group_name, name, id, slot, custom_headers = nil) - response = get_deployment_slot_async(resource_group_name, name, id, slot, custom_headers).value! + def get_deployment_slot(resource_group_name, name, id, slot, custom_headers:nil) + response = get_deployment_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -18175,8 +18255,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_deployment_slot_with_http_info(resource_group_name, name, id, slot, custom_headers = nil) - get_deployment_slot_async(resource_group_name, name, id, slot, custom_headers).value! + def get_deployment_slot_with_http_info(resource_group_name, name, id, slot, custom_headers:nil) + get_deployment_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! end # @@ -18195,7 +18275,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_deployment_slot_async(resource_group_name, name, id, slot, custom_headers = nil) + def get_deployment_slot_async(resource_group_name, name, id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -18208,6 +18288,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -18269,8 +18350,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Deployment] operation results. # - def create_deployment_slot(resource_group_name, name, id, slot, deployment, custom_headers = nil) - response = create_deployment_slot_async(resource_group_name, name, id, slot, deployment, custom_headers).value! + def create_deployment_slot(resource_group_name, name, id, slot, deployment, custom_headers:nil) + response = create_deployment_slot_async(resource_group_name, name, id, slot, deployment, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -18291,8 +18372,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_deployment_slot_with_http_info(resource_group_name, name, id, slot, deployment, custom_headers = nil) - create_deployment_slot_async(resource_group_name, name, id, slot, deployment, custom_headers).value! + def create_deployment_slot_with_http_info(resource_group_name, name, id, slot, deployment, custom_headers:nil) + create_deployment_slot_async(resource_group_name, name, id, slot, deployment, custom_headers:custom_headers).value! end # @@ -18312,7 +18393,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_deployment_slot_async(resource_group_name, name, id, slot, deployment, custom_headers = nil) + def create_deployment_slot_async(resource_group_name, name, id, slot, deployment, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -18326,7 +18407,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -18394,8 +18474,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_deployment_slot(resource_group_name, name, id, slot, custom_headers = nil) - response = delete_deployment_slot_async(resource_group_name, name, id, slot, custom_headers).value! + def delete_deployment_slot(resource_group_name, name, id, slot, custom_headers:nil) + response = delete_deployment_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! nil end @@ -18415,8 +18495,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_deployment_slot_with_http_info(resource_group_name, name, id, slot, custom_headers = nil) - delete_deployment_slot_async(resource_group_name, name, id, slot, custom_headers).value! + def delete_deployment_slot_with_http_info(resource_group_name, name, id, slot, custom_headers:nil) + delete_deployment_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! end # @@ -18435,7 +18515,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_deployment_slot_async(resource_group_name, name, id, slot, custom_headers = nil) + def delete_deployment_slot_async(resource_group_name, name, id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -18448,6 +18528,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -18500,8 +18581,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Deployment] operation results. # - def list_deployment_log_slot(resource_group_name, name, id, slot, custom_headers = nil) - response = list_deployment_log_slot_async(resource_group_name, name, id, slot, custom_headers).value! + def list_deployment_log_slot(resource_group_name, name, id, slot, custom_headers:nil) + response = list_deployment_log_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -18523,8 +18604,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_deployment_log_slot_with_http_info(resource_group_name, name, id, slot, custom_headers = nil) - list_deployment_log_slot_async(resource_group_name, name, id, slot, custom_headers).value! + def list_deployment_log_slot_with_http_info(resource_group_name, name, id, slot, custom_headers:nil) + list_deployment_log_slot_async(resource_group_name, name, id, slot, custom_headers:custom_headers).value! end # @@ -18545,7 +18626,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_deployment_log_slot_async(resource_group_name, name, id, slot, custom_headers = nil) + def list_deployment_log_slot_async(resource_group_name, name, id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -18558,6 +18639,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -18617,8 +18699,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_domain_ownership_identifiers_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_domain_ownership_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_domain_ownership_identifiers_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_domain_ownership_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -18637,8 +18719,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_domain_ownership_identifiers_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_domain_ownership_identifiers_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -18656,7 +18738,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -18668,6 +18750,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -18729,8 +18812,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Identifier] operation results. # - def get_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers = nil) - response = get_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers).value! + def get_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:nil) + response = get_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -18751,8 +18834,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers = nil) - get_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers).value! + def get_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:nil) + get_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:custom_headers).value! end # @@ -18772,7 +18855,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers = nil) + def get_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -18785,6 +18868,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -18850,8 +18934,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Identifier] operation results. # - def create_or_update_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers = nil) - response = create_or_update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers).value! + def create_or_update_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:nil) + response = create_or_update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -18876,8 +18960,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers = nil) - create_or_update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers).value! + def create_or_update_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:nil) + create_or_update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:custom_headers).value! end # @@ -18901,7 +18985,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers = nil) + def create_or_update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -18915,7 +18999,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -18984,8 +19067,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers = nil) - response = delete_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers).value! + def delete_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:nil) + response = delete_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:custom_headers).value! nil end @@ -19006,8 +19089,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers = nil) - delete_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers).value! + def delete_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:nil) + delete_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:custom_headers).value! end # @@ -19027,7 +19110,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers = nil) + def delete_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -19040,6 +19123,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -19095,8 +19179,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Identifier] operation results. # - def update_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers = nil) - response = update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers).value! + def update_domain_ownership_identifier_slot(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:nil) + response = update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -19121,8 +19205,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers = nil) - update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers).value! + def update_domain_ownership_identifier_slot_with_http_info(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:nil) + update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:custom_headers).value! end # @@ -19146,7 +19230,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers = nil) + def update_domain_ownership_identifier_slot_async(resource_group_name, name, domain_ownership_identifier_name, domain_ownership_identifier, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -19160,7 +19244,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -19228,8 +19311,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def get_msdeploy_status_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_msdeploy_status_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_msdeploy_status_slot(resource_group_name, name, slot, custom_headers:nil) + response = get_msdeploy_status_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -19248,8 +19331,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_msdeploy_status_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_msdeploy_status_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_msdeploy_status_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + get_msdeploy_status_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -19267,7 +19350,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_msdeploy_status_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_msdeploy_status_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -19279,6 +19362,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -19339,8 +19423,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def create_msdeploy_operation_slot(resource_group_name, name, slot, msdeploy, custom_headers = nil) - response = create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers).value! + def create_msdeploy_operation_slot(resource_group_name, name, slot, msdeploy, custom_headers:nil) + response = create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -19357,9 +19441,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers = nil) + def create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers:nil) # Send request - promise = begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers) + promise = begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -19390,8 +19474,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployLog] operation results. # - def get_msdeploy_log_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_msdeploy_log_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_msdeploy_log_slot(resource_group_name, name, slot, custom_headers:nil) + response = get_msdeploy_log_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -19410,8 +19494,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_msdeploy_log_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_msdeploy_log_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_msdeploy_log_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + get_msdeploy_log_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -19429,7 +19513,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_msdeploy_log_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_msdeploy_log_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -19441,6 +19525,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -19500,8 +19585,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_instance_functions_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_instance_functions_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_instance_functions_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_instance_functions_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -19520,8 +19605,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_functions_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_instance_functions_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_instance_functions_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_instance_functions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -19539,7 +19624,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_functions_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_instance_functions_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -19551,6 +19636,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -19610,8 +19696,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [String] operation results. # - def get_functions_admin_token_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_functions_admin_token_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_functions_admin_token_slot(resource_group_name, name, slot, custom_headers:nil) + response = get_functions_admin_token_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -19630,8 +19716,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_functions_admin_token_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_functions_admin_token_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_functions_admin_token_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + get_functions_admin_token_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -19649,7 +19735,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_functions_admin_token_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_functions_admin_token_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -19661,6 +19747,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -19728,8 +19815,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionEnvelope] operation results. # - def get_instance_function_slot(resource_group_name, name, function_name, slot, custom_headers = nil) - response = get_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers).value! + def get_instance_function_slot(resource_group_name, name, function_name, slot, custom_headers:nil) + response = get_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -19749,8 +19836,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers = nil) - get_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers).value! + def get_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers:nil) + get_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! end # @@ -19769,7 +19856,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers = nil) + def get_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -19782,6 +19869,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -19843,8 +19931,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionEnvelope] operation results. # - def create_instance_function_slot(resource_group_name, name, function_name, slot, function_envelope, custom_headers = nil) - response = create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers).value! + def create_instance_function_slot(resource_group_name, name, function_name, slot, function_envelope, custom_headers:nil) + response = create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -19862,9 +19950,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers = nil) + def create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers:nil) # Send request - promise = begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers) + promise = begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -19895,8 +19983,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_instance_function_slot(resource_group_name, name, function_name, slot, custom_headers = nil) - response = delete_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers).value! + def delete_instance_function_slot(resource_group_name, name, function_name, slot, custom_headers:nil) + response = delete_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! nil end @@ -19916,8 +20004,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers = nil) - delete_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers).value! + def delete_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers:nil) + delete_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! end # @@ -19936,7 +20024,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers = nil) + def delete_instance_function_slot_async(resource_group_name, name, function_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -19949,6 +20037,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -19999,8 +20088,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionSecrets] operation results. # - def list_function_secrets_slot(resource_group_name, name, function_name, slot, custom_headers = nil) - response = list_function_secrets_slot_async(resource_group_name, name, function_name, slot, custom_headers).value! + def list_function_secrets_slot(resource_group_name, name, function_name, slot, custom_headers:nil) + response = list_function_secrets_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -20020,8 +20109,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_function_secrets_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers = nil) - list_function_secrets_slot_async(resource_group_name, name, function_name, slot, custom_headers).value! + def list_function_secrets_slot_with_http_info(resource_group_name, name, function_name, slot, custom_headers:nil) + list_function_secrets_slot_async(resource_group_name, name, function_name, slot, custom_headers:custom_headers).value! end # @@ -20040,7 +20129,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_function_secrets_slot_async(resource_group_name, name, function_name, slot, custom_headers = nil) + def list_function_secrets_slot_async(resource_group_name, name, function_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -20053,6 +20142,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -20112,8 +20202,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_host_name_bindings_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_host_name_bindings_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_host_name_bindings_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_host_name_bindings_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -20132,8 +20222,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_host_name_bindings_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_host_name_bindings_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -20151,7 +20241,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -20163,6 +20253,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -20223,8 +20314,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HostNameBinding] operation results. # - def get_host_name_binding_slot(resource_group_name, name, slot, host_name, custom_headers = nil) - response = get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers).value! + def get_host_name_binding_slot(resource_group_name, name, slot, host_name, custom_headers:nil) + response = get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -20244,8 +20335,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_host_name_binding_slot_with_http_info(resource_group_name, name, slot, host_name, custom_headers = nil) - get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers).value! + def get_host_name_binding_slot_with_http_info(resource_group_name, name, slot, host_name, custom_headers:nil) + get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers:custom_headers).value! end # @@ -20264,7 +20355,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers = nil) + def get_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -20277,6 +20368,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -20339,8 +20431,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HostNameBinding] operation results. # - def create_or_update_host_name_binding_slot(resource_group_name, name, host_name, host_name_binding, slot, custom_headers = nil) - response = create_or_update_host_name_binding_slot_async(resource_group_name, name, host_name, host_name_binding, slot, custom_headers).value! + def create_or_update_host_name_binding_slot(resource_group_name, name, host_name, host_name_binding, slot, custom_headers:nil) + response = create_or_update_host_name_binding_slot_async(resource_group_name, name, host_name, host_name_binding, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -20362,8 +20454,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_host_name_binding_slot_with_http_info(resource_group_name, name, host_name, host_name_binding, slot, custom_headers = nil) - create_or_update_host_name_binding_slot_async(resource_group_name, name, host_name, host_name_binding, slot, custom_headers).value! + def create_or_update_host_name_binding_slot_with_http_info(resource_group_name, name, host_name, host_name_binding, slot, custom_headers:nil) + create_or_update_host_name_binding_slot_async(resource_group_name, name, host_name, host_name_binding, slot, custom_headers:custom_headers).value! end # @@ -20384,7 +20476,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_host_name_binding_slot_async(resource_group_name, name, host_name, host_name_binding, slot, custom_headers = nil) + def create_or_update_host_name_binding_slot_async(resource_group_name, name, host_name, host_name_binding, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -20398,7 +20490,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -20466,8 +20557,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_host_name_binding_slot(resource_group_name, name, slot, host_name, custom_headers = nil) - response = delete_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers).value! + def delete_host_name_binding_slot(resource_group_name, name, slot, host_name, custom_headers:nil) + response = delete_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers:custom_headers).value! nil end @@ -20487,8 +20578,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_host_name_binding_slot_with_http_info(resource_group_name, name, slot, host_name, custom_headers = nil) - delete_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers).value! + def delete_host_name_binding_slot_with_http_info(resource_group_name, name, slot, host_name, custom_headers:nil) + delete_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers:custom_headers).value! end # @@ -20507,7 +20598,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers = nil) + def delete_host_name_binding_slot_async(resource_group_name, name, slot, host_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -20520,6 +20611,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -20570,8 +20662,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HybridConnection] operation results. # - def get_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers = nil) - response = get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers).value! + def get_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) + response = get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -20591,8 +20683,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers = nil) - get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers).value! + def get_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) + get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! end # @@ -20611,7 +20703,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers = nil) + def get_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -20625,6 +20717,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -20687,8 +20780,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HybridConnection] operation results. # - def create_or_update_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers = nil) - response = create_or_update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers).value! + def create_or_update_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:nil) + response = create_or_update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -20710,8 +20803,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers = nil) - create_or_update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers).value! + def create_or_update_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:nil) + create_or_update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:custom_headers).value! end # @@ -20732,7 +20825,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers = nil) + def create_or_update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -20747,7 +20840,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -20815,8 +20907,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers = nil) - response = delete_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers).value! + def delete_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) + response = delete_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! nil end @@ -20836,8 +20928,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers = nil) - delete_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers).value! + def delete_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) + delete_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! end # @@ -20856,7 +20948,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers = nil) + def delete_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -20870,6 +20962,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -20922,8 +21015,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HybridConnection] operation results. # - def update_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers = nil) - response = update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers).value! + def update_hybrid_connection_slot(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:nil) + response = update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -20945,8 +21038,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers = nil) - update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers).value! + def update_hybrid_connection_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:nil) + update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:custom_headers).value! end # @@ -20967,7 +21060,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers = nil) + def update_hybrid_connection_slot_async(resource_group_name, name, namespace_name, relay_name, connection_envelope, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -20982,7 +21075,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -21051,8 +21143,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HybridConnectionKey] operation results. # - def list_hybrid_connection_keys_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers = nil) - response = list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers).value! + def list_hybrid_connection_keys_slot(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) + response = list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -21072,8 +21164,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_hybrid_connection_keys_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers = nil) - list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers).value! + def list_hybrid_connection_keys_slot_with_http_info(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) + list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:custom_headers).value! end # @@ -21092,7 +21184,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers = nil) + def list_hybrid_connection_keys_slot_async(resource_group_name, name, namespace_name, relay_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -21106,6 +21198,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -21164,8 +21257,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HybridConnection] operation results. # - def list_hybrid_connections_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_hybrid_connections_slot(resource_group_name, name, slot, custom_headers:nil) + response = list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -21183,8 +21276,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_hybrid_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_hybrid_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -21201,7 +21294,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_hybrid_connections_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -21213,6 +21306,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -21274,8 +21368,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RelayServiceConnectionEntity] operation results. # - def list_relay_service_connections_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_relay_service_connections_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_relay_service_connections_slot(resource_group_name, name, slot, custom_headers:nil) + response = list_relay_service_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -21296,8 +21390,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_relay_service_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_relay_service_connections_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_relay_service_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_relay_service_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -21317,7 +21411,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_relay_service_connections_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_relay_service_connections_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -21329,6 +21423,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -21389,8 +21484,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RelayServiceConnectionEntity] operation results. # - def get_relay_service_connection_slot(resource_group_name, name, entity_name, slot, custom_headers = nil) - response = get_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers).value! + def get_relay_service_connection_slot(resource_group_name, name, entity_name, slot, custom_headers:nil) + response = get_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -21410,8 +21505,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, slot, custom_headers = nil) - get_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers).value! + def get_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, slot, custom_headers:nil) + get_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers:custom_headers).value! end # @@ -21430,7 +21525,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers = nil) + def get_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -21443,6 +21538,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -21507,8 +21603,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RelayServiceConnectionEntity] operation results. # - def create_or_update_relay_service_connection_slot(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers = nil) - response = create_or_update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers).value! + def create_or_update_relay_service_connection_slot(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:nil) + response = create_or_update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -21532,8 +21628,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers = nil) - create_or_update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers).value! + def create_or_update_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:nil) + create_or_update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:custom_headers).value! end # @@ -21556,7 +21652,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers = nil) + def create_or_update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -21570,7 +21666,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -21638,8 +21733,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_relay_service_connection_slot(resource_group_name, name, entity_name, slot, custom_headers = nil) - response = delete_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers).value! + def delete_relay_service_connection_slot(resource_group_name, name, entity_name, slot, custom_headers:nil) + response = delete_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers:custom_headers).value! nil end @@ -21659,8 +21754,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, slot, custom_headers = nil) - delete_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers).value! + def delete_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, slot, custom_headers:nil) + delete_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers:custom_headers).value! end # @@ -21679,7 +21774,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers = nil) + def delete_relay_service_connection_slot_async(resource_group_name, name, entity_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -21692,6 +21787,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -21746,8 +21842,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RelayServiceConnectionEntity] operation results. # - def update_relay_service_connection_slot(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers = nil) - response = update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers).value! + def update_relay_service_connection_slot(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:nil) + response = update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -21771,8 +21867,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers = nil) - update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers).value! + def update_relay_service_connection_slot_with_http_info(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:nil) + update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:custom_headers).value! end # @@ -21795,7 +21891,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers = nil) + def update_relay_service_connection_slot_async(resource_group_name, name, entity_name, connection_envelope, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -21809,7 +21905,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -21877,8 +21972,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_instance_identifiers_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_instance_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_instance_identifiers_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_instance_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -21897,8 +21992,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_identifiers_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_instance_identifiers_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_instance_identifiers_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_instance_identifiers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -21916,7 +22011,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_identifiers_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_instance_identifiers_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -21928,6 +22023,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -21988,8 +22084,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def get_instance_ms_deploy_status_slot(resource_group_name, name, slot, instance_id, custom_headers = nil) - response = get_instance_ms_deploy_status_slot_async(resource_group_name, name, slot, instance_id, custom_headers).value! + def get_instance_ms_deploy_status_slot(resource_group_name, name, slot, instance_id, custom_headers:nil) + response = get_instance_ms_deploy_status_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -22009,8 +22105,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_ms_deploy_status_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers = nil) - get_instance_ms_deploy_status_slot_async(resource_group_name, name, slot, instance_id, custom_headers).value! + def get_instance_ms_deploy_status_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers:nil) + get_instance_ms_deploy_status_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! end # @@ -22029,7 +22125,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_ms_deploy_status_slot_async(resource_group_name, name, slot, instance_id, custom_headers = nil) + def get_instance_ms_deploy_status_slot_async(resource_group_name, name, slot, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -22042,6 +22138,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -22103,8 +22200,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def create_instance_msdeploy_operation_slot(resource_group_name, name, slot, instance_id, msdeploy, custom_headers = nil) - response = create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers).value! + def create_instance_msdeploy_operation_slot(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:nil) + response = create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -22122,9 +22219,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers = nil) + def create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:nil) # Send request - promise = begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers) + promise = begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -22156,8 +22253,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployLog] operation results. # - def get_instance_msdeploy_log_slot(resource_group_name, name, slot, instance_id, custom_headers = nil) - response = get_instance_msdeploy_log_slot_async(resource_group_name, name, slot, instance_id, custom_headers).value! + def get_instance_msdeploy_log_slot(resource_group_name, name, slot, instance_id, custom_headers:nil) + response = get_instance_msdeploy_log_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -22177,8 +22274,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_msdeploy_log_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers = nil) - get_instance_msdeploy_log_slot_async(resource_group_name, name, slot, instance_id, custom_headers).value! + def get_instance_msdeploy_log_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers:nil) + get_instance_msdeploy_log_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! end # @@ -22197,7 +22294,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_msdeploy_log_slot_async(resource_group_name, name, slot, instance_id, custom_headers = nil) + def get_instance_msdeploy_log_slot_async(resource_group_name, name, slot, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -22210,6 +22307,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -22274,8 +22372,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_instance_processes_slot(resource_group_name, name, slot, instance_id, custom_headers = nil) - first_page = list_instance_processes_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers) + def list_instance_processes_slot(resource_group_name, name, slot, instance_id, custom_headers:nil) + first_page = list_instance_processes_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers:custom_headers) first_page.get_all_items end @@ -22299,8 +22397,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_processes_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers = nil) - list_instance_processes_slot_async(resource_group_name, name, slot, instance_id, custom_headers).value! + def list_instance_processes_slot_with_http_info(resource_group_name, name, slot, instance_id, custom_headers:nil) + list_instance_processes_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! end # @@ -22323,7 +22421,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_processes_slot_async(resource_group_name, name, slot, instance_id, custom_headers = nil) + def list_instance_processes_slot_async(resource_group_name, name, slot, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -22336,6 +22434,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -22401,8 +22500,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessInfo] operation results. # - def get_instance_process_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - response = get_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers).value! + def get_instance_process_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + response = get_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -22427,8 +22526,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_process_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - get_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers).value! + def get_instance_process_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + get_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! end # @@ -22452,7 +22551,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) + def get_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -22466,6 +22565,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -22530,8 +22630,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_instance_process_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - response = delete_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers).value! + def delete_instance_process_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + response = delete_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! nil end @@ -22556,8 +22656,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_instance_process_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - delete_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers).value! + def delete_instance_process_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + delete_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! end # @@ -22581,7 +22681,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) + def delete_instance_process_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -22595,6 +22695,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -22650,8 +22751,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Object] operation results. # - def get_instance_process_dump_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - response = get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers).value! + def get_instance_process_dump_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + response = get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -22676,8 +22777,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_process_dump_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers).value! + def get_instance_process_dump_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! end # @@ -22701,7 +22802,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) + def get_instance_process_dump_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -22715,6 +22816,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -22770,8 +22872,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_instance_process_modules_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - first_page = list_instance_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers) + def list_instance_process_modules_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + first_page = list_instance_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers) first_page.get_all_items end @@ -22796,8 +22898,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_process_modules_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - list_instance_process_modules_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers).value! + def list_instance_process_modules_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + list_instance_process_modules_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! end # @@ -22821,7 +22923,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_process_modules_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) + def list_instance_process_modules_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -22835,6 +22937,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -22902,8 +23005,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessModuleInfo] operation results. # - def get_instance_process_module_slot(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers = nil) - response = get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers).value! + def get_instance_process_module_slot(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers:nil) + response = get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -22930,8 +23033,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers = nil) - get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers).value! + def get_instance_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers:nil) + get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers:custom_headers).value! end # @@ -22957,7 +23060,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers = nil) + def get_instance_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, instance_id, base_address1, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -22973,6 +23076,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -23038,8 +23142,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_instance_process_threads_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - first_page = list_instance_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers) + def list_instance_process_threads_slot(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + first_page = list_instance_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers) first_page.get_all_items end @@ -23064,8 +23168,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_process_threads_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - list_instance_process_threads_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers).value! + def list_instance_process_threads_slot_with_http_info(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + list_instance_process_threads_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! end # @@ -23089,7 +23193,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_process_threads_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) + def list_instance_process_threads_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -23103,6 +23207,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -23169,8 +23274,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessThreadInfo] operation results. # - def get_instance_process_thread_slot(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers = nil) - response = get_instance_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers).value! + def get_instance_process_thread_slot(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers:nil) + response = get_instance_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -23196,8 +23301,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_instance_process_thread_slot_with_http_info(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers = nil) - get_instance_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers).value! + def get_instance_process_thread_slot_with_http_info(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers:nil) + get_instance_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers:custom_headers).value! end # @@ -23222,7 +23327,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_instance_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers = nil) + def get_instance_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, instance_id, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -23237,6 +23342,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -23296,8 +23402,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteCloneability] operation results. # - def is_cloneable_slot(resource_group_name, name, slot, custom_headers = nil) - response = is_cloneable_slot_async(resource_group_name, name, slot, custom_headers).value! + def is_cloneable_slot(resource_group_name, name, slot, custom_headers:nil) + response = is_cloneable_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -23316,8 +23422,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def is_cloneable_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - is_cloneable_slot_async(resource_group_name, name, slot, custom_headers).value! + def is_cloneable_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + is_cloneable_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -23335,7 +23441,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def is_cloneable_slot_async(resource_group_name, name, slot, custom_headers = nil) + def is_cloneable_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -23347,6 +23453,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -23406,8 +23513,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionSecrets] operation results. # - def list_sync_function_triggers_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_sync_function_triggers_slot(resource_group_name, name, slot, custom_headers:nil) + response = list_sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -23426,8 +23533,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_sync_function_triggers_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_sync_function_triggers_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -23445,7 +23552,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -23457,6 +23564,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -23516,8 +23624,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_metric_definitions_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_metric_definitions_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_metric_definitions_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_metric_definitions_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -23536,8 +23644,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_definitions_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_metric_definitions_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_metric_definitions_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_metric_definitions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -23555,7 +23663,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definitions_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_metric_definitions_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -23567,6 +23675,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -23632,8 +23741,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_metrics_slot(resource_group_name, name, slot, details = nil, filter = nil, custom_headers = nil) - first_page = list_metrics_slot_as_lazy(resource_group_name, name, slot, details, filter, custom_headers) + def list_metrics_slot(resource_group_name, name, slot, details:nil, filter:nil, custom_headers:nil) + first_page = list_metrics_slot_as_lazy(resource_group_name, name, slot, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -23658,8 +23767,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_slot_with_http_info(resource_group_name, name, slot, details = nil, filter = nil, custom_headers = nil) - list_metrics_slot_async(resource_group_name, name, slot, details, filter, custom_headers).value! + def list_metrics_slot_with_http_info(resource_group_name, name, slot, details:nil, filter:nil, custom_headers:nil) + list_metrics_slot_async(resource_group_name, name, slot, details:details, filter:filter, custom_headers:custom_headers).value! end # @@ -23683,7 +23792,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_slot_async(resource_group_name, name, slot, details = nil, filter = nil, custom_headers = nil) + def list_metrics_slot_async(resource_group_name, name, slot, details:nil, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -23695,6 +23804,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -23756,8 +23866,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MigrateMySqlStatus] operation results. # - def get_migrate_my_sql_status_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_migrate_my_sql_status_slot(resource_group_name, name, slot, custom_headers:nil) + response = get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -23777,8 +23887,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_migrate_my_sql_status_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_migrate_my_sql_status_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -23797,7 +23907,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_migrate_my_sql_status_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -23809,6 +23919,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -23870,8 +23981,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [NetworkFeatures] operation results. # - def list_network_features_slot(resource_group_name, name, view, slot, custom_headers = nil) - response = list_network_features_slot_async(resource_group_name, name, view, slot, custom_headers).value! + def list_network_features_slot(resource_group_name, name, view, slot, custom_headers:nil) + response = list_network_features_slot_async(resource_group_name, name, view, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -23892,8 +24003,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_network_features_slot_with_http_info(resource_group_name, name, view, slot, custom_headers = nil) - list_network_features_slot_async(resource_group_name, name, view, slot, custom_headers).value! + def list_network_features_slot_with_http_info(resource_group_name, name, view, slot, custom_headers:nil) + list_network_features_slot_async(resource_group_name, name, view, slot, custom_headers:custom_headers).value! end # @@ -23913,7 +24024,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_network_features_slot_async(resource_group_name, name, view, slot, custom_headers = nil) + def list_network_features_slot_async(resource_group_name, name, view, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -23926,6 +24037,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -23989,8 +24101,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [String] operation results. # - def start_web_site_network_trace_slot(resource_group_name, name, slot, duration_in_seconds = nil, max_frame_length = nil, sas_url = nil, custom_headers = nil) - response = start_web_site_network_trace_slot_async(resource_group_name, name, slot, duration_in_seconds, max_frame_length, sas_url, custom_headers).value! + def start_web_site_network_trace_slot(resource_group_name, name, slot, duration_in_seconds:nil, max_frame_length:nil, sas_url:nil, custom_headers:nil) + response = start_web_site_network_trace_slot_async(resource_group_name, name, slot, duration_in_seconds:duration_in_seconds, max_frame_length:max_frame_length, sas_url:sas_url, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -24013,8 +24125,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def start_web_site_network_trace_slot_with_http_info(resource_group_name, name, slot, duration_in_seconds = nil, max_frame_length = nil, sas_url = nil, custom_headers = nil) - start_web_site_network_trace_slot_async(resource_group_name, name, slot, duration_in_seconds, max_frame_length, sas_url, custom_headers).value! + def start_web_site_network_trace_slot_with_http_info(resource_group_name, name, slot, duration_in_seconds:nil, max_frame_length:nil, sas_url:nil, custom_headers:nil) + start_web_site_network_trace_slot_async(resource_group_name, name, slot, duration_in_seconds:duration_in_seconds, max_frame_length:max_frame_length, sas_url:sas_url, custom_headers:custom_headers).value! end # @@ -24036,7 +24148,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def start_web_site_network_trace_slot_async(resource_group_name, name, slot, duration_in_seconds = nil, max_frame_length = nil, sas_url = nil, custom_headers = nil) + def start_web_site_network_trace_slot_async(resource_group_name, name, slot, duration_in_seconds:nil, max_frame_length:nil, sas_url:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -24048,6 +24160,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -24113,8 +24226,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [String] operation results. # - def stop_web_site_network_trace_slot(resource_group_name, name, slot, custom_headers = nil) - response = stop_web_site_network_trace_slot_async(resource_group_name, name, slot, custom_headers).value! + def stop_web_site_network_trace_slot(resource_group_name, name, slot, custom_headers:nil) + response = stop_web_site_network_trace_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -24132,8 +24245,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_web_site_network_trace_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - stop_web_site_network_trace_slot_async(resource_group_name, name, slot, custom_headers).value! + def stop_web_site_network_trace_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + stop_web_site_network_trace_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -24150,7 +24263,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_web_site_network_trace_slot_async(resource_group_name, name, slot, custom_headers = nil) + def stop_web_site_network_trace_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -24162,6 +24275,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -24229,8 +24343,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def generate_new_site_publishing_password_slot(resource_group_name, name, slot, custom_headers = nil) - response = generate_new_site_publishing_password_slot_async(resource_group_name, name, slot, custom_headers).value! + def generate_new_site_publishing_password_slot(resource_group_name, name, slot, custom_headers:nil) + response = generate_new_site_publishing_password_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end @@ -24251,8 +24365,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_new_site_publishing_password_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - generate_new_site_publishing_password_slot_async(resource_group_name, name, slot, custom_headers).value! + def generate_new_site_publishing_password_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + generate_new_site_publishing_password_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -24272,7 +24386,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_new_site_publishing_password_slot_async(resource_group_name, name, slot, custom_headers = nil) + def generate_new_site_publishing_password_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -24284,6 +24398,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -24337,8 +24452,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_perf_mon_counters_slot(resource_group_name, name, slot, filter = nil, custom_headers = nil) - first_page = list_perf_mon_counters_slot_as_lazy(resource_group_name, name, slot, filter, custom_headers) + def list_perf_mon_counters_slot(resource_group_name, name, slot, filter:nil, custom_headers:nil) + first_page = list_perf_mon_counters_slot_as_lazy(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -24361,8 +24476,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_perf_mon_counters_slot_with_http_info(resource_group_name, name, slot, filter = nil, custom_headers = nil) - list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter, custom_headers).value! + def list_perf_mon_counters_slot_with_http_info(resource_group_name, name, slot, filter:nil, custom_headers:nil) + list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers).value! end # @@ -24384,7 +24499,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter = nil, custom_headers = nil) + def list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -24396,6 +24511,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -24456,8 +24572,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SitePhpErrorLogFlag] operation results. # - def get_site_php_error_log_flag_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_site_php_error_log_flag_slot(resource_group_name, name, slot, custom_headers:nil) + response = get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -24476,8 +24592,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_site_php_error_log_flag_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_site_php_error_log_flag_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -24495,7 +24611,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_site_php_error_log_flag_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -24507,6 +24623,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -24566,8 +24683,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PremierAddOn] operation results. # - def list_premier_add_ons_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_premier_add_ons_slot(resource_group_name, name, slot, custom_headers:nil) + response = list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -24586,8 +24703,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_premier_add_ons_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_premier_add_ons_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -24605,7 +24722,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_premier_add_ons_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -24617,6 +24734,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -24677,8 +24795,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PremierAddOn] operation results. # - def get_premier_add_on_slot(resource_group_name, name, premier_add_on_name, slot, custom_headers = nil) - response = get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers).value! + def get_premier_add_on_slot(resource_group_name, name, premier_add_on_name, slot, custom_headers:nil) + response = get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -24698,8 +24816,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, slot, custom_headers = nil) - get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers).value! + def get_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, slot, custom_headers:nil) + get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers:custom_headers).value! end # @@ -24718,7 +24836,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers = nil) + def get_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -24731,6 +24849,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -24793,8 +24912,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PremierAddOn] operation results. # - def add_premier_add_on_slot(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers = nil) - response = add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers).value! + def add_premier_add_on_slot(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers:nil) + response = add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -24816,8 +24935,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def add_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers = nil) - add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers).value! + def add_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers:nil) + add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers:custom_headers).value! end # @@ -24838,7 +24957,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers = nil) + def add_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, premier_add_on, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -24852,7 +24971,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -24920,8 +25038,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_premier_add_on_slot(resource_group_name, name, premier_add_on_name, slot, custom_headers = nil) - response = delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers).value! + def delete_premier_add_on_slot(resource_group_name, name, premier_add_on_name, slot, custom_headers:nil) + response = delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers:custom_headers).value! nil end @@ -24941,8 +25059,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, slot, custom_headers = nil) - delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers).value! + def delete_premier_add_on_slot_with_http_info(resource_group_name, name, premier_add_on_name, slot, custom_headers:nil) + delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers:custom_headers).value! end # @@ -24961,7 +25079,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers = nil) + def delete_premier_add_on_slot_async(resource_group_name, name, premier_add_on_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -24974,6 +25092,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -25025,8 +25144,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_processes_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_processes_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_processes_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_processes_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -25047,8 +25166,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_processes_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_processes_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_processes_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_processes_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -25068,7 +25187,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_processes_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_processes_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -25080,6 +25199,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -25142,8 +25262,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessInfo] operation results. # - def get_process_slot(resource_group_name, name, process_id, slot, custom_headers = nil) - response = get_process_slot_async(resource_group_name, name, process_id, slot, custom_headers).value! + def get_process_slot(resource_group_name, name, process_id, slot, custom_headers:nil) + response = get_process_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -25165,8 +25285,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_process_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers = nil) - get_process_slot_async(resource_group_name, name, process_id, slot, custom_headers).value! + def get_process_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers:nil) + get_process_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! end # @@ -25187,7 +25307,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_process_slot_async(resource_group_name, name, process_id, slot, custom_headers = nil) + def get_process_slot_async(resource_group_name, name, process_id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -25200,6 +25320,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -25261,8 +25382,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_process_slot(resource_group_name, name, process_id, slot, custom_headers = nil) - response = delete_process_slot_async(resource_group_name, name, process_id, slot, custom_headers).value! + def delete_process_slot(resource_group_name, name, process_id, slot, custom_headers:nil) + response = delete_process_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! nil end @@ -25284,8 +25405,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_process_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers = nil) - delete_process_slot_async(resource_group_name, name, process_id, slot, custom_headers).value! + def delete_process_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers:nil) + delete_process_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! end # @@ -25306,7 +25427,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_process_slot_async(resource_group_name, name, process_id, slot, custom_headers = nil) + def delete_process_slot_async(resource_group_name, name, process_id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -25319,6 +25440,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -25371,8 +25493,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Object] operation results. # - def get_process_dump_slot(resource_group_name, name, process_id, slot, custom_headers = nil) - response = get_process_dump_slot_async(resource_group_name, name, process_id, slot, custom_headers).value! + def get_process_dump_slot(resource_group_name, name, process_id, slot, custom_headers:nil) + response = get_process_dump_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -25394,8 +25516,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_process_dump_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers = nil) - get_process_dump_slot_async(resource_group_name, name, process_id, slot, custom_headers).value! + def get_process_dump_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers:nil) + get_process_dump_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! end # @@ -25416,7 +25538,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_process_dump_slot_async(resource_group_name, name, process_id, slot, custom_headers = nil) + def get_process_dump_slot_async(resource_group_name, name, process_id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -25429,6 +25551,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -25481,8 +25604,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_process_modules_slot(resource_group_name, name, process_id, slot, custom_headers = nil) - first_page = list_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers) + def list_process_modules_slot(resource_group_name, name, process_id, slot, custom_headers:nil) + first_page = list_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -25504,8 +25627,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_process_modules_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers = nil) - list_process_modules_slot_async(resource_group_name, name, process_id, slot, custom_headers).value! + def list_process_modules_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers:nil) + list_process_modules_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! end # @@ -25526,7 +25649,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_process_modules_slot_async(resource_group_name, name, process_id, slot, custom_headers = nil) + def list_process_modules_slot_async(resource_group_name, name, process_id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -25539,6 +25662,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -25603,8 +25727,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessModuleInfo] operation results. # - def get_process_module_slot(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers = nil) - response = get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers).value! + def get_process_module_slot(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers:nil) + response = get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -25628,8 +25752,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers = nil) - get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers).value! + def get_process_module_slot_with_http_info(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers:nil) + get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers:custom_headers).value! end # @@ -25652,7 +25776,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers = nil) + def get_process_module_slot_async(resource_group_name, name, process_id, base_address, slot, base_address1, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -25667,6 +25791,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -25729,8 +25854,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_process_threads_slot(resource_group_name, name, process_id, slot, custom_headers = nil) - first_page = list_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers) + def list_process_threads_slot(resource_group_name, name, process_id, slot, custom_headers:nil) + first_page = list_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -25752,8 +25877,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_process_threads_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers = nil) - list_process_threads_slot_async(resource_group_name, name, process_id, slot, custom_headers).value! + def list_process_threads_slot_with_http_info(resource_group_name, name, process_id, slot, custom_headers:nil) + list_process_threads_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! end # @@ -25774,7 +25899,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_process_threads_slot_async(resource_group_name, name, process_id, slot, custom_headers = nil) + def list_process_threads_slot_async(resource_group_name, name, process_id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -25787,6 +25912,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -25850,8 +25976,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessThreadInfo] operation results. # - def get_process_thread_slot(resource_group_name, name, process_id, thread_id, slot, custom_headers = nil) - response = get_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, custom_headers).value! + def get_process_thread_slot(resource_group_name, name, process_id, thread_id, slot, custom_headers:nil) + response = get_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -25874,8 +26000,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_process_thread_slot_with_http_info(resource_group_name, name, process_id, thread_id, slot, custom_headers = nil) - get_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, custom_headers).value! + def get_process_thread_slot_with_http_info(resource_group_name, name, process_id, thread_id, slot, custom_headers:nil) + get_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, custom_headers:custom_headers).value! end # @@ -25897,7 +26023,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, custom_headers = nil) + def get_process_thread_slot_async(resource_group_name, name, process_id, thread_id, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -25911,6 +26037,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -25970,8 +26097,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_public_certificates_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_public_certificates_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_public_certificates_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_public_certificates_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -25990,8 +26117,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_public_certificates_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_public_certificates_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_public_certificates_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_public_certificates_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -26009,7 +26136,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_public_certificates_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_public_certificates_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -26021,6 +26148,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -26083,8 +26211,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PublicCertificate] operation results. # - def get_public_certificate_slot(resource_group_name, name, slot, public_certificate_name, custom_headers = nil) - response = get_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers).value! + def get_public_certificate_slot(resource_group_name, name, slot, public_certificate_name, custom_headers:nil) + response = get_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -26106,8 +26234,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_public_certificate_slot_with_http_info(resource_group_name, name, slot, public_certificate_name, custom_headers = nil) - get_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers).value! + def get_public_certificate_slot_with_http_info(resource_group_name, name, slot, public_certificate_name, custom_headers:nil) + get_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers:custom_headers).value! end # @@ -26128,7 +26256,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers = nil) + def get_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -26141,6 +26269,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -26203,8 +26332,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PublicCertificate] operation results. # - def create_or_update_public_certificate_slot(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers = nil) - response = create_or_update_public_certificate_slot_async(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers).value! + def create_or_update_public_certificate_slot(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers:nil) + response = create_or_update_public_certificate_slot_async(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -26226,8 +26355,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_public_certificate_slot_with_http_info(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers = nil) - create_or_update_public_certificate_slot_async(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers).value! + def create_or_update_public_certificate_slot_with_http_info(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers:nil) + create_or_update_public_certificate_slot_async(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers:custom_headers).value! end # @@ -26248,7 +26377,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_public_certificate_slot_async(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers = nil) + def create_or_update_public_certificate_slot_async(resource_group_name, name, public_certificate_name, public_certificate, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -26262,7 +26391,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -26330,8 +26458,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_public_certificate_slot(resource_group_name, name, slot, public_certificate_name, custom_headers = nil) - response = delete_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers).value! + def delete_public_certificate_slot(resource_group_name, name, slot, public_certificate_name, custom_headers:nil) + response = delete_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers:custom_headers).value! nil end @@ -26351,8 +26479,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_public_certificate_slot_with_http_info(resource_group_name, name, slot, public_certificate_name, custom_headers = nil) - delete_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers).value! + def delete_public_certificate_slot_with_http_info(resource_group_name, name, slot, public_certificate_name, custom_headers:nil) + delete_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers:custom_headers).value! end # @@ -26371,7 +26499,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers = nil) + def delete_public_certificate_slot_async(resource_group_name, name, slot, public_certificate_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -26384,6 +26512,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -26436,8 +26565,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [NOT_IMPLEMENTED] operation results. # - def list_publishing_profile_xml_with_secrets_slot(resource_group_name, name, publishing_profile_options, slot, custom_headers = nil) - response = list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, name, publishing_profile_options, slot, custom_headers).value! + def list_publishing_profile_xml_with_secrets_slot(resource_group_name, name, publishing_profile_options, slot, custom_headers:nil) + response = list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, name, publishing_profile_options, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -26459,8 +26588,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_publishing_profile_xml_with_secrets_slot_with_http_info(resource_group_name, name, publishing_profile_options, slot, custom_headers = nil) - list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, name, publishing_profile_options, slot, custom_headers).value! + def list_publishing_profile_xml_with_secrets_slot_with_http_info(resource_group_name, name, publishing_profile_options, slot, custom_headers:nil) + list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, name, publishing_profile_options, slot, custom_headers:custom_headers).value! end # @@ -26481,7 +26610,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, name, publishing_profile_options, slot, custom_headers = nil) + def list_publishing_profile_xml_with_secrets_slot_async(resource_group_name, name, publishing_profile_options, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -26494,7 +26623,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -26570,8 +26698,8 @@ module Azure::Web::Mgmt::V2016_08_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def recover_slot(resource_group_name, name, recovery_entity, slot, custom_headers = nil) - response = recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers).value! + def recover_slot(resource_group_name, name, recovery_entity, slot, custom_headers:nil) + response = recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers:custom_headers).value! nil end @@ -26590,9 +26718,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers = nil) + def recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers:nil) # Send request - promise = begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers) + promise = begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -26622,8 +26750,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def reset_slot_configuration_slot(resource_group_name, name, slot, custom_headers = nil) - response = reset_slot_configuration_slot_async(resource_group_name, name, slot, custom_headers).value! + def reset_slot_configuration_slot(resource_group_name, name, slot, custom_headers:nil) + response = reset_slot_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end @@ -26644,8 +26772,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def reset_slot_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - reset_slot_configuration_slot_async(resource_group_name, name, slot, custom_headers).value! + def reset_slot_configuration_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + reset_slot_configuration_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -26665,7 +26793,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def reset_slot_configuration_slot_async(resource_group_name, name, slot, custom_headers = nil) + def reset_slot_configuration_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -26677,6 +26805,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -26731,8 +26860,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def restart_slot(resource_group_name, name, slot, soft_restart = nil, synchronous = nil, custom_headers = nil) - response = restart_slot_async(resource_group_name, name, slot, soft_restart, synchronous, custom_headers).value! + def restart_slot(resource_group_name, name, slot, soft_restart:nil, synchronous:nil, custom_headers:nil) + response = restart_slot_async(resource_group_name, name, slot, soft_restart:soft_restart, synchronous:synchronous, custom_headers:custom_headers).value! nil end @@ -26757,8 +26886,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def restart_slot_with_http_info(resource_group_name, name, slot, soft_restart = nil, synchronous = nil, custom_headers = nil) - restart_slot_async(resource_group_name, name, slot, soft_restart, synchronous, custom_headers).value! + def restart_slot_with_http_info(resource_group_name, name, slot, soft_restart:nil, synchronous:nil, custom_headers:nil) + restart_slot_async(resource_group_name, name, slot, soft_restart:soft_restart, synchronous:synchronous, custom_headers:custom_headers).value! end # @@ -26782,7 +26911,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def restart_slot_async(resource_group_name, name, slot, soft_restart = nil, synchronous = nil, custom_headers = nil) + def restart_slot_async(resource_group_name, name, slot, soft_restart:nil, synchronous:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -26794,6 +26923,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -26843,8 +26973,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_site_extensions_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_site_extensions_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_site_extensions_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_site_extensions_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -26863,8 +26993,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_site_extensions_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_site_extensions_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_site_extensions_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_site_extensions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -26882,7 +27012,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_site_extensions_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_site_extensions_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -26894,6 +27024,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -26957,8 +27088,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteExtensionInfo] operation results. # - def get_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - response = get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def get_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:nil) + response = get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -26981,8 +27112,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def get_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:nil) + get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:custom_headers).value! end # @@ -27004,7 +27135,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) + def get_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -27018,6 +27149,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -27079,8 +27211,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteExtensionInfo] operation results. # - def install_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - response = install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def install_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:nil) + response = install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -27098,9 +27230,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) + def install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:nil) # Send request - promise = begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers) + promise = begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -27132,8 +27264,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - response = delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def delete_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:nil) + response = delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:custom_headers).value! nil end @@ -27154,8 +27286,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def delete_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:nil) + delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:custom_headers).value! end # @@ -27175,7 +27307,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) + def delete_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -27189,6 +27321,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -27240,8 +27373,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_slot_differences_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) - first_page = list_slot_differences_slot_as_lazy(resource_group_name, name, slot_swap_entity, slot, custom_headers) + def list_slot_differences_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) + first_page = list_slot_differences_slot_as_lazy(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -27262,8 +27395,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_slot_differences_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) - list_slot_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers).value! + def list_slot_differences_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) + list_slot_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! end # @@ -27283,7 +27416,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_slot_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) + def list_slot_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -27296,7 +27429,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -27364,8 +27496,8 @@ module Azure::Web::Mgmt::V2016_08_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def swap_slot_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) - response = swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers).value! + def swap_slot_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) + response = swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! nil end @@ -27383,9 +27515,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) + def swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) # Send request - promise = begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers) + promise = begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -27413,8 +27545,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_snapshots_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_snapshots_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_snapshots_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_snapshots_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -27432,8 +27564,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_snapshots_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_snapshots_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_snapshots_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_snapshots_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -27450,7 +27582,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_snapshots_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_snapshots_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -27462,6 +27594,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -27521,8 +27654,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteSourceControl] operation results. # - def get_source_control_slot(resource_group_name, name, slot, custom_headers = nil) - response = get_source_control_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_source_control_slot(resource_group_name, name, slot, custom_headers:nil) + response = get_source_control_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -27541,8 +27674,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_source_control_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - get_source_control_slot_async(resource_group_name, name, slot, custom_headers).value! + def get_source_control_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + get_source_control_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -27560,7 +27693,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_source_control_slot_async(resource_group_name, name, slot, custom_headers = nil) + def get_source_control_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -27572,6 +27705,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -27633,8 +27767,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteSourceControl] operation results. # - def create_or_update_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers = nil) - response = create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers).value! + def create_or_update_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers:nil) + response = create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -27652,9 +27786,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers = nil) + def create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:nil) # Send request - promise = begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers) + promise = begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -27684,8 +27818,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_source_control_slot(resource_group_name, name, slot, custom_headers = nil) - response = delete_source_control_slot_async(resource_group_name, name, slot, custom_headers).value! + def delete_source_control_slot(resource_group_name, name, slot, custom_headers:nil) + response = delete_source_control_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end @@ -27704,8 +27838,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_source_control_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - delete_source_control_slot_async(resource_group_name, name, slot, custom_headers).value! + def delete_source_control_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + delete_source_control_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -27723,7 +27857,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_source_control_slot_async(resource_group_name, name, slot, custom_headers = nil) + def delete_source_control_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -27735,6 +27869,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -27783,8 +27918,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def start_slot(resource_group_name, name, slot, custom_headers = nil) - response = start_slot_async(resource_group_name, name, slot, custom_headers).value! + def start_slot(resource_group_name, name, slot, custom_headers:nil) + response = start_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end @@ -27803,8 +27938,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def start_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - start_slot_async(resource_group_name, name, slot, custom_headers).value! + def start_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + start_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -27822,7 +27957,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def start_slot_async(resource_group_name, name, slot, custom_headers = nil) + def start_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -27834,6 +27969,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -27882,8 +28018,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def stop_slot(resource_group_name, name, slot, custom_headers = nil) - response = stop_slot_async(resource_group_name, name, slot, custom_headers).value! + def stop_slot(resource_group_name, name, slot, custom_headers:nil) + response = stop_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end @@ -27902,8 +28038,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - stop_slot_async(resource_group_name, name, slot, custom_headers).value! + def stop_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + stop_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -27921,7 +28057,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_slot_async(resource_group_name, name, slot, custom_headers = nil) + def stop_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -27933,6 +28069,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -27981,8 +28118,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def sync_repository_slot(resource_group_name, name, slot, custom_headers = nil) - response = sync_repository_slot_async(resource_group_name, name, slot, custom_headers).value! + def sync_repository_slot(resource_group_name, name, slot, custom_headers:nil) + response = sync_repository_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end @@ -28001,8 +28138,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def sync_repository_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - sync_repository_slot_async(resource_group_name, name, slot, custom_headers).value! + def sync_repository_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + sync_repository_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -28020,7 +28157,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def sync_repository_slot_async(resource_group_name, name, slot, custom_headers = nil) + def sync_repository_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -28032,6 +28169,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -28080,8 +28218,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def sync_function_triggers_slot(resource_group_name, name, slot, custom_headers = nil) - response = sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers).value! + def sync_function_triggers_slot(resource_group_name, name, slot, custom_headers:nil) + response = sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! nil end @@ -28100,8 +28238,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def sync_function_triggers_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers).value! + def sync_function_triggers_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -28119,7 +28257,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers = nil) + def sync_function_triggers_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -28131,6 +28269,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -28180,8 +28319,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_triggered_web_jobs_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_triggered_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_triggered_web_jobs_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_triggered_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -28200,8 +28339,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_triggered_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_triggered_web_jobs_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_triggered_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_triggered_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -28219,7 +28358,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_triggered_web_jobs_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_triggered_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -28231,6 +28370,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -28292,8 +28432,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [TriggeredWebJob] operation results. # - def get_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = get_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def get_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + response = get_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -28314,8 +28454,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - get_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def get_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + get_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! end # @@ -28335,7 +28475,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def get_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -28349,6 +28489,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -28409,8 +28550,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = delete_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def delete_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + response = delete_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! nil end @@ -28431,8 +28572,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - delete_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def delete_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + delete_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! end # @@ -28452,7 +28593,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def delete_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -28466,6 +28607,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -28517,8 +28659,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_triggered_web_job_history_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - first_page = list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers) + def list_triggered_web_job_history_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + first_page = list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers) first_page.get_all_items end @@ -28539,8 +28681,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def list_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! end # @@ -28560,7 +28702,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -28574,6 +28716,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -28638,8 +28781,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [TriggeredJobHistory] operation results. # - def get_triggered_web_job_history_slot(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers = nil) - response = get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers).value! + def get_triggered_web_job_history_slot(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers:nil) + response = get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -28663,8 +28806,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers = nil) - get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers).value! + def get_triggered_web_job_history_slot_with_http_info(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers:nil) + get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers:custom_headers).value! end # @@ -28687,7 +28830,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers = nil) + def get_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, id, slot, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -28702,6 +28845,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -28762,8 +28906,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def run_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = run_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def run_triggered_web_job_slot(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + response = run_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! nil end @@ -28784,8 +28928,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def run_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - run_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def run_triggered_web_job_slot_with_http_info(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + run_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! end # @@ -28805,7 +28949,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def run_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) + def run_triggered_web_job_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -28819,6 +28963,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -28874,8 +29019,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_usages_slot(resource_group_name, name, slot, filter = nil, custom_headers = nil) - first_page = list_usages_slot_as_lazy(resource_group_name, name, slot, filter, custom_headers) + def list_usages_slot(resource_group_name, name, slot, filter:nil, custom_headers:nil) + first_page = list_usages_slot_as_lazy(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -28900,8 +29045,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usages_slot_with_http_info(resource_group_name, name, slot, filter = nil, custom_headers = nil) - list_usages_slot_async(resource_group_name, name, slot, filter, custom_headers).value! + def list_usages_slot_with_http_info(resource_group_name, name, slot, filter:nil, custom_headers:nil) + list_usages_slot_async(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers).value! end # @@ -28925,7 +29070,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usages_slot_async(resource_group_name, name, slot, filter = nil, custom_headers = nil) + def list_usages_slot_async(resource_group_name, name, slot, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -28937,6 +29082,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -28997,8 +29143,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_vnet_connections_slot(resource_group_name, name, slot, custom_headers = nil) - response = list_vnet_connections_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_vnet_connections_slot(resource_group_name, name, slot, custom_headers:nil) + response = list_vnet_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -29017,8 +29163,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_vnet_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_vnet_connections_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_vnet_connections_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_vnet_connections_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -29036,7 +29182,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_vnet_connections_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_vnet_connections_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -29048,6 +29194,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -29124,8 +29271,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetInfo] operation results. # - def get_vnet_connection_slot(resource_group_name, name, vnet_name, slot, custom_headers = nil) - response = get_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers).value! + def get_vnet_connection_slot(resource_group_name, name, vnet_name, slot, custom_headers:nil) + response = get_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -29145,8 +29292,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, slot, custom_headers = nil) - get_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers).value! + def get_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, slot, custom_headers:nil) + get_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers:custom_headers).value! end # @@ -29165,7 +29312,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers = nil) + def get_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -29178,6 +29325,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -29242,8 +29390,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetInfo] operation results. # - def create_or_update_vnet_connection_slot(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers = nil) - response = create_or_update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers).value! + def create_or_update_vnet_connection_slot(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:nil) + response = create_or_update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -29267,8 +29415,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers = nil) - create_or_update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers).value! + def create_or_update_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:nil) + create_or_update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:custom_headers).value! end # @@ -29291,7 +29439,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers = nil) + def create_or_update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -29305,7 +29453,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -29375,8 +29522,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_vnet_connection_slot(resource_group_name, name, vnet_name, slot, custom_headers = nil) - response = delete_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers).value! + def delete_vnet_connection_slot(resource_group_name, name, vnet_name, slot, custom_headers:nil) + response = delete_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers:custom_headers).value! nil end @@ -29398,8 +29545,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, slot, custom_headers = nil) - delete_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers).value! + def delete_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, slot, custom_headers:nil) + delete_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers:custom_headers).value! end # @@ -29420,7 +29567,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers = nil) + def delete_vnet_connection_slot_async(resource_group_name, name, vnet_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -29433,6 +29580,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -29487,8 +29635,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetInfo] operation results. # - def update_vnet_connection_slot(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers = nil) - response = update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers).value! + def update_vnet_connection_slot(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:nil) + response = update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -29512,8 +29660,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers = nil) - update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers).value! + def update_vnet_connection_slot_with_http_info(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:nil) + update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:custom_headers).value! end # @@ -29536,7 +29684,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers = nil) + def update_vnet_connection_slot_async(resource_group_name, name, vnet_name, connection_envelope, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -29550,7 +29698,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -29621,8 +29768,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetGateway] operation results. # - def get_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers = nil) - response = get_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers).value! + def get_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers:nil) + response = get_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -29644,8 +29791,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers = nil) - get_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers).value! + def get_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers:nil) + get_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers:custom_headers).value! end # @@ -29666,7 +29813,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers = nil) + def get_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -29680,6 +29827,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -29745,8 +29893,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetGateway] operation results. # - def create_or_update_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers = nil) - response = create_or_update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers).value! + def create_or_update_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:nil) + response = create_or_update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -29771,8 +29919,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers = nil) - create_or_update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers).value! + def create_or_update_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:nil) + create_or_update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:custom_headers).value! end # @@ -29796,7 +29944,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers = nil) + def create_or_update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -29811,7 +29959,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -29885,8 +30032,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetGateway] operation results. # - def update_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers = nil) - response = update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers).value! + def update_vnet_connection_gateway_slot(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:nil) + response = update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -29911,8 +30058,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers = nil) - update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers).value! + def update_vnet_connection_gateway_slot_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:nil) + update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:custom_headers).value! end # @@ -29936,7 +30083,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers = nil) + def update_vnet_connection_gateway_slot_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -29951,7 +30098,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -30019,8 +30165,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_web_jobs_slot(resource_group_name, name, slot, custom_headers = nil) - first_page = list_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers) + def list_web_jobs_slot(resource_group_name, name, slot, custom_headers:nil) + first_page = list_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:custom_headers) first_page.get_all_items end @@ -30039,8 +30185,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - list_web_jobs_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_web_jobs_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + list_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -30058,7 +30204,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_jobs_slot_async(resource_group_name, name, slot, custom_headers = nil) + def list_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -30070,6 +30216,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -30130,8 +30277,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [WebJob] operation results. # - def get_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers = nil) - response = get_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! + def get_web_job_slot(resource_group_name, name, web_job_name, slot, custom_headers:nil) + response = get_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -30151,8 +30298,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers = nil) - get_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers).value! + def get_web_job_slot_with_http_info(resource_group_name, name, web_job_name, slot, custom_headers:nil) + get_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:custom_headers).value! end # @@ -30171,7 +30318,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers = nil) + def get_web_job_slot_async(resource_group_name, name, web_job_name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -30184,6 +30331,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -30243,8 +30391,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_slot_differences_from_production(resource_group_name, name, slot_swap_entity, custom_headers = nil) - first_page = list_slot_differences_from_production_as_lazy(resource_group_name, name, slot_swap_entity, custom_headers) + def list_slot_differences_from_production(resource_group_name, name, slot_swap_entity, custom_headers:nil) + first_page = list_slot_differences_from_production_as_lazy(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers) first_page.get_all_items end @@ -30263,8 +30411,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_slot_differences_from_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers = nil) - list_slot_differences_from_production_async(resource_group_name, name, slot_swap_entity, custom_headers).value! + def list_slot_differences_from_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers:nil) + list_slot_differences_from_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! end # @@ -30282,7 +30430,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_slot_differences_from_production_async(resource_group_name, name, slot_swap_entity, custom_headers = nil) + def list_slot_differences_from_production_async(resource_group_name, name, slot_swap_entity, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -30294,7 +30442,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -30360,8 +30507,8 @@ module Azure::Web::Mgmt::V2016_08_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def swap_slot_with_production(resource_group_name, name, slot_swap_entity, custom_headers = nil) - response = swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers).value! + def swap_slot_with_production(resource_group_name, name, slot_swap_entity, custom_headers:nil) + response = swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! nil end @@ -30377,9 +30524,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers = nil) + def swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers:nil) # Send request - promise = begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers) + promise = begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -30406,8 +30553,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_snapshots(resource_group_name, name, custom_headers = nil) - first_page = list_snapshots_as_lazy(resource_group_name, name, custom_headers) + def list_snapshots(resource_group_name, name, custom_headers:nil) + first_page = list_snapshots_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -30424,8 +30571,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_snapshots_with_http_info(resource_group_name, name, custom_headers = nil) - list_snapshots_async(resource_group_name, name, custom_headers).value! + def list_snapshots_with_http_info(resource_group_name, name, custom_headers:nil) + list_snapshots_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -30441,7 +30588,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_snapshots_async(resource_group_name, name, custom_headers = nil) + def list_snapshots_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -30452,6 +30599,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -30509,8 +30657,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteSourceControl] operation results. # - def get_source_control(resource_group_name, name, custom_headers = nil) - response = get_source_control_async(resource_group_name, name, custom_headers).value! + def get_source_control(resource_group_name, name, custom_headers:nil) + response = get_source_control_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -30527,8 +30675,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_source_control_with_http_info(resource_group_name, name, custom_headers = nil) - get_source_control_async(resource_group_name, name, custom_headers).value! + def get_source_control_with_http_info(resource_group_name, name, custom_headers:nil) + get_source_control_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -30544,7 +30692,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_source_control_async(resource_group_name, name, custom_headers = nil) + def get_source_control_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -30555,6 +30703,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -30614,8 +30763,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteSourceControl] operation results. # - def create_or_update_source_control(resource_group_name, name, site_source_control, custom_headers = nil) - response = create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers).value! + def create_or_update_source_control(resource_group_name, name, site_source_control, custom_headers:nil) + response = create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -30631,9 +30780,9 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers = nil) + def create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers:nil) # Send request - promise = begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers) + promise = begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -30661,8 +30810,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_source_control(resource_group_name, name, custom_headers = nil) - response = delete_source_control_async(resource_group_name, name, custom_headers).value! + def delete_source_control(resource_group_name, name, custom_headers:nil) + response = delete_source_control_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -30679,8 +30828,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_source_control_with_http_info(resource_group_name, name, custom_headers = nil) - delete_source_control_async(resource_group_name, name, custom_headers).value! + def delete_source_control_with_http_info(resource_group_name, name, custom_headers:nil) + delete_source_control_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -30696,7 +30845,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_source_control_async(resource_group_name, name, custom_headers = nil) + def delete_source_control_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -30707,6 +30856,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -30753,8 +30903,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def start(resource_group_name, name, custom_headers = nil) - response = start_async(resource_group_name, name, custom_headers).value! + def start(resource_group_name, name, custom_headers:nil) + response = start_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -30771,8 +30921,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def start_with_http_info(resource_group_name, name, custom_headers = nil) - start_async(resource_group_name, name, custom_headers).value! + def start_with_http_info(resource_group_name, name, custom_headers:nil) + start_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -30788,7 +30938,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def start_async(resource_group_name, name, custom_headers = nil) + def start_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -30799,6 +30949,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -30845,8 +30996,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def stop(resource_group_name, name, custom_headers = nil) - response = stop_async(resource_group_name, name, custom_headers).value! + def stop(resource_group_name, name, custom_headers:nil) + response = stop_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -30863,8 +31014,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_with_http_info(resource_group_name, name, custom_headers = nil) - stop_async(resource_group_name, name, custom_headers).value! + def stop_with_http_info(resource_group_name, name, custom_headers:nil) + stop_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -30880,7 +31031,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_async(resource_group_name, name, custom_headers = nil) + def stop_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -30891,6 +31042,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -30937,8 +31089,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def sync_repository(resource_group_name, name, custom_headers = nil) - response = sync_repository_async(resource_group_name, name, custom_headers).value! + def sync_repository(resource_group_name, name, custom_headers:nil) + response = sync_repository_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -30955,8 +31107,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def sync_repository_with_http_info(resource_group_name, name, custom_headers = nil) - sync_repository_async(resource_group_name, name, custom_headers).value! + def sync_repository_with_http_info(resource_group_name, name, custom_headers:nil) + sync_repository_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -30972,7 +31124,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def sync_repository_async(resource_group_name, name, custom_headers = nil) + def sync_repository_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -30983,6 +31135,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -31029,8 +31182,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def sync_function_triggers(resource_group_name, name, custom_headers = nil) - response = sync_function_triggers_async(resource_group_name, name, custom_headers).value! + def sync_function_triggers(resource_group_name, name, custom_headers:nil) + response = sync_function_triggers_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -31047,8 +31200,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def sync_function_triggers_with_http_info(resource_group_name, name, custom_headers = nil) - sync_function_triggers_async(resource_group_name, name, custom_headers).value! + def sync_function_triggers_with_http_info(resource_group_name, name, custom_headers:nil) + sync_function_triggers_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -31064,7 +31217,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def sync_function_triggers_async(resource_group_name, name, custom_headers = nil) + def sync_function_triggers_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -31075,6 +31228,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -31122,8 +31276,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_triggered_web_jobs(resource_group_name, name, custom_headers = nil) - first_page = list_triggered_web_jobs_as_lazy(resource_group_name, name, custom_headers) + def list_triggered_web_jobs(resource_group_name, name, custom_headers:nil) + first_page = list_triggered_web_jobs_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -31140,8 +31294,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_triggered_web_jobs_with_http_info(resource_group_name, name, custom_headers = nil) - list_triggered_web_jobs_async(resource_group_name, name, custom_headers).value! + def list_triggered_web_jobs_with_http_info(resource_group_name, name, custom_headers:nil) + list_triggered_web_jobs_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -31157,7 +31311,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_triggered_web_jobs_async(resource_group_name, name, custom_headers = nil) + def list_triggered_web_jobs_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -31168,6 +31322,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -31227,8 +31382,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [TriggeredWebJob] operation results. # - def get_triggered_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = get_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def get_triggered_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + response = get_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -31247,8 +31402,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_triggered_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - get_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def get_triggered_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + get_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! end # @@ -31266,7 +31421,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def get_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -31279,6 +31434,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -31337,8 +31493,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_triggered_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = delete_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def delete_triggered_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + response = delete_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! nil end @@ -31357,8 +31513,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_triggered_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - delete_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def delete_triggered_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + delete_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! end # @@ -31376,7 +31532,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def delete_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -31389,6 +31545,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -31438,8 +31595,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_triggered_web_job_history(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - first_page = list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_id, web_job_name, custom_headers) + def list_triggered_web_job_history(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + first_page = list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers) first_page.get_all_items end @@ -31458,8 +31615,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - list_triggered_web_job_history_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def list_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + list_triggered_web_job_history_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! end # @@ -31477,7 +31634,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_triggered_web_job_history_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def list_triggered_web_job_history_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -31490,6 +31647,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -31552,8 +31710,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [TriggeredJobHistory] operation results. # - def get_triggered_web_job_history(resource_group_name, name, web_job_id, id, web_job_name, custom_headers = nil) - response = get_triggered_web_job_history_async(resource_group_name, name, web_job_id, id, web_job_name, custom_headers).value! + def get_triggered_web_job_history(resource_group_name, name, web_job_id, id, web_job_name, custom_headers:nil) + response = get_triggered_web_job_history_async(resource_group_name, name, web_job_id, id, web_job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -31575,8 +31733,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_id, id, web_job_name, custom_headers = nil) - get_triggered_web_job_history_async(resource_group_name, name, web_job_id, id, web_job_name, custom_headers).value! + def get_triggered_web_job_history_with_http_info(resource_group_name, name, web_job_id, id, web_job_name, custom_headers:nil) + get_triggered_web_job_history_async(resource_group_name, name, web_job_id, id, web_job_name, custom_headers:custom_headers).value! end # @@ -31597,7 +31755,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_triggered_web_job_history_async(resource_group_name, name, web_job_id, id, web_job_name, custom_headers = nil) + def get_triggered_web_job_history_async(resource_group_name, name, web_job_id, id, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -31611,6 +31769,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -31669,8 +31828,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def run_triggered_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = run_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def run_triggered_web_job(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + response = run_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! nil end @@ -31689,8 +31848,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def run_triggered_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - run_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def run_triggered_web_job_with_http_info(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + run_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! end # @@ -31708,7 +31867,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def run_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) + def run_triggered_web_job_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -31721,6 +31880,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -31774,8 +31934,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_usages(resource_group_name, name, filter = nil, custom_headers = nil) - first_page = list_usages_as_lazy(resource_group_name, name, filter, custom_headers) + def list_usages(resource_group_name, name, filter:nil, custom_headers:nil) + first_page = list_usages_as_lazy(resource_group_name, name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -31798,8 +31958,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usages_with_http_info(resource_group_name, name, filter = nil, custom_headers = nil) - list_usages_async(resource_group_name, name, filter, custom_headers).value! + def list_usages_with_http_info(resource_group_name, name, filter:nil, custom_headers:nil) + list_usages_async(resource_group_name, name, filter:filter, custom_headers:custom_headers).value! end # @@ -31821,7 +31981,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usages_async(resource_group_name, name, filter = nil, custom_headers = nil) + def list_usages_async(resource_group_name, name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -31832,6 +31992,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -31890,8 +32051,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_vnet_connections(resource_group_name, name, custom_headers = nil) - response = list_vnet_connections_async(resource_group_name, name, custom_headers).value! + def list_vnet_connections(resource_group_name, name, custom_headers:nil) + response = list_vnet_connections_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -31908,8 +32069,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_vnet_connections_with_http_info(resource_group_name, name, custom_headers = nil) - list_vnet_connections_async(resource_group_name, name, custom_headers).value! + def list_vnet_connections_with_http_info(resource_group_name, name, custom_headers:nil) + list_vnet_connections_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -31925,7 +32086,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_vnet_connections_async(resource_group_name, name, custom_headers = nil) + def list_vnet_connections_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -31936,6 +32097,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -32010,8 +32172,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetInfo] operation results. # - def get_vnet_connection(resource_group_name, name, vnet_name, custom_headers = nil) - response = get_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers).value! + def get_vnet_connection(resource_group_name, name, vnet_name, custom_headers:nil) + response = get_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -32029,8 +32191,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_vnet_connection_with_http_info(resource_group_name, name, vnet_name, custom_headers = nil) - get_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers).value! + def get_vnet_connection_with_http_info(resource_group_name, name, vnet_name, custom_headers:nil) + get_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! end # @@ -32047,7 +32209,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers = nil) + def get_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -32059,6 +32221,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -32121,8 +32284,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetInfo] operation results. # - def create_or_update_vnet_connection(resource_group_name, name, vnet_name, connection_envelope, custom_headers = nil) - response = create_or_update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers).value! + def create_or_update_vnet_connection(resource_group_name, name, vnet_name, connection_envelope, custom_headers:nil) + response = create_or_update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -32144,8 +32307,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_vnet_connection_with_http_info(resource_group_name, name, vnet_name, connection_envelope, custom_headers = nil) - create_or_update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers).value! + def create_or_update_vnet_connection_with_http_info(resource_group_name, name, vnet_name, connection_envelope, custom_headers:nil) + create_or_update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers:custom_headers).value! end # @@ -32166,7 +32329,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers = nil) + def create_or_update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -32179,7 +32342,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -32247,8 +32409,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def delete_vnet_connection(resource_group_name, name, vnet_name, custom_headers = nil) - response = delete_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers).value! + def delete_vnet_connection(resource_group_name, name, vnet_name, custom_headers:nil) + response = delete_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! nil end @@ -32268,8 +32430,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_vnet_connection_with_http_info(resource_group_name, name, vnet_name, custom_headers = nil) - delete_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers).value! + def delete_vnet_connection_with_http_info(resource_group_name, name, vnet_name, custom_headers:nil) + delete_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! end # @@ -32288,7 +32450,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers = nil) + def delete_vnet_connection_async(resource_group_name, name, vnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -32300,6 +32462,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -32352,8 +32515,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetInfo] operation results. # - def update_vnet_connection(resource_group_name, name, vnet_name, connection_envelope, custom_headers = nil) - response = update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers).value! + def update_vnet_connection(resource_group_name, name, vnet_name, connection_envelope, custom_headers:nil) + response = update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -32375,8 +32538,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_vnet_connection_with_http_info(resource_group_name, name, vnet_name, connection_envelope, custom_headers = nil) - update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers).value! + def update_vnet_connection_with_http_info(resource_group_name, name, vnet_name, connection_envelope, custom_headers:nil) + update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers:custom_headers).value! end # @@ -32397,7 +32560,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers = nil) + def update_vnet_connection_async(resource_group_name, name, vnet_name, connection_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -32410,7 +32573,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -32479,8 +32641,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetGateway] operation results. # - def get_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, custom_headers = nil) - response = get_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers).value! + def get_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, custom_headers:nil) + response = get_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -32500,8 +32662,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, custom_headers = nil) - get_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers).value! + def get_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, custom_headers:nil) + get_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers:custom_headers).value! end # @@ -32520,7 +32682,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers = nil) + def get_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -32533,6 +32695,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -32595,8 +32758,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetGateway] operation results. # - def create_or_update_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil) - response = create_or_update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers).value! + def create_or_update_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) + response = create_or_update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -32618,8 +32781,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil) - create_or_update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers).value! + def create_or_update_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) + create_or_update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:custom_headers).value! end # @@ -32640,7 +32803,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil) + def create_or_update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -32654,7 +32817,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -32725,8 +32887,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [VnetGateway] operation results. # - def update_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil) - response = update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers).value! + def update_vnet_connection_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) + response = update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -32748,8 +32910,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil) - update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers).value! + def update_vnet_connection_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) + update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:custom_headers).value! end # @@ -32770,7 +32932,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil) + def update_vnet_connection_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -32784,7 +32946,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -32850,8 +33011,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Array] operation results. # - def list_web_jobs(resource_group_name, name, custom_headers = nil) - first_page = list_web_jobs_as_lazy(resource_group_name, name, custom_headers) + def list_web_jobs(resource_group_name, name, custom_headers:nil) + first_page = list_web_jobs_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -32868,8 +33029,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_jobs_with_http_info(resource_group_name, name, custom_headers = nil) - list_web_jobs_async(resource_group_name, name, custom_headers).value! + def list_web_jobs_with_http_info(resource_group_name, name, custom_headers:nil) + list_web_jobs_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -32885,7 +33046,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_jobs_async(resource_group_name, name, custom_headers = nil) + def list_web_jobs_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -32896,6 +33057,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -32954,8 +33116,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [WebJob] operation results. # - def get_web_job(resource_group_name, name, web_job_name, custom_headers = nil) - response = get_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! + def get_web_job(resource_group_name, name, web_job_name, custom_headers:nil) + response = get_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -32973,8 +33135,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers = nil) - get_web_job_async(resource_group_name, name, web_job_name, custom_headers).value! + def get_web_job_with_http_info(resource_group_name, name, web_job_name, custom_headers:nil) + get_web_job_async(resource_group_name, name, web_job_name, custom_headers:custom_headers).value! end # @@ -32991,7 +33153,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_web_job_async(resource_group_name, name, web_job_name, custom_headers = nil) + def get_web_job_async(resource_group_name, name, web_job_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -33003,6 +33165,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -33074,8 +33237,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Site] operation results. # - def begin_create_or_update(resource_group_name, name, site_envelope, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers).value! + def begin_create_or_update(resource_group_name, name, site_envelope, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -33106,8 +33269,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, name, site_envelope, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) - begin_create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, name, site_envelope, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) + begin_create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers).value! end # @@ -33137,7 +33300,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, name, site_envelope, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -33149,7 +33312,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -33227,8 +33389,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RestoreResponse] operation results. # - def begin_restore(resource_group_name, name, backup_id, request, custom_headers = nil) - response = begin_restore_async(resource_group_name, name, backup_id, request, custom_headers).value! + def begin_restore(resource_group_name, name, backup_id, request, custom_headers:nil) + response = begin_restore_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -33247,8 +33409,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restore_with_http_info(resource_group_name, name, backup_id, request, custom_headers = nil) - begin_restore_async(resource_group_name, name, backup_id, request, custom_headers).value! + def begin_restore_with_http_info(resource_group_name, name, backup_id, request, custom_headers:nil) + begin_restore_async(resource_group_name, name, backup_id, request, custom_headers:custom_headers).value! end # @@ -33266,7 +33428,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restore_async(resource_group_name, name, backup_id, request, custom_headers = nil) + def begin_restore_async(resource_group_name, name, backup_id, request, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -33279,7 +33441,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -33345,8 +33506,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [User] operation results. # - def begin_list_publishing_credentials(resource_group_name, name, custom_headers = nil) - response = begin_list_publishing_credentials_async(resource_group_name, name, custom_headers).value! + def begin_list_publishing_credentials(resource_group_name, name, custom_headers:nil) + response = begin_list_publishing_credentials_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -33363,8 +33524,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_publishing_credentials_with_http_info(resource_group_name, name, custom_headers = nil) - begin_list_publishing_credentials_async(resource_group_name, name, custom_headers).value! + def begin_list_publishing_credentials_with_http_info(resource_group_name, name, custom_headers:nil) + begin_list_publishing_credentials_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -33380,7 +33541,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_publishing_credentials_async(resource_group_name, name, custom_headers = nil) + def begin_list_publishing_credentials_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -33391,6 +33552,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -33449,8 +33611,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def begin_create_msdeploy_operation(resource_group_name, name, msdeploy, custom_headers = nil) - response = begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers).value! + def begin_create_msdeploy_operation(resource_group_name, name, msdeploy, custom_headers:nil) + response = begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -33468,8 +33630,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_msdeploy_operation_with_http_info(resource_group_name, name, msdeploy, custom_headers = nil) - begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers).value! + def begin_create_msdeploy_operation_with_http_info(resource_group_name, name, msdeploy, custom_headers:nil) + begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers:custom_headers).value! end # @@ -33486,7 +33648,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers = nil) + def begin_create_msdeploy_operation_async(resource_group_name, name, msdeploy, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -33498,7 +33660,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -33566,8 +33727,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionEnvelope] operation results. # - def begin_create_function(resource_group_name, name, function_name, function_envelope, custom_headers = nil) - response = begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers).value! + def begin_create_function(resource_group_name, name, function_name, function_envelope, custom_headers:nil) + response = begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -33586,8 +33747,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_function_with_http_info(resource_group_name, name, function_name, function_envelope, custom_headers = nil) - begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers).value! + def begin_create_function_with_http_info(resource_group_name, name, function_name, function_envelope, custom_headers:nil) + begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers:custom_headers).value! end # @@ -33605,7 +33766,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers = nil) + def begin_create_function_async(resource_group_name, name, function_name, function_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -33618,7 +33779,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -33686,8 +33846,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def begin_create_instance_msdeploy_operation(resource_group_name, name, instance_id, msdeploy, custom_headers = nil) - response = begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers).value! + def begin_create_instance_msdeploy_operation(resource_group_name, name, instance_id, msdeploy, custom_headers:nil) + response = begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -33706,8 +33866,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_instance_msdeploy_operation_with_http_info(resource_group_name, name, instance_id, msdeploy, custom_headers = nil) - begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers).value! + def begin_create_instance_msdeploy_operation_with_http_info(resource_group_name, name, instance_id, msdeploy, custom_headers:nil) + begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers:custom_headers).value! end # @@ -33725,7 +33885,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers = nil) + def begin_create_instance_msdeploy_operation_async(resource_group_name, name, instance_id, msdeploy, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -33738,7 +33898,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -33807,8 +33966,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [StorageMigrationResponse] operation results. # - def begin_migrate_storage(subscription_name, resource_group_name, name, migration_options, custom_headers = nil) - response = begin_migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers).value! + def begin_migrate_storage(subscription_name, resource_group_name, name, migration_options, custom_headers:nil) + response = begin_migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -33828,8 +33987,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_migrate_storage_with_http_info(subscription_name, resource_group_name, name, migration_options, custom_headers = nil) - begin_migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers).value! + def begin_migrate_storage_with_http_info(subscription_name, resource_group_name, name, migration_options, custom_headers:nil) + begin_migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers:custom_headers).value! end # @@ -33848,7 +34007,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers = nil) + def begin_migrate_storage_async(subscription_name, resource_group_name, name, migration_options, custom_headers:nil) fail ArgumentError, 'subscription_name is nil' if subscription_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 @@ -33861,7 +34020,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -33929,8 +34087,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Operation] operation results. # - def begin_migrate_my_sql(resource_group_name, name, migration_request_envelope, custom_headers = nil) - response = begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers).value! + def begin_migrate_my_sql(resource_group_name, name, migration_request_envelope, custom_headers:nil) + response = begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -33949,8 +34107,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_migrate_my_sql_with_http_info(resource_group_name, name, migration_request_envelope, custom_headers = nil) - begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers).value! + def begin_migrate_my_sql_with_http_info(resource_group_name, name, migration_request_envelope, custom_headers:nil) + begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers:custom_headers).value! end # @@ -33968,7 +34126,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers = nil) + def begin_migrate_my_sql_async(resource_group_name, name, migration_request_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -33980,7 +34138,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -34048,8 +34205,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def begin_recover(resource_group_name, name, recovery_entity, custom_headers = nil) - response = begin_recover_async(resource_group_name, name, recovery_entity, custom_headers).value! + def begin_recover(resource_group_name, name, recovery_entity, custom_headers:nil) + response = begin_recover_async(resource_group_name, name, recovery_entity, custom_headers:custom_headers).value! nil end @@ -34069,8 +34226,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_recover_with_http_info(resource_group_name, name, recovery_entity, custom_headers = nil) - begin_recover_async(resource_group_name, name, recovery_entity, custom_headers).value! + def begin_recover_with_http_info(resource_group_name, name, recovery_entity, custom_headers:nil) + begin_recover_async(resource_group_name, name, recovery_entity, custom_headers:custom_headers).value! end # @@ -34089,7 +34246,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_recover_async(resource_group_name, name, recovery_entity, custom_headers = nil) + def begin_recover_async(resource_group_name, name, recovery_entity, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -34101,7 +34258,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -34159,8 +34315,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteExtensionInfo] operation results. # - def begin_install_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - response = begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def begin_install_site_extension(resource_group_name, name, site_extension_id, extension_name, custom_headers:nil) + response = begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -34179,8 +34335,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_install_site_extension_with_http_info(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) - begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers).value! + def begin_install_site_extension_with_http_info(resource_group_name, name, site_extension_id, extension_name, custom_headers:nil) + begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:custom_headers).value! end # @@ -34198,7 +34354,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers = nil) + def begin_install_site_extension_async(resource_group_name, name, site_extension_id, extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -34211,6 +34367,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -34294,8 +34451,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Site] operation results. # - def begin_create_or_update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) - response = begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers).value! + def begin_create_or_update_slot(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) + response = begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -34328,8 +34485,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_slot_with_http_info(resource_group_name, name, site_envelope, slot, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) - begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration, skip_custom_domain_verification, force_dns_registration, ttl_in_seconds, custom_headers).value! + def begin_create_or_update_slot_with_http_info(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) + begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:skip_dns_registration, skip_custom_domain_verification:skip_custom_domain_verification, force_dns_registration:force_dns_registration, ttl_in_seconds:ttl_in_seconds, custom_headers:custom_headers).value! end # @@ -34361,7 +34518,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration = nil, skip_custom_domain_verification = nil, force_dns_registration = nil, ttl_in_seconds = nil, custom_headers = nil) + def begin_create_or_update_slot_async(resource_group_name, name, site_envelope, slot, skip_dns_registration:nil, skip_custom_domain_verification:nil, force_dns_registration:nil, ttl_in_seconds:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -34374,7 +34531,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -34454,8 +34610,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [RestoreResponse] operation results. # - def begin_restore_slot(resource_group_name, name, backup_id, request, slot, custom_headers = nil) - response = begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers).value! + def begin_restore_slot(resource_group_name, name, backup_id, request, slot, custom_headers:nil) + response = begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -34476,8 +34632,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_restore_slot_with_http_info(resource_group_name, name, backup_id, request, slot, custom_headers = nil) - begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers).value! + def begin_restore_slot_with_http_info(resource_group_name, name, backup_id, request, slot, custom_headers:nil) + begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:custom_headers).value! end # @@ -34497,7 +34653,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers = nil) + def begin_restore_slot_async(resource_group_name, name, backup_id, request, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -34511,7 +34667,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -34579,8 +34734,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [User] operation results. # - def begin_list_publishing_credentials_slot(resource_group_name, name, slot, custom_headers = nil) - response = begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers).value! + def begin_list_publishing_credentials_slot(resource_group_name, name, slot, custom_headers:nil) + response = begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -34599,8 +34754,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_list_publishing_credentials_slot_with_http_info(resource_group_name, name, slot, custom_headers = nil) - begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers).value! + def begin_list_publishing_credentials_slot_with_http_info(resource_group_name, name, slot, custom_headers:nil) + begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! end # @@ -34618,7 +34773,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers = nil) + def begin_list_publishing_credentials_slot_async(resource_group_name, name, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -34630,6 +34785,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -34690,8 +34846,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def begin_create_msdeploy_operation_slot(resource_group_name, name, slot, msdeploy, custom_headers = nil) - response = begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers).value! + def begin_create_msdeploy_operation_slot(resource_group_name, name, slot, msdeploy, custom_headers:nil) + response = begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -34711,8 +34867,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_msdeploy_operation_slot_with_http_info(resource_group_name, name, slot, msdeploy, custom_headers = nil) - begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers).value! + def begin_create_msdeploy_operation_slot_with_http_info(resource_group_name, name, slot, msdeploy, custom_headers:nil) + begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers:custom_headers).value! end # @@ -34731,7 +34887,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers = nil) + def begin_create_msdeploy_operation_slot_async(resource_group_name, name, slot, msdeploy, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -34744,7 +34900,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -34814,8 +34969,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionEnvelope] operation results. # - def begin_create_instance_function_slot(resource_group_name, name, function_name, slot, function_envelope, custom_headers = nil) - response = begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers).value! + def begin_create_instance_function_slot(resource_group_name, name, function_name, slot, function_envelope, custom_headers:nil) + response = begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -34836,8 +34991,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, function_envelope, custom_headers = nil) - begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers).value! + def begin_create_instance_function_slot_with_http_info(resource_group_name, name, function_name, slot, function_envelope, custom_headers:nil) + begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers:custom_headers).value! end # @@ -34857,7 +35012,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers = nil) + def begin_create_instance_function_slot_async(resource_group_name, name, function_name, slot, function_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -34871,7 +35026,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -34941,8 +35095,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MSDeployStatus] operation results. # - def begin_create_instance_msdeploy_operation_slot(resource_group_name, name, slot, instance_id, msdeploy, custom_headers = nil) - response = begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers).value! + def begin_create_instance_msdeploy_operation_slot(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:nil) + response = begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -34963,8 +35117,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_instance_msdeploy_operation_slot_with_http_info(resource_group_name, name, slot, instance_id, msdeploy, custom_headers = nil) - begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers).value! + def begin_create_instance_msdeploy_operation_slot_with_http_info(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:nil) + begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:custom_headers).value! end # @@ -34984,7 +35138,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers = nil) + def begin_create_instance_msdeploy_operation_slot_async(resource_group_name, name, slot, instance_id, msdeploy, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -34998,7 +35152,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -35068,8 +35221,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def begin_recover_slot(resource_group_name, name, recovery_entity, slot, custom_headers = nil) - response = begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers).value! + def begin_recover_slot(resource_group_name, name, recovery_entity, slot, custom_headers:nil) + response = begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers:custom_headers).value! nil end @@ -35091,8 +35244,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_recover_slot_with_http_info(resource_group_name, name, recovery_entity, slot, custom_headers = nil) - begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers).value! + def begin_recover_slot_with_http_info(resource_group_name, name, recovery_entity, slot, custom_headers:nil) + begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers:custom_headers).value! end # @@ -35113,7 +35266,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers = nil) + def begin_recover_slot_async(resource_group_name, name, recovery_entity, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -35126,7 +35279,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -35186,8 +35338,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteExtensionInfo] operation results. # - def begin_install_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - response = begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def begin_install_site_extension_slot(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:nil) + response = begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -35208,8 +35360,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_install_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) - begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers).value! + def begin_install_site_extension_slot_with_http_info(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:nil) + begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:custom_headers).value! end # @@ -35229,7 +35381,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers = nil) + def begin_install_site_extension_slot_async(resource_group_name, name, site_extension_id, slot, extension_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -35243,6 +35395,7 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -35313,8 +35466,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def begin_swap_slot_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) - response = begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers).value! + def begin_swap_slot_slot(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) + response = begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! nil end @@ -35335,8 +35488,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_swap_slot_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) - begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers).value! + def begin_swap_slot_slot_with_http_info(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) + begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! end # @@ -35356,7 +35509,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) + def begin_swap_slot_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -35369,7 +35522,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -35429,8 +35581,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteSourceControl] operation results. # - def begin_create_or_update_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers = nil) - response = begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers).value! + def begin_create_or_update_source_control_slot(resource_group_name, name, site_source_control, slot, custom_headers:nil) + response = begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -35451,8 +35603,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_source_control_slot_with_http_info(resource_group_name, name, site_source_control, slot, custom_headers = nil) - begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers).value! + def begin_create_or_update_source_control_slot_with_http_info(resource_group_name, name, site_source_control, slot, custom_headers:nil) + begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:custom_headers).value! end # @@ -35472,7 +35624,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers = nil) + def begin_create_or_update_source_control_slot_async(resource_group_name, name, site_source_control, slot, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -35485,7 +35637,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -35562,8 +35713,8 @@ module Azure::Web::Mgmt::V2016_08_01 # will be added to the HTTP request. # # - def begin_swap_slot_with_production(resource_group_name, name, slot_swap_entity, custom_headers = nil) - response = begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers).value! + def begin_swap_slot_with_production(resource_group_name, name, slot_swap_entity, custom_headers:nil) + response = begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! nil end @@ -35582,8 +35733,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_swap_slot_with_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers = nil) - begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers).value! + def begin_swap_slot_with_production_with_http_info(resource_group_name, name, slot_swap_entity, custom_headers:nil) + begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! end # @@ -35601,7 +35752,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers = nil) + def begin_swap_slot_with_production_async(resource_group_name, name, slot_swap_entity, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -35613,7 +35764,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -35671,8 +35821,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteSourceControl] operation results. # - def begin_create_or_update_source_control(resource_group_name, name, site_source_control, custom_headers = nil) - response = begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers).value! + def begin_create_or_update_source_control(resource_group_name, name, site_source_control, custom_headers:nil) + response = begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -35691,8 +35841,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_source_control_with_http_info(resource_group_name, name, site_source_control, custom_headers = nil) - begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers).value! + def begin_create_or_update_source_control_with_http_info(resource_group_name, name, site_source_control, custom_headers:nil) + begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers:custom_headers).value! end # @@ -35710,7 +35860,7 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers = nil) + def begin_create_or_update_source_control_async(resource_group_name, name, site_source_control, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -35722,7 +35872,6 @@ module Azure::Web::Mgmt::V2016_08_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -35797,8 +35946,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [WebAppCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -35814,8 +35963,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -35830,11 +35979,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -35890,8 +36040,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [WebAppCollection] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -35907,8 +36057,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -35923,11 +36073,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -35983,8 +36134,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupItemCollection] operation results. # - def list_backups_next(next_page_link, custom_headers = nil) - response = list_backups_next_async(next_page_link, custom_headers).value! + def list_backups_next(next_page_link, custom_headers:nil) + response = list_backups_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -36000,8 +36151,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_backups_next_with_http_info(next_page_link, custom_headers = nil) - list_backups_next_async(next_page_link, custom_headers).value! + def list_backups_next_with_http_info(next_page_link, custom_headers:nil) + list_backups_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -36016,11 +36167,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_backups_next_async(next_page_link, custom_headers = nil) + def list_backups_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -36076,8 +36228,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteConfigResourceCollection] operation results. # - def list_configurations_next(next_page_link, custom_headers = nil) - response = list_configurations_next_async(next_page_link, custom_headers).value! + def list_configurations_next(next_page_link, custom_headers:nil) + response = list_configurations_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -36093,8 +36245,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_configurations_next_with_http_info(next_page_link, custom_headers = nil) - list_configurations_next_async(next_page_link, custom_headers).value! + def list_configurations_next_with_http_info(next_page_link, custom_headers:nil) + list_configurations_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -36109,11 +36261,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_configurations_next_async(next_page_link, custom_headers = nil) + def list_configurations_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -36169,8 +36322,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ContinuousWebJobCollection] operation results. # - def list_continuous_web_jobs_next(next_page_link, custom_headers = nil) - response = list_continuous_web_jobs_next_async(next_page_link, custom_headers).value! + def list_continuous_web_jobs_next(next_page_link, custom_headers:nil) + response = list_continuous_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -36186,8 +36339,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_continuous_web_jobs_next_with_http_info(next_page_link, custom_headers = nil) - list_continuous_web_jobs_next_async(next_page_link, custom_headers).value! + def list_continuous_web_jobs_next_with_http_info(next_page_link, custom_headers:nil) + list_continuous_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -36202,11 +36355,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_continuous_web_jobs_next_async(next_page_link, custom_headers = nil) + def list_continuous_web_jobs_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -36262,8 +36416,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [DeploymentCollection] operation results. # - def list_deployments_next(next_page_link, custom_headers = nil) - response = list_deployments_next_async(next_page_link, custom_headers).value! + def list_deployments_next(next_page_link, custom_headers:nil) + response = list_deployments_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -36279,8 +36433,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_deployments_next_with_http_info(next_page_link, custom_headers = nil) - list_deployments_next_async(next_page_link, custom_headers).value! + def list_deployments_next_with_http_info(next_page_link, custom_headers:nil) + list_deployments_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -36295,11 +36449,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_deployments_next_async(next_page_link, custom_headers = nil) + def list_deployments_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -36355,8 +36510,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [IdentifierCollection] operation results. # - def list_domain_ownership_identifiers_next(next_page_link, custom_headers = nil) - response = list_domain_ownership_identifiers_next_async(next_page_link, custom_headers).value! + def list_domain_ownership_identifiers_next(next_page_link, custom_headers:nil) + response = list_domain_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -36372,8 +36527,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_domain_ownership_identifiers_next_with_http_info(next_page_link, custom_headers = nil) - list_domain_ownership_identifiers_next_async(next_page_link, custom_headers).value! + def list_domain_ownership_identifiers_next_with_http_info(next_page_link, custom_headers:nil) + list_domain_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -36388,11 +36543,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_domain_ownership_identifiers_next_async(next_page_link, custom_headers = nil) + def list_domain_ownership_identifiers_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -36448,8 +36604,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionEnvelopeCollection] operation results. # - def list_functions_next(next_page_link, custom_headers = nil) - response = list_functions_next_async(next_page_link, custom_headers).value! + def list_functions_next(next_page_link, custom_headers:nil) + response = list_functions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -36465,8 +36621,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_functions_next_with_http_info(next_page_link, custom_headers = nil) - list_functions_next_async(next_page_link, custom_headers).value! + def list_functions_next_with_http_info(next_page_link, custom_headers:nil) + list_functions_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -36481,11 +36637,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_functions_next_async(next_page_link, custom_headers = nil) + def list_functions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -36541,8 +36698,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HostNameBindingCollection] operation results. # - def list_host_name_bindings_next(next_page_link, custom_headers = nil) - response = list_host_name_bindings_next_async(next_page_link, custom_headers).value! + def list_host_name_bindings_next(next_page_link, custom_headers:nil) + response = list_host_name_bindings_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -36558,8 +36715,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_host_name_bindings_next_with_http_info(next_page_link, custom_headers = nil) - list_host_name_bindings_next_async(next_page_link, custom_headers).value! + def list_host_name_bindings_next_with_http_info(next_page_link, custom_headers:nil) + list_host_name_bindings_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -36574,11 +36731,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_host_name_bindings_next_async(next_page_link, custom_headers = nil) + def list_host_name_bindings_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -36634,8 +36792,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [WebAppInstanceCollection] operation results. # - def list_instance_identifiers_next(next_page_link, custom_headers = nil) - response = list_instance_identifiers_next_async(next_page_link, custom_headers).value! + def list_instance_identifiers_next(next_page_link, custom_headers:nil) + response = list_instance_identifiers_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -36651,8 +36809,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_identifiers_next_with_http_info(next_page_link, custom_headers = nil) - list_instance_identifiers_next_async(next_page_link, custom_headers).value! + def list_instance_identifiers_next_with_http_info(next_page_link, custom_headers:nil) + list_instance_identifiers_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -36667,11 +36825,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_identifiers_next_async(next_page_link, custom_headers = nil) + def list_instance_identifiers_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -36729,8 +36888,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessInfoCollection] operation results. # - def list_instance_processes_next(next_page_link, custom_headers = nil) - response = list_instance_processes_next_async(next_page_link, custom_headers).value! + def list_instance_processes_next(next_page_link, custom_headers:nil) + response = list_instance_processes_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -36748,8 +36907,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_processes_next_with_http_info(next_page_link, custom_headers = nil) - list_instance_processes_next_async(next_page_link, custom_headers).value! + def list_instance_processes_next_with_http_info(next_page_link, custom_headers:nil) + list_instance_processes_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -36766,11 +36925,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_processes_next_async(next_page_link, custom_headers = nil) + def list_instance_processes_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -36828,8 +36988,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessModuleInfoCollection] operation results. # - def list_instance_process_modules_next(next_page_link, custom_headers = nil) - response = list_instance_process_modules_next_async(next_page_link, custom_headers).value! + def list_instance_process_modules_next(next_page_link, custom_headers:nil) + response = list_instance_process_modules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -36847,8 +37007,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_process_modules_next_with_http_info(next_page_link, custom_headers = nil) - list_instance_process_modules_next_async(next_page_link, custom_headers).value! + def list_instance_process_modules_next_with_http_info(next_page_link, custom_headers:nil) + list_instance_process_modules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -36865,11 +37025,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_process_modules_next_async(next_page_link, custom_headers = nil) + def list_instance_process_modules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -36927,8 +37088,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessThreadInfoCollection] operation results. # - def list_instance_process_threads_next(next_page_link, custom_headers = nil) - response = list_instance_process_threads_next_async(next_page_link, custom_headers).value! + def list_instance_process_threads_next(next_page_link, custom_headers:nil) + response = list_instance_process_threads_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -36946,8 +37107,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_process_threads_next_with_http_info(next_page_link, custom_headers = nil) - list_instance_process_threads_next_async(next_page_link, custom_headers).value! + def list_instance_process_threads_next_with_http_info(next_page_link, custom_headers:nil) + list_instance_process_threads_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -36964,11 +37125,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_process_threads_next_async(next_page_link, custom_headers = nil) + def list_instance_process_threads_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -37024,8 +37186,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ResourceMetricDefinitionCollection] operation results. # - def list_metric_definitions_next(next_page_link, custom_headers = nil) - response = list_metric_definitions_next_async(next_page_link, custom_headers).value! + def list_metric_definitions_next(next_page_link, custom_headers:nil) + response = list_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -37041,8 +37203,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_definitions_next_with_http_info(next_page_link, custom_headers = nil) - list_metric_definitions_next_async(next_page_link, custom_headers).value! + def list_metric_definitions_next_with_http_info(next_page_link, custom_headers:nil) + list_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -37057,11 +37219,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definitions_next_async(next_page_link, custom_headers = nil) + def list_metric_definitions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -37117,8 +37280,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ResourceMetricCollection] operation results. # - def list_metrics_next(next_page_link, custom_headers = nil) - response = list_metrics_next_async(next_page_link, custom_headers).value! + def list_metrics_next(next_page_link, custom_headers:nil) + response = list_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -37134,8 +37297,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_next_with_http_info(next_page_link, custom_headers = nil) - list_metrics_next_async(next_page_link, custom_headers).value! + def list_metrics_next_with_http_info(next_page_link, custom_headers:nil) + list_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -37150,11 +37313,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_next_async(next_page_link, custom_headers = nil) + def list_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -37210,8 +37374,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PerfMonCounterCollection] operation results. # - def list_perf_mon_counters_next(next_page_link, custom_headers = nil) - response = list_perf_mon_counters_next_async(next_page_link, custom_headers).value! + def list_perf_mon_counters_next(next_page_link, custom_headers:nil) + response = list_perf_mon_counters_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -37227,8 +37391,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_perf_mon_counters_next_with_http_info(next_page_link, custom_headers = nil) - list_perf_mon_counters_next_async(next_page_link, custom_headers).value! + def list_perf_mon_counters_next_with_http_info(next_page_link, custom_headers:nil) + list_perf_mon_counters_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -37243,11 +37407,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_perf_mon_counters_next_async(next_page_link, custom_headers = nil) + def list_perf_mon_counters_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -37305,8 +37470,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessInfoCollection] operation results. # - def list_processes_next(next_page_link, custom_headers = nil) - response = list_processes_next_async(next_page_link, custom_headers).value! + def list_processes_next(next_page_link, custom_headers:nil) + response = list_processes_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -37324,8 +37489,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_processes_next_with_http_info(next_page_link, custom_headers = nil) - list_processes_next_async(next_page_link, custom_headers).value! + def list_processes_next_with_http_info(next_page_link, custom_headers:nil) + list_processes_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -37342,11 +37507,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_processes_next_async(next_page_link, custom_headers = nil) + def list_processes_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -37404,8 +37570,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessModuleInfoCollection] operation results. # - def list_process_modules_next(next_page_link, custom_headers = nil) - response = list_process_modules_next_async(next_page_link, custom_headers).value! + def list_process_modules_next(next_page_link, custom_headers:nil) + response = list_process_modules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -37423,8 +37589,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_process_modules_next_with_http_info(next_page_link, custom_headers = nil) - list_process_modules_next_async(next_page_link, custom_headers).value! + def list_process_modules_next_with_http_info(next_page_link, custom_headers:nil) + list_process_modules_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -37441,11 +37607,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_process_modules_next_async(next_page_link, custom_headers = nil) + def list_process_modules_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -37503,8 +37670,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessThreadInfoCollection] operation results. # - def list_process_threads_next(next_page_link, custom_headers = nil) - response = list_process_threads_next_async(next_page_link, custom_headers).value! + def list_process_threads_next(next_page_link, custom_headers:nil) + response = list_process_threads_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -37522,8 +37689,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_process_threads_next_with_http_info(next_page_link, custom_headers = nil) - list_process_threads_next_async(next_page_link, custom_headers).value! + def list_process_threads_next_with_http_info(next_page_link, custom_headers:nil) + list_process_threads_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -37540,11 +37707,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_process_threads_next_async(next_page_link, custom_headers = nil) + def list_process_threads_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -37600,8 +37768,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PublicCertificateCollection] operation results. # - def list_public_certificates_next(next_page_link, custom_headers = nil) - response = list_public_certificates_next_async(next_page_link, custom_headers).value! + def list_public_certificates_next(next_page_link, custom_headers:nil) + response = list_public_certificates_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -37617,8 +37785,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_public_certificates_next_with_http_info(next_page_link, custom_headers = nil) - list_public_certificates_next_async(next_page_link, custom_headers).value! + def list_public_certificates_next_with_http_info(next_page_link, custom_headers:nil) + list_public_certificates_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -37633,11 +37801,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_public_certificates_next_async(next_page_link, custom_headers = nil) + def list_public_certificates_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -37693,8 +37862,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteExtensionInfoCollection] operation results. # - def list_site_extensions_next(next_page_link, custom_headers = nil) - response = list_site_extensions_next_async(next_page_link, custom_headers).value! + def list_site_extensions_next(next_page_link, custom_headers:nil) + response = list_site_extensions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -37710,8 +37879,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_site_extensions_next_with_http_info(next_page_link, custom_headers = nil) - list_site_extensions_next_async(next_page_link, custom_headers).value! + def list_site_extensions_next_with_http_info(next_page_link, custom_headers:nil) + list_site_extensions_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -37726,11 +37895,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_site_extensions_next_async(next_page_link, custom_headers = nil) + def list_site_extensions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -37786,8 +37956,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [WebAppCollection] operation results. # - def list_slots_next(next_page_link, custom_headers = nil) - response = list_slots_next_async(next_page_link, custom_headers).value! + def list_slots_next(next_page_link, custom_headers:nil) + response = list_slots_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -37803,8 +37973,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_slots_next_with_http_info(next_page_link, custom_headers = nil) - list_slots_next_async(next_page_link, custom_headers).value! + def list_slots_next_with_http_info(next_page_link, custom_headers:nil) + list_slots_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -37819,11 +37989,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_slots_next_async(next_page_link, custom_headers = nil) + def list_slots_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -37879,8 +38050,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [BackupItemCollection] operation results. # - def list_backups_slot_next(next_page_link, custom_headers = nil) - response = list_backups_slot_next_async(next_page_link, custom_headers).value! + def list_backups_slot_next(next_page_link, custom_headers:nil) + response = list_backups_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -37896,8 +38067,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_backups_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_backups_slot_next_async(next_page_link, custom_headers).value! + def list_backups_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_backups_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -37912,11 +38083,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_backups_slot_next_async(next_page_link, custom_headers = nil) + def list_backups_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -37972,8 +38144,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteConfigResourceCollection] operation results. # - def list_configurations_slot_next(next_page_link, custom_headers = nil) - response = list_configurations_slot_next_async(next_page_link, custom_headers).value! + def list_configurations_slot_next(next_page_link, custom_headers:nil) + response = list_configurations_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -37989,8 +38161,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_configurations_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_configurations_slot_next_async(next_page_link, custom_headers).value! + def list_configurations_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_configurations_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -38005,11 +38177,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_configurations_slot_next_async(next_page_link, custom_headers = nil) + def list_configurations_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -38065,8 +38238,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ContinuousWebJobCollection] operation results. # - def list_continuous_web_jobs_slot_next(next_page_link, custom_headers = nil) - response = list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers).value! + def list_continuous_web_jobs_slot_next(next_page_link, custom_headers:nil) + response = list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -38082,8 +38255,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_continuous_web_jobs_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers).value! + def list_continuous_web_jobs_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -38098,11 +38271,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers = nil) + def list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -38158,8 +38332,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [DeploymentCollection] operation results. # - def list_deployments_slot_next(next_page_link, custom_headers = nil) - response = list_deployments_slot_next_async(next_page_link, custom_headers).value! + def list_deployments_slot_next(next_page_link, custom_headers:nil) + response = list_deployments_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -38175,8 +38349,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_deployments_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_deployments_slot_next_async(next_page_link, custom_headers).value! + def list_deployments_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_deployments_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -38191,11 +38365,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_deployments_slot_next_async(next_page_link, custom_headers = nil) + def list_deployments_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -38251,8 +38426,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [IdentifierCollection] operation results. # - def list_domain_ownership_identifiers_slot_next(next_page_link, custom_headers = nil) - response = list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers).value! + def list_domain_ownership_identifiers_slot_next(next_page_link, custom_headers:nil) + response = list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -38268,8 +38443,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_domain_ownership_identifiers_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers).value! + def list_domain_ownership_identifiers_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -38284,11 +38459,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers = nil) + def list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -38344,8 +38520,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [FunctionEnvelopeCollection] operation results. # - def list_instance_functions_slot_next(next_page_link, custom_headers = nil) - response = list_instance_functions_slot_next_async(next_page_link, custom_headers).value! + def list_instance_functions_slot_next(next_page_link, custom_headers:nil) + response = list_instance_functions_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -38361,8 +38537,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_functions_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_instance_functions_slot_next_async(next_page_link, custom_headers).value! + def list_instance_functions_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_instance_functions_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -38377,11 +38553,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_functions_slot_next_async(next_page_link, custom_headers = nil) + def list_instance_functions_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -38437,8 +38614,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [HostNameBindingCollection] operation results. # - def list_host_name_bindings_slot_next(next_page_link, custom_headers = nil) - response = list_host_name_bindings_slot_next_async(next_page_link, custom_headers).value! + def list_host_name_bindings_slot_next(next_page_link, custom_headers:nil) + response = list_host_name_bindings_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -38454,8 +38631,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_host_name_bindings_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_host_name_bindings_slot_next_async(next_page_link, custom_headers).value! + def list_host_name_bindings_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_host_name_bindings_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -38470,11 +38647,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_host_name_bindings_slot_next_async(next_page_link, custom_headers = nil) + def list_host_name_bindings_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -38530,8 +38708,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [WebAppInstanceCollection] operation results. # - def list_instance_identifiers_slot_next(next_page_link, custom_headers = nil) - response = list_instance_identifiers_slot_next_async(next_page_link, custom_headers).value! + def list_instance_identifiers_slot_next(next_page_link, custom_headers:nil) + response = list_instance_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -38547,8 +38725,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_identifiers_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_instance_identifiers_slot_next_async(next_page_link, custom_headers).value! + def list_instance_identifiers_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_instance_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -38563,11 +38741,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_identifiers_slot_next_async(next_page_link, custom_headers = nil) + def list_instance_identifiers_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -38625,8 +38804,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessInfoCollection] operation results. # - def list_instance_processes_slot_next(next_page_link, custom_headers = nil) - response = list_instance_processes_slot_next_async(next_page_link, custom_headers).value! + def list_instance_processes_slot_next(next_page_link, custom_headers:nil) + response = list_instance_processes_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -38644,8 +38823,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_processes_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_instance_processes_slot_next_async(next_page_link, custom_headers).value! + def list_instance_processes_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_instance_processes_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -38662,11 +38841,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_processes_slot_next_async(next_page_link, custom_headers = nil) + def list_instance_processes_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -38724,8 +38904,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessModuleInfoCollection] operation results. # - def list_instance_process_modules_slot_next(next_page_link, custom_headers = nil) - response = list_instance_process_modules_slot_next_async(next_page_link, custom_headers).value! + def list_instance_process_modules_slot_next(next_page_link, custom_headers:nil) + response = list_instance_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -38743,8 +38923,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_process_modules_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_instance_process_modules_slot_next_async(next_page_link, custom_headers).value! + def list_instance_process_modules_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_instance_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -38761,11 +38941,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_process_modules_slot_next_async(next_page_link, custom_headers = nil) + def list_instance_process_modules_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -38823,8 +39004,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessThreadInfoCollection] operation results. # - def list_instance_process_threads_slot_next(next_page_link, custom_headers = nil) - response = list_instance_process_threads_slot_next_async(next_page_link, custom_headers).value! + def list_instance_process_threads_slot_next(next_page_link, custom_headers:nil) + response = list_instance_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -38842,8 +39023,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_instance_process_threads_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_instance_process_threads_slot_next_async(next_page_link, custom_headers).value! + def list_instance_process_threads_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_instance_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -38860,11 +39041,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_instance_process_threads_slot_next_async(next_page_link, custom_headers = nil) + def list_instance_process_threads_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -38920,8 +39102,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ResourceMetricDefinitionCollection] operation results. # - def list_metric_definitions_slot_next(next_page_link, custom_headers = nil) - response = list_metric_definitions_slot_next_async(next_page_link, custom_headers).value! + def list_metric_definitions_slot_next(next_page_link, custom_headers:nil) + response = list_metric_definitions_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -38937,8 +39119,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_definitions_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_metric_definitions_slot_next_async(next_page_link, custom_headers).value! + def list_metric_definitions_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_metric_definitions_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -38953,11 +39135,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definitions_slot_next_async(next_page_link, custom_headers = nil) + def list_metric_definitions_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -39013,8 +39196,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ResourceMetricCollection] operation results. # - def list_metrics_slot_next(next_page_link, custom_headers = nil) - response = list_metrics_slot_next_async(next_page_link, custom_headers).value! + def list_metrics_slot_next(next_page_link, custom_headers:nil) + response = list_metrics_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -39030,8 +39213,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_metrics_slot_next_async(next_page_link, custom_headers).value! + def list_metrics_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_metrics_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -39046,11 +39229,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_slot_next_async(next_page_link, custom_headers = nil) + def list_metrics_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -39106,8 +39290,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PerfMonCounterCollection] operation results. # - def list_perf_mon_counters_slot_next(next_page_link, custom_headers = nil) - response = list_perf_mon_counters_slot_next_async(next_page_link, custom_headers).value! + def list_perf_mon_counters_slot_next(next_page_link, custom_headers:nil) + response = list_perf_mon_counters_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -39123,8 +39307,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_perf_mon_counters_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_perf_mon_counters_slot_next_async(next_page_link, custom_headers).value! + def list_perf_mon_counters_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_perf_mon_counters_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -39139,11 +39323,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_perf_mon_counters_slot_next_async(next_page_link, custom_headers = nil) + def list_perf_mon_counters_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -39201,8 +39386,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessInfoCollection] operation results. # - def list_processes_slot_next(next_page_link, custom_headers = nil) - response = list_processes_slot_next_async(next_page_link, custom_headers).value! + def list_processes_slot_next(next_page_link, custom_headers:nil) + response = list_processes_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -39220,8 +39405,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_processes_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_processes_slot_next_async(next_page_link, custom_headers).value! + def list_processes_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_processes_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -39238,11 +39423,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_processes_slot_next_async(next_page_link, custom_headers = nil) + def list_processes_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -39300,8 +39486,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessModuleInfoCollection] operation results. # - def list_process_modules_slot_next(next_page_link, custom_headers = nil) - response = list_process_modules_slot_next_async(next_page_link, custom_headers).value! + def list_process_modules_slot_next(next_page_link, custom_headers:nil) + response = list_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -39319,8 +39505,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_process_modules_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_process_modules_slot_next_async(next_page_link, custom_headers).value! + def list_process_modules_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -39337,11 +39523,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_process_modules_slot_next_async(next_page_link, custom_headers = nil) + def list_process_modules_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -39399,8 +39586,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [ProcessThreadInfoCollection] operation results. # - def list_process_threads_slot_next(next_page_link, custom_headers = nil) - response = list_process_threads_slot_next_async(next_page_link, custom_headers).value! + def list_process_threads_slot_next(next_page_link, custom_headers:nil) + response = list_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -39418,8 +39605,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_process_threads_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_process_threads_slot_next_async(next_page_link, custom_headers).value! + def list_process_threads_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -39436,11 +39623,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_process_threads_slot_next_async(next_page_link, custom_headers = nil) + def list_process_threads_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -39496,8 +39684,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [PublicCertificateCollection] operation results. # - def list_public_certificates_slot_next(next_page_link, custom_headers = nil) - response = list_public_certificates_slot_next_async(next_page_link, custom_headers).value! + def list_public_certificates_slot_next(next_page_link, custom_headers:nil) + response = list_public_certificates_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -39513,8 +39701,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_public_certificates_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_public_certificates_slot_next_async(next_page_link, custom_headers).value! + def list_public_certificates_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_public_certificates_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -39529,11 +39717,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_public_certificates_slot_next_async(next_page_link, custom_headers = nil) + def list_public_certificates_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -39589,8 +39778,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SiteExtensionInfoCollection] operation results. # - def list_site_extensions_slot_next(next_page_link, custom_headers = nil) - response = list_site_extensions_slot_next_async(next_page_link, custom_headers).value! + def list_site_extensions_slot_next(next_page_link, custom_headers:nil) + response = list_site_extensions_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -39606,8 +39795,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_site_extensions_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_site_extensions_slot_next_async(next_page_link, custom_headers).value! + def list_site_extensions_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_site_extensions_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -39622,11 +39811,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_site_extensions_slot_next_async(next_page_link, custom_headers = nil) + def list_site_extensions_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -39682,8 +39872,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SlotDifferenceCollection] operation results. # - def list_slot_differences_slot_next(next_page_link, custom_headers = nil) - response = list_slot_differences_slot_next_async(next_page_link, custom_headers).value! + def list_slot_differences_slot_next(next_page_link, custom_headers:nil) + response = list_slot_differences_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -39699,8 +39889,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_slot_differences_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_slot_differences_slot_next_async(next_page_link, custom_headers).value! + def list_slot_differences_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_slot_differences_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -39715,11 +39905,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_slot_differences_slot_next_async(next_page_link, custom_headers = nil) + def list_slot_differences_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -39775,8 +39966,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SnapshotCollection] operation results. # - def list_snapshots_slot_next(next_page_link, custom_headers = nil) - response = list_snapshots_slot_next_async(next_page_link, custom_headers).value! + def list_snapshots_slot_next(next_page_link, custom_headers:nil) + response = list_snapshots_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -39792,8 +39983,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_snapshots_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_snapshots_slot_next_async(next_page_link, custom_headers).value! + def list_snapshots_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_snapshots_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -39808,11 +39999,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_snapshots_slot_next_async(next_page_link, custom_headers = nil) + def list_snapshots_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -39868,8 +40060,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [TriggeredWebJobCollection] operation results. # - def list_triggered_web_jobs_slot_next(next_page_link, custom_headers = nil) - response = list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers).value! + def list_triggered_web_jobs_slot_next(next_page_link, custom_headers:nil) + response = list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -39885,8 +40077,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_triggered_web_jobs_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers).value! + def list_triggered_web_jobs_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -39901,11 +40093,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers = nil) + def list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -39961,8 +40154,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [TriggeredJobHistoryCollection] operation results. # - def list_triggered_web_job_history_slot_next(next_page_link, custom_headers = nil) - response = list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers).value! + def list_triggered_web_job_history_slot_next(next_page_link, custom_headers:nil) + response = list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -39978,8 +40171,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_triggered_web_job_history_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers).value! + def list_triggered_web_job_history_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -39994,11 +40187,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers = nil) + def list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -40056,8 +40250,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [CsmUsageQuotaCollection] operation results. # - def list_usages_slot_next(next_page_link, custom_headers = nil) - response = list_usages_slot_next_async(next_page_link, custom_headers).value! + def list_usages_slot_next(next_page_link, custom_headers:nil) + response = list_usages_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -40075,8 +40269,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usages_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_usages_slot_next_async(next_page_link, custom_headers).value! + def list_usages_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_usages_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -40093,11 +40287,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usages_slot_next_async(next_page_link, custom_headers = nil) + def list_usages_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -40153,8 +40348,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [WebJobCollection] operation results. # - def list_web_jobs_slot_next(next_page_link, custom_headers = nil) - response = list_web_jobs_slot_next_async(next_page_link, custom_headers).value! + def list_web_jobs_slot_next(next_page_link, custom_headers:nil) + response = list_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -40170,8 +40365,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_jobs_slot_next_with_http_info(next_page_link, custom_headers = nil) - list_web_jobs_slot_next_async(next_page_link, custom_headers).value! + def list_web_jobs_slot_next_with_http_info(next_page_link, custom_headers:nil) + list_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -40186,11 +40381,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_jobs_slot_next_async(next_page_link, custom_headers = nil) + def list_web_jobs_slot_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -40246,8 +40442,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SlotDifferenceCollection] operation results. # - def list_slot_differences_from_production_next(next_page_link, custom_headers = nil) - response = list_slot_differences_from_production_next_async(next_page_link, custom_headers).value! + def list_slot_differences_from_production_next(next_page_link, custom_headers:nil) + response = list_slot_differences_from_production_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -40263,8 +40459,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_slot_differences_from_production_next_with_http_info(next_page_link, custom_headers = nil) - list_slot_differences_from_production_next_async(next_page_link, custom_headers).value! + def list_slot_differences_from_production_next_with_http_info(next_page_link, custom_headers:nil) + list_slot_differences_from_production_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -40279,11 +40475,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_slot_differences_from_production_next_async(next_page_link, custom_headers = nil) + def list_slot_differences_from_production_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -40339,8 +40536,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [SnapshotCollection] operation results. # - def list_snapshots_next(next_page_link, custom_headers = nil) - response = list_snapshots_next_async(next_page_link, custom_headers).value! + def list_snapshots_next(next_page_link, custom_headers:nil) + response = list_snapshots_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -40356,8 +40553,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_snapshots_next_with_http_info(next_page_link, custom_headers = nil) - list_snapshots_next_async(next_page_link, custom_headers).value! + def list_snapshots_next_with_http_info(next_page_link, custom_headers:nil) + list_snapshots_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -40372,11 +40569,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_snapshots_next_async(next_page_link, custom_headers = nil) + def list_snapshots_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -40432,8 +40630,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [TriggeredWebJobCollection] operation results. # - def list_triggered_web_jobs_next(next_page_link, custom_headers = nil) - response = list_triggered_web_jobs_next_async(next_page_link, custom_headers).value! + def list_triggered_web_jobs_next(next_page_link, custom_headers:nil) + response = list_triggered_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -40449,8 +40647,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_triggered_web_jobs_next_with_http_info(next_page_link, custom_headers = nil) - list_triggered_web_jobs_next_async(next_page_link, custom_headers).value! + def list_triggered_web_jobs_next_with_http_info(next_page_link, custom_headers:nil) + list_triggered_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -40465,11 +40663,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_triggered_web_jobs_next_async(next_page_link, custom_headers = nil) + def list_triggered_web_jobs_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -40525,8 +40724,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [TriggeredJobHistoryCollection] operation results. # - def list_triggered_web_job_history_next(next_page_link, custom_headers = nil) - response = list_triggered_web_job_history_next_async(next_page_link, custom_headers).value! + def list_triggered_web_job_history_next(next_page_link, custom_headers:nil) + response = list_triggered_web_job_history_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -40542,8 +40741,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_triggered_web_job_history_next_with_http_info(next_page_link, custom_headers = nil) - list_triggered_web_job_history_next_async(next_page_link, custom_headers).value! + def list_triggered_web_job_history_next_with_http_info(next_page_link, custom_headers:nil) + list_triggered_web_job_history_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -40558,11 +40757,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_triggered_web_job_history_next_async(next_page_link, custom_headers = nil) + def list_triggered_web_job_history_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -40620,8 +40820,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [CsmUsageQuotaCollection] operation results. # - def list_usages_next(next_page_link, custom_headers = nil) - response = list_usages_next_async(next_page_link, custom_headers).value! + def list_usages_next(next_page_link, custom_headers:nil) + response = list_usages_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -40639,8 +40839,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usages_next_with_http_info(next_page_link, custom_headers = nil) - list_usages_next_async(next_page_link, custom_headers).value! + def list_usages_next_with_http_info(next_page_link, custom_headers:nil) + list_usages_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -40657,11 +40857,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usages_next_async(next_page_link, custom_headers = nil) + def list_usages_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -40717,8 +40918,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [WebJobCollection] operation results. # - def list_web_jobs_next(next_page_link, custom_headers = nil) - response = list_web_jobs_next_async(next_page_link, custom_headers).value! + def list_web_jobs_next(next_page_link, custom_headers:nil) + response = list_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -40734,8 +40935,8 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_jobs_next_with_http_info(next_page_link, custom_headers = nil) - list_web_jobs_next_async(next_page_link, custom_headers).value! + def list_web_jobs_next_with_http_info(next_page_link, custom_headers:nil) + list_web_jobs_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -40750,11 +40951,12 @@ module Azure::Web::Mgmt::V2016_08_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_jobs_next_async(next_page_link, custom_headers = nil) + def list_web_jobs_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -40809,12 +41011,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [WebAppCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -40836,12 +41038,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [WebAppCollection] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, include_slots = nil, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, include_slots, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, include_slots:nil, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, include_slots:include_slots, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -40861,12 +41063,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [BackupItemCollection] which provide lazy access to pages of the # response. # - def list_backups_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_backups_async(resource_group_name, name, custom_headers).value! + def list_backups_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_backups_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_backups_next_async(next_page_link, custom_headers) + list_backups_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -40886,12 +41088,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [SiteConfigResourceCollection] which provide lazy access to pages of # the response. # - def list_configurations_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_configurations_async(resource_group_name, name, custom_headers).value! + def list_configurations_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_configurations_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_configurations_next_async(next_page_link, custom_headers) + list_configurations_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -40911,12 +41113,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ContinuousWebJobCollection] which provide lazy access to pages of # the response. # - def list_continuous_web_jobs_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_continuous_web_jobs_async(resource_group_name, name, custom_headers).value! + def list_continuous_web_jobs_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_continuous_web_jobs_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_continuous_web_jobs_next_async(next_page_link, custom_headers) + list_continuous_web_jobs_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -40936,12 +41138,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [DeploymentCollection] which provide lazy access to pages of the # response. # - def list_deployments_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_deployments_async(resource_group_name, name, custom_headers).value! + def list_deployments_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_deployments_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_deployments_next_async(next_page_link, custom_headers) + list_deployments_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -40961,12 +41163,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [IdentifierCollection] which provide lazy access to pages of the # response. # - def list_domain_ownership_identifiers_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_domain_ownership_identifiers_async(resource_group_name, name, custom_headers).value! + def list_domain_ownership_identifiers_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_domain_ownership_identifiers_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_domain_ownership_identifiers_next_async(next_page_link, custom_headers) + list_domain_ownership_identifiers_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -40986,12 +41188,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [FunctionEnvelopeCollection] which provide lazy access to pages of # the response. # - def list_functions_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_functions_async(resource_group_name, name, custom_headers).value! + def list_functions_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_functions_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_functions_next_async(next_page_link, custom_headers) + list_functions_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41011,12 +41213,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [HostNameBindingCollection] which provide lazy access to pages of the # response. # - def list_host_name_bindings_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_host_name_bindings_async(resource_group_name, name, custom_headers).value! + def list_host_name_bindings_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_host_name_bindings_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_host_name_bindings_next_async(next_page_link, custom_headers) + list_host_name_bindings_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41036,12 +41238,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [WebAppInstanceCollection] which provide lazy access to pages of the # response. # - def list_instance_identifiers_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_instance_identifiers_async(resource_group_name, name, custom_headers).value! + def list_instance_identifiers_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_instance_identifiers_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_instance_identifiers_next_async(next_page_link, custom_headers) + list_instance_identifiers_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41066,12 +41268,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessInfoCollection] which provide lazy access to pages of the # response. # - def list_instance_processes_as_lazy(resource_group_name, name, instance_id, custom_headers = nil) - response = list_instance_processes_async(resource_group_name, name, instance_id, custom_headers).value! + def list_instance_processes_as_lazy(resource_group_name, name, instance_id, custom_headers:nil) + response = list_instance_processes_async(resource_group_name, name, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_instance_processes_next_async(next_page_link, custom_headers) + list_instance_processes_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41097,12 +41299,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessModuleInfoCollection] which provide lazy access to pages of # the response. # - def list_instance_process_modules_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers = nil) - response = list_instance_process_modules_async(resource_group_name, name, process_id, instance_id, custom_headers).value! + def list_instance_process_modules_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers:nil) + response = list_instance_process_modules_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_instance_process_modules_next_async(next_page_link, custom_headers) + list_instance_process_modules_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41128,12 +41330,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessThreadInfoCollection] which provide lazy access to pages of # the response. # - def list_instance_process_threads_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers = nil) - response = list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers).value! + def list_instance_process_threads_as_lazy(resource_group_name, name, process_id, instance_id, custom_headers:nil) + response = list_instance_process_threads_async(resource_group_name, name, process_id, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_instance_process_threads_next_async(next_page_link, custom_headers) + list_instance_process_threads_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41153,12 +41355,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ResourceMetricDefinitionCollection] which provide lazy access to # pages of the response. # - def list_metric_definitions_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_metric_definitions_async(resource_group_name, name, custom_headers).value! + def list_metric_definitions_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_metric_definitions_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_metric_definitions_next_async(next_page_link, custom_headers) + list_metric_definitions_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41184,12 +41386,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ResourceMetricCollection] which provide lazy access to pages of the # response. # - def list_metrics_as_lazy(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) - response = list_metrics_async(resource_group_name, name, details, filter, custom_headers).value! + def list_metrics_as_lazy(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) + response = list_metrics_async(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_metrics_next_async(next_page_link, custom_headers) + list_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41213,12 +41415,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [PerfMonCounterCollection] which provide lazy access to pages of the # response. # - def list_perf_mon_counters_as_lazy(resource_group_name, name, filter = nil, custom_headers = nil) - response = list_perf_mon_counters_async(resource_group_name, name, filter, custom_headers).value! + def list_perf_mon_counters_as_lazy(resource_group_name, name, filter:nil, custom_headers:nil) + response = list_perf_mon_counters_async(resource_group_name, name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_perf_mon_counters_next_async(next_page_link, custom_headers) + list_perf_mon_counters_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41240,12 +41442,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessInfoCollection] which provide lazy access to pages of the # response. # - def list_processes_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_processes_async(resource_group_name, name, custom_headers).value! + def list_processes_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_processes_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_processes_next_async(next_page_link, custom_headers) + list_processes_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41268,12 +41470,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessModuleInfoCollection] which provide lazy access to pages of # the response. # - def list_process_modules_as_lazy(resource_group_name, name, process_id, custom_headers = nil) - response = list_process_modules_async(resource_group_name, name, process_id, custom_headers).value! + def list_process_modules_as_lazy(resource_group_name, name, process_id, custom_headers:nil) + response = list_process_modules_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_process_modules_next_async(next_page_link, custom_headers) + list_process_modules_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41296,12 +41498,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessThreadInfoCollection] which provide lazy access to pages of # the response. # - def list_process_threads_as_lazy(resource_group_name, name, process_id, custom_headers = nil) - response = list_process_threads_async(resource_group_name, name, process_id, custom_headers).value! + def list_process_threads_as_lazy(resource_group_name, name, process_id, custom_headers:nil) + response = list_process_threads_async(resource_group_name, name, process_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_process_threads_next_async(next_page_link, custom_headers) + list_process_threads_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41321,12 +41523,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [PublicCertificateCollection] which provide lazy access to pages of # the response. # - def list_public_certificates_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_public_certificates_async(resource_group_name, name, custom_headers).value! + def list_public_certificates_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_public_certificates_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_public_certificates_next_async(next_page_link, custom_headers) + list_public_certificates_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41346,12 +41548,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [SiteExtensionInfoCollection] which provide lazy access to pages of # the response. # - def list_site_extensions_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_site_extensions_async(resource_group_name, name, custom_headers).value! + def list_site_extensions_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_site_extensions_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_site_extensions_next_async(next_page_link, custom_headers) + list_site_extensions_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41371,12 +41573,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [WebAppCollection] which provide lazy access to pages of the # response. # - def list_slots_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_slots_async(resource_group_name, name, custom_headers).value! + def list_slots_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_slots_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_slots_next_async(next_page_link, custom_headers) + list_slots_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41398,12 +41600,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [BackupItemCollection] which provide lazy access to pages of the # response. # - def list_backups_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_backups_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_backups_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_backups_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_backups_slot_next_async(next_page_link, custom_headers) + list_backups_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41425,12 +41627,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [SiteConfigResourceCollection] which provide lazy access to pages of # the response. # - def list_configurations_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_configurations_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_configurations_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_configurations_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_configurations_slot_next_async(next_page_link, custom_headers) + list_configurations_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41452,12 +41654,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ContinuousWebJobCollection] which provide lazy access to pages of # the response. # - def list_continuous_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_continuous_web_jobs_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_continuous_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_continuous_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers) + list_continuous_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41479,12 +41681,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [DeploymentCollection] which provide lazy access to pages of the # response. # - def list_deployments_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_deployments_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_deployments_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_deployments_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_deployments_slot_next_async(next_page_link, custom_headers) + list_deployments_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41506,12 +41708,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [IdentifierCollection] which provide lazy access to pages of the # response. # - def list_domain_ownership_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_domain_ownership_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_domain_ownership_identifiers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers) + list_domain_ownership_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41533,12 +41735,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [FunctionEnvelopeCollection] which provide lazy access to pages of # the response. # - def list_instance_functions_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_instance_functions_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_instance_functions_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_instance_functions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_instance_functions_slot_next_async(next_page_link, custom_headers) + list_instance_functions_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41560,12 +41762,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [HostNameBindingCollection] which provide lazy access to pages of the # response. # - def list_host_name_bindings_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_host_name_bindings_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_host_name_bindings_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_host_name_bindings_slot_next_async(next_page_link, custom_headers) + list_host_name_bindings_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41587,12 +41789,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [WebAppInstanceCollection] which provide lazy access to pages of the # response. # - def list_instance_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_instance_identifiers_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_instance_identifiers_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_instance_identifiers_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_instance_identifiers_slot_next_async(next_page_link, custom_headers) + list_instance_identifiers_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41619,12 +41821,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessInfoCollection] which provide lazy access to pages of the # response. # - def list_instance_processes_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers = nil) - response = list_instance_processes_slot_async(resource_group_name, name, slot, instance_id, custom_headers).value! + def list_instance_processes_slot_as_lazy(resource_group_name, name, slot, instance_id, custom_headers:nil) + response = list_instance_processes_slot_async(resource_group_name, name, slot, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_instance_processes_slot_next_async(next_page_link, custom_headers) + list_instance_processes_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41652,12 +41854,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessModuleInfoCollection] which provide lazy access to pages of # the response. # - def list_instance_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - response = list_instance_process_modules_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers).value! + def list_instance_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + response = list_instance_process_modules_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_instance_process_modules_slot_next_async(next_page_link, custom_headers) + list_instance_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41685,12 +41887,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessThreadInfoCollection] which provide lazy access to pages of # the response. # - def list_instance_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers = nil) - response = list_instance_process_threads_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers).value! + def list_instance_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, instance_id, custom_headers:nil) + response = list_instance_process_threads_slot_async(resource_group_name, name, process_id, slot, instance_id, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_instance_process_threads_slot_next_async(next_page_link, custom_headers) + list_instance_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41712,12 +41914,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ResourceMetricDefinitionCollection] which provide lazy access to # pages of the response. # - def list_metric_definitions_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_metric_definitions_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_metric_definitions_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_metric_definitions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_metric_definitions_slot_next_async(next_page_link, custom_headers) + list_metric_definitions_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41745,12 +41947,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ResourceMetricCollection] which provide lazy access to pages of the # response. # - def list_metrics_slot_as_lazy(resource_group_name, name, slot, details = nil, filter = nil, custom_headers = nil) - response = list_metrics_slot_async(resource_group_name, name, slot, details, filter, custom_headers).value! + def list_metrics_slot_as_lazy(resource_group_name, name, slot, details:nil, filter:nil, custom_headers:nil) + response = list_metrics_slot_async(resource_group_name, name, slot, details:details, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_metrics_slot_next_async(next_page_link, custom_headers) + list_metrics_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41776,12 +41978,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [PerfMonCounterCollection] which provide lazy access to pages of the # response. # - def list_perf_mon_counters_slot_as_lazy(resource_group_name, name, slot, filter = nil, custom_headers = nil) - response = list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter, custom_headers).value! + def list_perf_mon_counters_slot_as_lazy(resource_group_name, name, slot, filter:nil, custom_headers:nil) + response = list_perf_mon_counters_slot_async(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_perf_mon_counters_slot_next_async(next_page_link, custom_headers) + list_perf_mon_counters_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41805,12 +42007,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessInfoCollection] which provide lazy access to pages of the # response. # - def list_processes_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_processes_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_processes_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_processes_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_processes_slot_next_async(next_page_link, custom_headers) + list_processes_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41835,12 +42037,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessModuleInfoCollection] which provide lazy access to pages of # the response. # - def list_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers = nil) - response = list_process_modules_slot_async(resource_group_name, name, process_id, slot, custom_headers).value! + def list_process_modules_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers:nil) + response = list_process_modules_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_process_modules_slot_next_async(next_page_link, custom_headers) + list_process_modules_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41865,12 +42067,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [ProcessThreadInfoCollection] which provide lazy access to pages of # the response. # - def list_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers = nil) - response = list_process_threads_slot_async(resource_group_name, name, process_id, slot, custom_headers).value! + def list_process_threads_slot_as_lazy(resource_group_name, name, process_id, slot, custom_headers:nil) + response = list_process_threads_slot_async(resource_group_name, name, process_id, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_process_threads_slot_next_async(next_page_link, custom_headers) + list_process_threads_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41892,12 +42094,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [PublicCertificateCollection] which provide lazy access to pages of # the response. # - def list_public_certificates_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_public_certificates_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_public_certificates_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_public_certificates_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_public_certificates_slot_next_async(next_page_link, custom_headers) + list_public_certificates_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41919,12 +42121,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [SiteExtensionInfoCollection] which provide lazy access to pages of # the response. # - def list_site_extensions_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_site_extensions_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_site_extensions_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_site_extensions_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_site_extensions_slot_next_async(next_page_link, custom_headers) + list_site_extensions_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41948,12 +42150,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [SlotDifferenceCollection] which provide lazy access to pages of the # response. # - def list_slot_differences_slot_as_lazy(resource_group_name, name, slot_swap_entity, slot, custom_headers = nil) - response = list_slot_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers).value! + def list_slot_differences_slot_as_lazy(resource_group_name, name, slot_swap_entity, slot, custom_headers:nil) + response = list_slot_differences_slot_async(resource_group_name, name, slot_swap_entity, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_slot_differences_slot_next_async(next_page_link, custom_headers) + list_slot_differences_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -41974,12 +42176,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [SnapshotCollection] which provide lazy access to pages of the # response. # - def list_snapshots_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_snapshots_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_snapshots_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_snapshots_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_snapshots_slot_next_async(next_page_link, custom_headers) + list_snapshots_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -42001,12 +42203,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [TriggeredWebJobCollection] which provide lazy access to pages of the # response. # - def list_triggered_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_triggered_web_jobs_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_triggered_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_triggered_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers) + list_triggered_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -42030,12 +42232,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [TriggeredJobHistoryCollection] which provide lazy access to pages of # the response. # - def list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers = nil) - response = list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers).value! + def list_triggered_web_job_history_slot_as_lazy(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:nil) + response = list_triggered_web_job_history_slot_async(resource_group_name, name, web_job_id, slot, web_job_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers) + list_triggered_web_job_history_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -42063,12 +42265,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [CsmUsageQuotaCollection] which provide lazy access to pages of the # response. # - def list_usages_slot_as_lazy(resource_group_name, name, slot, filter = nil, custom_headers = nil) - response = list_usages_slot_async(resource_group_name, name, slot, filter, custom_headers).value! + def list_usages_slot_as_lazy(resource_group_name, name, slot, filter:nil, custom_headers:nil) + response = list_usages_slot_async(resource_group_name, name, slot, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_usages_slot_next_async(next_page_link, custom_headers) + list_usages_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -42090,12 +42292,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [WebJobCollection] which provide lazy access to pages of the # response. # - def list_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers = nil) - response = list_web_jobs_slot_async(resource_group_name, name, slot, custom_headers).value! + def list_web_jobs_slot_as_lazy(resource_group_name, name, slot, custom_headers:nil) + response = list_web_jobs_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_web_jobs_slot_next_async(next_page_link, custom_headers) + list_web_jobs_slot_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -42117,12 +42319,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [SlotDifferenceCollection] which provide lazy access to pages of the # response. # - def list_slot_differences_from_production_as_lazy(resource_group_name, name, slot_swap_entity, custom_headers = nil) - response = list_slot_differences_from_production_async(resource_group_name, name, slot_swap_entity, custom_headers).value! + def list_slot_differences_from_production_as_lazy(resource_group_name, name, slot_swap_entity, custom_headers:nil) + response = list_slot_differences_from_production_async(resource_group_name, name, slot_swap_entity, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_slot_differences_from_production_next_async(next_page_link, custom_headers) + list_slot_differences_from_production_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -42142,12 +42344,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [SnapshotCollection] which provide lazy access to pages of the # response. # - def list_snapshots_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_snapshots_async(resource_group_name, name, custom_headers).value! + def list_snapshots_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_snapshots_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_snapshots_next_async(next_page_link, custom_headers) + list_snapshots_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -42167,12 +42369,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [TriggeredWebJobCollection] which provide lazy access to pages of the # response. # - def list_triggered_web_jobs_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_triggered_web_jobs_async(resource_group_name, name, custom_headers).value! + def list_triggered_web_jobs_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_triggered_web_jobs_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_triggered_web_jobs_next_async(next_page_link, custom_headers) + list_triggered_web_jobs_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -42194,12 +42396,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [TriggeredJobHistoryCollection] which provide lazy access to pages of # the response. # - def list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_id, web_job_name, custom_headers = nil) - response = list_triggered_web_job_history_async(resource_group_name, name, web_job_id, web_job_name, custom_headers).value! + def list_triggered_web_job_history_as_lazy(resource_group_name, name, web_job_id, web_job_name, custom_headers:nil) + response = list_triggered_web_job_history_async(resource_group_name, name, web_job_id, web_job_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_triggered_web_job_history_next_async(next_page_link, custom_headers) + list_triggered_web_job_history_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -42225,12 +42427,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [CsmUsageQuotaCollection] which provide lazy access to pages of the # response. # - def list_usages_as_lazy(resource_group_name, name, filter = nil, custom_headers = nil) - response = list_usages_async(resource_group_name, name, filter, custom_headers).value! + def list_usages_as_lazy(resource_group_name, name, filter:nil, custom_headers:nil) + response = list_usages_async(resource_group_name, name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_usages_next_async(next_page_link, custom_headers) + list_usages_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -42250,12 +42452,12 @@ module Azure::Web::Mgmt::V2016_08_01 # @return [WebJobCollection] which provide lazy access to pages of the # response. # - def list_web_jobs_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_web_jobs_async(resource_group_name, name, custom_headers).value! + def list_web_jobs_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_web_jobs_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_web_jobs_next_async(next_page_link, custom_headers) + list_web_jobs_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb index 8b361a318..fe8f4c17c 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_environments.rb @@ -31,8 +31,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(custom_headers = nil) - first_page = list_as_lazy(custom_headers) + def list(custom_headers:nil) + first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end @@ -46,8 +46,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers = nil) - list_async(custom_headers).value! + def list_with_http_info(custom_headers:nil) + list_async(custom_headers:custom_headers).value! end # @@ -60,12 +60,13 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers = nil) + def list_async(custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -122,8 +123,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -139,8 +140,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -155,7 +156,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -165,6 +166,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,8 +224,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AppServiceEnvironmentResource] operation results. # - def get(resource_group_name, name, custom_headers = nil) - response = get_async(resource_group_name, name, custom_headers).value! + def get(resource_group_name, name, custom_headers:nil) + response = get_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -240,8 +242,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, custom_headers = nil) - get_async(resource_group_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, name, custom_headers:nil) + get_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -257,7 +259,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, custom_headers = nil) + def get_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -268,6 +270,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -327,8 +330,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AppServiceEnvironmentResource] operation results. # - def create_or_update(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers).value! + def create_or_update(resource_group_name, name, hosting_environment_envelope, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -344,9 +347,9 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) + def create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers) + promise = begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -376,8 +379,8 @@ module Azure::Web::Mgmt::V2016_09_01 # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, name, force_delete = nil, custom_headers = nil) - response = delete_async(resource_group_name, name, force_delete, custom_headers).value! + def delete(resource_group_name, name, force_delete:nil, custom_headers:nil) + response = delete_async(resource_group_name, name, force_delete:force_delete, custom_headers:custom_headers).value! nil end @@ -394,9 +397,9 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, name, force_delete = nil, custom_headers = nil) + def delete_async(resource_group_name, name, force_delete:nil, custom_headers:nil) # Send request - promise = begin_delete_async(resource_group_name, name, force_delete, custom_headers) + promise = begin_delete_async(resource_group_name, name, force_delete:force_delete, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -425,8 +428,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_capacities(resource_group_name, name, custom_headers = nil) - first_page = list_capacities_as_lazy(resource_group_name, name, custom_headers) + def list_capacities(resource_group_name, name, custom_headers:nil) + first_page = list_capacities_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -445,8 +448,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_capacities_with_http_info(resource_group_name, name, custom_headers = nil) - list_capacities_async(resource_group_name, name, custom_headers).value! + def list_capacities_with_http_info(resource_group_name, name, custom_headers:nil) + list_capacities_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -464,7 +467,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_capacities_async(resource_group_name, name, custom_headers = nil) + def list_capacities_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -475,6 +478,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -532,8 +536,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AddressResponse] operation results. # - def list_vips(resource_group_name, name, custom_headers = nil) - response = list_vips_async(resource_group_name, name, custom_headers).value! + def list_vips(resource_group_name, name, custom_headers:nil) + response = list_vips_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -550,8 +554,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_vips_with_http_info(resource_group_name, name, custom_headers = nil) - list_vips_async(resource_group_name, name, custom_headers).value! + def list_vips_with_http_info(resource_group_name, name, custom_headers:nil) + list_vips_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -567,7 +571,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_vips_async(resource_group_name, name, custom_headers = nil) + def list_vips_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -578,6 +582,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -635,8 +640,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_diagnostics(resource_group_name, name, custom_headers = nil) - response = list_diagnostics_async(resource_group_name, name, custom_headers).value! + def list_diagnostics(resource_group_name, name, custom_headers:nil) + response = list_diagnostics_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -653,8 +658,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_diagnostics_with_http_info(resource_group_name, name, custom_headers = nil) - list_diagnostics_async(resource_group_name, name, custom_headers).value! + def list_diagnostics_with_http_info(resource_group_name, name, custom_headers:nil) + list_diagnostics_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -670,7 +675,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_diagnostics_async(resource_group_name, name, custom_headers = nil) + def list_diagnostics_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -681,6 +686,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -755,8 +761,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [HostingEnvironmentDiagnostics] operation results. # - def get_diagnostics_item(resource_group_name, name, diagnostics_name, custom_headers = nil) - response = get_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers).value! + def get_diagnostics_item(resource_group_name, name, diagnostics_name, custom_headers:nil) + response = get_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -774,8 +780,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_diagnostics_item_with_http_info(resource_group_name, name, diagnostics_name, custom_headers = nil) - get_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers).value! + def get_diagnostics_item_with_http_info(resource_group_name, name, diagnostics_name, custom_headers:nil) + get_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers:custom_headers).value! end # @@ -792,7 +798,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers = nil) + def get_diagnostics_item_async(resource_group_name, name, diagnostics_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -804,6 +810,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -861,8 +868,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MetricDefinition] operation results. # - def list_metric_definitions(resource_group_name, name, custom_headers = nil) - response = list_metric_definitions_async(resource_group_name, name, custom_headers).value! + def list_metric_definitions(resource_group_name, name, custom_headers:nil) + response = list_metric_definitions_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -879,8 +886,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_definitions_with_http_info(resource_group_name, name, custom_headers = nil) - list_metric_definitions_async(resource_group_name, name, custom_headers).value! + def list_metric_definitions_with_http_info(resource_group_name, name, custom_headers:nil) + list_metric_definitions_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -896,7 +903,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_definitions_async(resource_group_name, name, custom_headers = nil) + def list_metric_definitions_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -907,6 +914,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -970,8 +978,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_metrics(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) - first_page = list_metrics_as_lazy(resource_group_name, name, details, filter, custom_headers) + def list_metrics(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) + first_page = list_metrics_as_lazy(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -994,8 +1002,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_with_http_info(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) - list_metrics_async(resource_group_name, name, details, filter, custom_headers).value! + def list_metrics_with_http_info(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) + list_metrics_async(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers).value! end # @@ -1017,7 +1025,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_async(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) + def list_metrics_async(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1028,6 +1036,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1086,8 +1095,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_multi_role_pools(resource_group_name, name, custom_headers = nil) - first_page = list_multi_role_pools_as_lazy(resource_group_name, name, custom_headers) + def list_multi_role_pools(resource_group_name, name, custom_headers:nil) + first_page = list_multi_role_pools_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -1104,8 +1113,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_pools_with_http_info(resource_group_name, name, custom_headers = nil) - list_multi_role_pools_async(resource_group_name, name, custom_headers).value! + def list_multi_role_pools_with_http_info(resource_group_name, name, custom_headers:nil) + list_multi_role_pools_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1121,7 +1130,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_pools_async(resource_group_name, name, custom_headers = nil) + def list_multi_role_pools_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1132,6 +1141,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1189,8 +1199,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WorkerPoolResource] operation results. # - def get_multi_role_pool(resource_group_name, name, custom_headers = nil) - response = get_multi_role_pool_async(resource_group_name, name, custom_headers).value! + def get_multi_role_pool(resource_group_name, name, custom_headers:nil) + response = get_multi_role_pool_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1207,8 +1217,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_multi_role_pool_with_http_info(resource_group_name, name, custom_headers = nil) - get_multi_role_pool_async(resource_group_name, name, custom_headers).value! + def get_multi_role_pool_with_http_info(resource_group_name, name, custom_headers:nil) + get_multi_role_pool_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1224,7 +1234,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_multi_role_pool_async(resource_group_name, name, custom_headers = nil) + def get_multi_role_pool_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1235,6 +1245,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1294,8 +1305,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WorkerPoolResource] operation results. # - def create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) - response = create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers).value! + def create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers:nil) + response = create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1311,9 +1322,9 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) + def create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:nil) # Send request - promise = begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers) + promise = begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -1345,8 +1356,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_multi_role_pool_instance_metric_definitions(resource_group_name, name, instance, custom_headers = nil) - first_page = list_multi_role_pool_instance_metric_definitions_as_lazy(resource_group_name, name, instance, custom_headers) + def list_multi_role_pool_instance_metric_definitions(resource_group_name, name, instance, custom_headers:nil) + first_page = list_multi_role_pool_instance_metric_definitions_as_lazy(resource_group_name, name, instance, custom_headers:custom_headers) first_page.get_all_items end @@ -1366,8 +1377,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_pool_instance_metric_definitions_with_http_info(resource_group_name, name, instance, custom_headers = nil) - list_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers).value! + def list_multi_role_pool_instance_metric_definitions_with_http_info(resource_group_name, name, instance, custom_headers:nil) + list_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers:custom_headers).value! end # @@ -1386,7 +1397,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers = nil) + def list_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1398,6 +1409,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1460,8 +1472,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_multi_role_pool_instance_metrics(resource_group_name, name, instance, details = nil, custom_headers = nil) - first_page = list_multi_role_pool_instance_metrics_as_lazy(resource_group_name, name, instance, details, custom_headers) + def list_multi_role_pool_instance_metrics(resource_group_name, name, instance, details:nil, custom_headers:nil) + first_page = list_multi_role_pool_instance_metrics_as_lazy(resource_group_name, name, instance, details:details, custom_headers:custom_headers) first_page.get_all_items end @@ -1483,8 +1495,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_pool_instance_metrics_with_http_info(resource_group_name, name, instance, details = nil, custom_headers = nil) - list_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details, custom_headers).value! + def list_multi_role_pool_instance_metrics_with_http_info(resource_group_name, name, instance, details:nil, custom_headers:nil) + list_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details:details, custom_headers:custom_headers).value! end # @@ -1505,7 +1517,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details = nil, custom_headers = nil) + def list_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1517,6 +1529,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1574,8 +1587,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_multi_role_metric_definitions(resource_group_name, name, custom_headers = nil) - first_page = list_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers) + def list_multi_role_metric_definitions(resource_group_name, name, custom_headers:nil) + first_page = list_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -1592,8 +1605,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_metric_definitions_with_http_info(resource_group_name, name, custom_headers = nil) - list_multi_role_metric_definitions_async(resource_group_name, name, custom_headers).value! + def list_multi_role_metric_definitions_with_http_info(resource_group_name, name, custom_headers:nil) + list_multi_role_metric_definitions_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1609,7 +1622,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_metric_definitions_async(resource_group_name, name, custom_headers = nil) + def list_multi_role_metric_definitions_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1620,6 +1633,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1686,8 +1700,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_multi_role_metrics(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) - first_page = list_multi_role_metrics_as_lazy(resource_group_name, name, start_time, end_time, time_grain, details, filter, custom_headers) + def list_multi_role_metrics(resource_group_name, name, start_time:nil, end_time:nil, time_grain:nil, details:nil, filter:nil, custom_headers:nil) + first_page = list_multi_role_metrics_as_lazy(resource_group_name, name, start_time:start_time, end_time:end_time, time_grain:time_grain, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -1713,8 +1727,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_metrics_with_http_info(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) - list_multi_role_metrics_async(resource_group_name, name, start_time, end_time, time_grain, details, filter, custom_headers).value! + def list_multi_role_metrics_with_http_info(resource_group_name, name, start_time:nil, end_time:nil, time_grain:nil, details:nil, filter:nil, custom_headers:nil) + list_multi_role_metrics_async(resource_group_name, name, start_time:start_time, end_time:end_time, time_grain:time_grain, details:details, filter:filter, custom_headers:custom_headers).value! end # @@ -1739,7 +1753,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_metrics_async(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) + def list_multi_role_metrics_async(resource_group_name, name, start_time:nil, end_time:nil, time_grain:nil, details:nil, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1750,6 +1764,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1808,8 +1823,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_multi_role_pool_skus(resource_group_name, name, custom_headers = nil) - first_page = list_multi_role_pool_skus_as_lazy(resource_group_name, name, custom_headers) + def list_multi_role_pool_skus(resource_group_name, name, custom_headers:nil) + first_page = list_multi_role_pool_skus_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -1826,8 +1841,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_pool_skus_with_http_info(resource_group_name, name, custom_headers = nil) - list_multi_role_pool_skus_async(resource_group_name, name, custom_headers).value! + def list_multi_role_pool_skus_with_http_info(resource_group_name, name, custom_headers:nil) + list_multi_role_pool_skus_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1843,7 +1858,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_pool_skus_async(resource_group_name, name, custom_headers = nil) + def list_multi_role_pool_skus_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1854,6 +1869,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1911,8 +1927,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_multi_role_usages(resource_group_name, name, custom_headers = nil) - first_page = list_multi_role_usages_as_lazy(resource_group_name, name, custom_headers) + def list_multi_role_usages(resource_group_name, name, custom_headers:nil) + first_page = list_multi_role_usages_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -1929,8 +1945,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_usages_with_http_info(resource_group_name, name, custom_headers = nil) - list_multi_role_usages_async(resource_group_name, name, custom_headers).value! + def list_multi_role_usages_with_http_info(resource_group_name, name, custom_headers:nil) + list_multi_role_usages_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1946,7 +1962,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_usages_async(resource_group_name, name, custom_headers = nil) + def list_multi_role_usages_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1957,6 +1973,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2014,8 +2031,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_operations(resource_group_name, name, custom_headers = nil) - response = list_operations_async(resource_group_name, name, custom_headers).value! + def list_operations(resource_group_name, name, custom_headers:nil) + response = list_operations_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2032,8 +2049,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_with_http_info(resource_group_name, name, custom_headers = nil) - list_operations_async(resource_group_name, name, custom_headers).value! + def list_operations_with_http_info(resource_group_name, name, custom_headers:nil) + list_operations_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -2049,7 +2066,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_async(resource_group_name, name, custom_headers = nil) + def list_operations_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2060,6 +2077,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2132,8 +2150,8 @@ module Azure::Web::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def reboot(resource_group_name, name, custom_headers = nil) - response = reboot_async(resource_group_name, name, custom_headers).value! + def reboot(resource_group_name, name, custom_headers:nil) + response = reboot_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -2150,8 +2168,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def reboot_with_http_info(resource_group_name, name, custom_headers = nil) - reboot_async(resource_group_name, name, custom_headers).value! + def reboot_with_http_info(resource_group_name, name, custom_headers:nil) + reboot_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -2167,7 +2185,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def reboot_async(resource_group_name, name, custom_headers = nil) + def reboot_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2178,6 +2196,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2225,12 +2244,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] which provide lazy access to pages of the response. # - def resume(resource_group_name, name, custom_headers = nil) - response = resume_async(resource_group_name, name, custom_headers).value! + def resume(resource_group_name, name, custom_headers:nil) + response = resume_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - resume_next_async(next_page_link, custom_headers) + resume_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2248,8 +2267,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def resume(resource_group_name, name, custom_headers = nil) - first_page = resume_as_lazy(resource_group_name, name, custom_headers) + def resume(resource_group_name, name, custom_headers:nil) + first_page = resume_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -2263,9 +2282,9 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def resume_async(resource_group_name, name, custom_headers = nil) + def resume_async(resource_group_name, name, custom_headers:nil) # Send request - promise = begin_resume_async(resource_group_name, name, custom_headers) + promise = begin_resume_async(resource_group_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -2294,8 +2313,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_app_service_plans(resource_group_name, name, custom_headers = nil) - first_page = list_app_service_plans_as_lazy(resource_group_name, name, custom_headers) + def list_app_service_plans(resource_group_name, name, custom_headers:nil) + first_page = list_app_service_plans_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -2312,8 +2331,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_app_service_plans_with_http_info(resource_group_name, name, custom_headers = nil) - list_app_service_plans_async(resource_group_name, name, custom_headers).value! + def list_app_service_plans_with_http_info(resource_group_name, name, custom_headers:nil) + list_app_service_plans_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -2329,7 +2348,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_app_service_plans_async(resource_group_name, name, custom_headers = nil) + def list_app_service_plans_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2340,6 +2359,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2399,8 +2419,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_web_apps(resource_group_name, name, properties_to_include = nil, custom_headers = nil) - first_page = list_web_apps_as_lazy(resource_group_name, name, properties_to_include, custom_headers) + def list_web_apps(resource_group_name, name, properties_to_include:nil, custom_headers:nil) + first_page = list_web_apps_as_lazy(resource_group_name, name, properties_to_include:properties_to_include, custom_headers:custom_headers) first_page.get_all_items end @@ -2419,8 +2439,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_apps_with_http_info(resource_group_name, name, properties_to_include = nil, custom_headers = nil) - list_web_apps_async(resource_group_name, name, properties_to_include, custom_headers).value! + def list_web_apps_with_http_info(resource_group_name, name, properties_to_include:nil, custom_headers:nil) + list_web_apps_async(resource_group_name, name, properties_to_include:properties_to_include, custom_headers:custom_headers).value! end # @@ -2438,7 +2458,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_apps_async(resource_group_name, name, properties_to_include = nil, custom_headers = nil) + def list_web_apps_async(resource_group_name, name, properties_to_include:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2449,6 +2469,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2506,12 +2527,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] which provide lazy access to pages of the response. # - def suspend(resource_group_name, name, custom_headers = nil) - response = suspend_async(resource_group_name, name, custom_headers).value! + def suspend(resource_group_name, name, custom_headers:nil) + response = suspend_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - suspend_next_async(next_page_link, custom_headers) + suspend_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -2529,8 +2550,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def suspend(resource_group_name, name, custom_headers = nil) - first_page = suspend_as_lazy(resource_group_name, name, custom_headers) + def suspend(resource_group_name, name, custom_headers:nil) + first_page = suspend_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -2544,9 +2565,9 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def suspend_async(resource_group_name, name, custom_headers = nil) + def suspend_async(resource_group_name, name, custom_headers:nil) # Send request - promise = begin_suspend_async(resource_group_name, name, custom_headers) + promise = begin_suspend_async(resource_group_name, name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -2579,8 +2600,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_usages(resource_group_name, name, filter = nil, custom_headers = nil) - first_page = list_usages_as_lazy(resource_group_name, name, filter, custom_headers) + def list_usages(resource_group_name, name, filter:nil, custom_headers:nil) + first_page = list_usages_as_lazy(resource_group_name, name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -2601,8 +2622,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usages_with_http_info(resource_group_name, name, filter = nil, custom_headers = nil) - list_usages_async(resource_group_name, name, filter, custom_headers).value! + def list_usages_with_http_info(resource_group_name, name, filter:nil, custom_headers:nil) + list_usages_async(resource_group_name, name, filter:filter, custom_headers:custom_headers).value! end # @@ -2622,7 +2643,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usages_async(resource_group_name, name, filter = nil, custom_headers = nil) + def list_usages_async(resource_group_name, name, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2633,6 +2654,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2691,8 +2713,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_worker_pools(resource_group_name, name, custom_headers = nil) - first_page = list_worker_pools_as_lazy(resource_group_name, name, custom_headers) + def list_worker_pools(resource_group_name, name, custom_headers:nil) + first_page = list_worker_pools_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -2709,8 +2731,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_worker_pools_with_http_info(resource_group_name, name, custom_headers = nil) - list_worker_pools_async(resource_group_name, name, custom_headers).value! + def list_worker_pools_with_http_info(resource_group_name, name, custom_headers:nil) + list_worker_pools_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -2726,7 +2748,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_worker_pools_async(resource_group_name, name, custom_headers = nil) + def list_worker_pools_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2737,6 +2759,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2795,8 +2818,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WorkerPoolResource] operation results. # - def get_worker_pool(resource_group_name, name, worker_pool_name, custom_headers = nil) - response = get_worker_pool_async(resource_group_name, name, worker_pool_name, custom_headers).value! + def get_worker_pool(resource_group_name, name, worker_pool_name, custom_headers:nil) + response = get_worker_pool_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2814,8 +2837,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) - get_worker_pool_async(resource_group_name, name, worker_pool_name, custom_headers).value! + def get_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, custom_headers:nil) + get_worker_pool_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! end # @@ -2832,7 +2855,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_worker_pool_async(resource_group_name, name, worker_pool_name, custom_headers = nil) + def get_worker_pool_async(resource_group_name, name, worker_pool_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2844,6 +2867,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2904,8 +2928,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WorkerPoolResource] operation results. # - def create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) - response = create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers).value! + def create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:nil) + response = create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2922,9 +2946,9 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) + def create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:nil) # Send request - promise = begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers) + promise = begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -2957,8 +2981,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_worker_pool_instance_metric_definitions(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) - first_page = list_worker_pool_instance_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, instance, custom_headers) + def list_worker_pool_instance_metric_definitions(resource_group_name, name, worker_pool_name, instance, custom_headers:nil) + first_page = list_worker_pool_instance_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, instance, custom_headers:custom_headers) first_page.get_all_items end @@ -2979,8 +3003,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_worker_pool_instance_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) - list_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers).value! + def list_worker_pool_instance_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, instance, custom_headers:nil) + list_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers:custom_headers).value! end # @@ -3000,7 +3024,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) + def list_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3013,6 +3037,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3080,8 +3105,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_worker_pool_instance_metrics(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) - first_page = list_worker_pool_instance_metrics_as_lazy(resource_group_name, name, worker_pool_name, instance, details, filter, custom_headers) + def list_worker_pool_instance_metrics(resource_group_name, name, worker_pool_name, instance, details:nil, filter:nil, custom_headers:nil) + first_page = list_worker_pool_instance_metrics_as_lazy(resource_group_name, name, worker_pool_name, instance, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -3108,8 +3133,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_worker_pool_instance_metrics_with_http_info(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) - list_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details, filter, custom_headers).value! + def list_worker_pool_instance_metrics_with_http_info(resource_group_name, name, worker_pool_name, instance, details:nil, filter:nil, custom_headers:nil) + list_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details:details, filter:filter, custom_headers:custom_headers).value! end # @@ -3135,7 +3160,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) + def list_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details:nil, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3148,6 +3173,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3207,8 +3233,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_web_worker_metric_definitions(resource_group_name, name, worker_pool_name, custom_headers = nil) - first_page = list_web_worker_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, custom_headers) + def list_web_worker_metric_definitions(resource_group_name, name, worker_pool_name, custom_headers:nil) + first_page = list_web_worker_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:custom_headers) first_page.get_all_items end @@ -3226,8 +3252,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_worker_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) - list_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers).value! + def list_web_worker_metric_definitions_with_http_info(resource_group_name, name, worker_pool_name, custom_headers:nil) + list_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! end # @@ -3244,7 +3270,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers = nil) + def list_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3256,6 +3282,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3322,8 +3349,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_web_worker_metrics(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) - first_page = list_web_worker_metrics_as_lazy(resource_group_name, name, worker_pool_name, details, filter, custom_headers) + def list_web_worker_metrics(resource_group_name, name, worker_pool_name, details:nil, filter:nil, custom_headers:nil) + first_page = list_web_worker_metrics_as_lazy(resource_group_name, name, worker_pool_name, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -3349,8 +3376,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_worker_metrics_with_http_info(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) - list_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details, filter, custom_headers).value! + def list_web_worker_metrics_with_http_info(resource_group_name, name, worker_pool_name, details:nil, filter:nil, custom_headers:nil) + list_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details:details, filter:filter, custom_headers:custom_headers).value! end # @@ -3375,7 +3402,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) + def list_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details:nil, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3387,6 +3414,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3446,8 +3474,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_worker_pool_skus(resource_group_name, name, worker_pool_name, custom_headers = nil) - first_page = list_worker_pool_skus_as_lazy(resource_group_name, name, worker_pool_name, custom_headers) + def list_worker_pool_skus(resource_group_name, name, worker_pool_name, custom_headers:nil) + first_page = list_worker_pool_skus_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:custom_headers) first_page.get_all_items end @@ -3465,8 +3493,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_worker_pool_skus_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) - list_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers).value! + def list_worker_pool_skus_with_http_info(resource_group_name, name, worker_pool_name, custom_headers:nil) + list_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! end # @@ -3483,7 +3511,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers = nil) + def list_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3495,6 +3523,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3553,8 +3582,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_web_worker_usages(resource_group_name, name, worker_pool_name, custom_headers = nil) - first_page = list_web_worker_usages_as_lazy(resource_group_name, name, worker_pool_name, custom_headers) + def list_web_worker_usages(resource_group_name, name, worker_pool_name, custom_headers:nil) + first_page = list_web_worker_usages_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:custom_headers) first_page.get_all_items end @@ -3572,8 +3601,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_worker_usages_with_http_info(resource_group_name, name, worker_pool_name, custom_headers = nil) - list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers).value! + def list_web_worker_usages_with_http_info(resource_group_name, name, worker_pool_name, custom_headers:nil) + list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! end # @@ -3590,7 +3619,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers = nil) + def list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3602,6 +3631,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3661,8 +3691,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AppServiceEnvironmentResource] operation results. # - def begin_create_or_update(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers).value! + def begin_create_or_update(resource_group_name, name, hosting_environment_envelope, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3681,8 +3711,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) - begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, name, hosting_environment_envelope, custom_headers:nil) + begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:custom_headers).value! end # @@ -3700,7 +3730,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, name, hosting_environment_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3712,7 +3742,6 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -3790,8 +3819,8 @@ module Azure::Web::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def begin_delete(resource_group_name, name, force_delete = nil, custom_headers = nil) - response = begin_delete_async(resource_group_name, name, force_delete, custom_headers).value! + def begin_delete(resource_group_name, name, force_delete:nil, custom_headers:nil) + response = begin_delete_async(resource_group_name, name, force_delete:force_delete, custom_headers:custom_headers).value! nil end @@ -3811,8 +3840,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, name, force_delete = nil, custom_headers = nil) - begin_delete_async(resource_group_name, name, force_delete, custom_headers).value! + def begin_delete_with_http_info(resource_group_name, name, force_delete:nil, custom_headers:nil) + begin_delete_async(resource_group_name, name, force_delete:force_delete, custom_headers:custom_headers).value! end # @@ -3831,7 +3860,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, name, force_delete = nil, custom_headers = nil) + def begin_delete_async(resource_group_name, name, force_delete:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3842,6 +3871,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3891,8 +3921,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WorkerPoolResource] operation results. # - def begin_create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) - response = begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers).value! + def begin_create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers:nil) + response = begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3911,8 +3941,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_multi_role_pool_with_http_info(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) - begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers).value! + def begin_create_or_update_multi_role_pool_with_http_info(resource_group_name, name, multi_role_pool_envelope, custom_headers:nil) + begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:custom_headers).value! end # @@ -3930,7 +3960,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers = nil) + def begin_create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -3942,7 +3972,6 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -4018,8 +4047,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def begin_resume(resource_group_name, name, custom_headers = nil) - first_page = begin_resume_as_lazy(resource_group_name, name, custom_headers) + def begin_resume(resource_group_name, name, custom_headers:nil) + first_page = begin_resume_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -4036,8 +4065,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_resume_with_http_info(resource_group_name, name, custom_headers = nil) - begin_resume_async(resource_group_name, name, custom_headers).value! + def begin_resume_with_http_info(resource_group_name, name, custom_headers:nil) + begin_resume_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -4053,7 +4082,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_resume_async(resource_group_name, name, custom_headers = nil) + def begin_resume_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4064,6 +4093,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4131,8 +4161,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def begin_suspend(resource_group_name, name, custom_headers = nil) - first_page = begin_suspend_as_lazy(resource_group_name, name, custom_headers) + def begin_suspend(resource_group_name, name, custom_headers:nil) + first_page = begin_suspend_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -4149,8 +4179,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_suspend_with_http_info(resource_group_name, name, custom_headers = nil) - begin_suspend_async(resource_group_name, name, custom_headers).value! + def begin_suspend_with_http_info(resource_group_name, name, custom_headers:nil) + begin_suspend_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -4166,7 +4196,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_suspend_async(resource_group_name, name, custom_headers = nil) + def begin_suspend_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4177,6 +4207,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4247,8 +4278,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WorkerPoolResource] operation results. # - def begin_create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) - response = begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers).value! + def begin_create_or_update_worker_pool(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:nil) + response = begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -4268,8 +4299,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) - begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers).value! + def begin_create_or_update_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:nil) + begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:custom_headers).value! end # @@ -4288,7 +4319,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers = nil) + def begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -4301,7 +4332,6 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -4376,8 +4406,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AppServiceEnvironmentCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -4393,8 +4423,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -4409,11 +4439,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4469,8 +4500,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AppServiceEnvironmentCollection] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -4486,8 +4517,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -4502,11 +4533,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4564,8 +4596,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [StampCapacityCollection] operation results. # - def list_capacities_next(next_page_link, custom_headers = nil) - response = list_capacities_next_async(next_page_link, custom_headers).value! + def list_capacities_next(next_page_link, custom_headers:nil) + response = list_capacities_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -4583,8 +4615,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_capacities_next_with_http_info(next_page_link, custom_headers = nil) - list_capacities_next_async(next_page_link, custom_headers).value! + def list_capacities_next_with_http_info(next_page_link, custom_headers:nil) + list_capacities_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -4601,11 +4633,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_capacities_next_async(next_page_link, custom_headers = nil) + def list_capacities_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4661,8 +4694,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceMetricCollection] operation results. # - def list_metrics_next(next_page_link, custom_headers = nil) - response = list_metrics_next_async(next_page_link, custom_headers).value! + def list_metrics_next(next_page_link, custom_headers:nil) + response = list_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -4678,8 +4711,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_next_with_http_info(next_page_link, custom_headers = nil) - list_metrics_next_async(next_page_link, custom_headers).value! + def list_metrics_next_with_http_info(next_page_link, custom_headers:nil) + list_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -4694,11 +4727,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_next_async(next_page_link, custom_headers = nil) + def list_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4754,8 +4788,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WorkerPoolCollection] operation results. # - def list_multi_role_pools_next(next_page_link, custom_headers = nil) - response = list_multi_role_pools_next_async(next_page_link, custom_headers).value! + def list_multi_role_pools_next(next_page_link, custom_headers:nil) + response = list_multi_role_pools_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -4771,8 +4805,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_pools_next_with_http_info(next_page_link, custom_headers = nil) - list_multi_role_pools_next_async(next_page_link, custom_headers).value! + def list_multi_role_pools_next_with_http_info(next_page_link, custom_headers:nil) + list_multi_role_pools_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -4787,11 +4821,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_pools_next_async(next_page_link, custom_headers = nil) + def list_multi_role_pools_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4849,8 +4884,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceMetricDefinitionCollection] operation results. # - def list_multi_role_pool_instance_metric_definitions_next(next_page_link, custom_headers = nil) - response = list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers).value! + def list_multi_role_pool_instance_metric_definitions_next(next_page_link, custom_headers:nil) + response = list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -4868,8 +4903,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_pool_instance_metric_definitions_next_with_http_info(next_page_link, custom_headers = nil) - list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers).value! + def list_multi_role_pool_instance_metric_definitions_next_with_http_info(next_page_link, custom_headers:nil) + list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -4886,11 +4921,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers = nil) + def list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -4948,8 +4984,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceMetricCollection] operation results. # - def list_multi_role_pool_instance_metrics_next(next_page_link, custom_headers = nil) - response = list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers).value! + def list_multi_role_pool_instance_metrics_next(next_page_link, custom_headers:nil) + response = list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -4967,8 +5003,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_pool_instance_metrics_next_with_http_info(next_page_link, custom_headers = nil) - list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers).value! + def list_multi_role_pool_instance_metrics_next_with_http_info(next_page_link, custom_headers:nil) + list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -4985,11 +5021,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers = nil) + def list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5045,8 +5082,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceMetricDefinitionCollection] operation results. # - def list_multi_role_metric_definitions_next(next_page_link, custom_headers = nil) - response = list_multi_role_metric_definitions_next_async(next_page_link, custom_headers).value! + def list_multi_role_metric_definitions_next(next_page_link, custom_headers:nil) + response = list_multi_role_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5062,8 +5099,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_metric_definitions_next_with_http_info(next_page_link, custom_headers = nil) - list_multi_role_metric_definitions_next_async(next_page_link, custom_headers).value! + def list_multi_role_metric_definitions_next_with_http_info(next_page_link, custom_headers:nil) + list_multi_role_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -5078,11 +5115,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_metric_definitions_next_async(next_page_link, custom_headers = nil) + def list_multi_role_metric_definitions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5138,8 +5176,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceMetricCollection] operation results. # - def list_multi_role_metrics_next(next_page_link, custom_headers = nil) - response = list_multi_role_metrics_next_async(next_page_link, custom_headers).value! + def list_multi_role_metrics_next(next_page_link, custom_headers:nil) + response = list_multi_role_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5155,8 +5193,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_metrics_next_with_http_info(next_page_link, custom_headers = nil) - list_multi_role_metrics_next_async(next_page_link, custom_headers).value! + def list_multi_role_metrics_next_with_http_info(next_page_link, custom_headers:nil) + list_multi_role_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -5171,11 +5209,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_metrics_next_async(next_page_link, custom_headers = nil) + def list_multi_role_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5231,8 +5270,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [SkuInfoCollection] operation results. # - def list_multi_role_pool_skus_next(next_page_link, custom_headers = nil) - response = list_multi_role_pool_skus_next_async(next_page_link, custom_headers).value! + def list_multi_role_pool_skus_next(next_page_link, custom_headers:nil) + response = list_multi_role_pool_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5248,8 +5287,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_pool_skus_next_with_http_info(next_page_link, custom_headers = nil) - list_multi_role_pool_skus_next_async(next_page_link, custom_headers).value! + def list_multi_role_pool_skus_next_with_http_info(next_page_link, custom_headers:nil) + list_multi_role_pool_skus_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -5264,11 +5303,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_pool_skus_next_async(next_page_link, custom_headers = nil) + def list_multi_role_pool_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5324,8 +5364,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [UsageCollection] operation results. # - def list_multi_role_usages_next(next_page_link, custom_headers = nil) - response = list_multi_role_usages_next_async(next_page_link, custom_headers).value! + def list_multi_role_usages_next(next_page_link, custom_headers:nil) + response = list_multi_role_usages_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5341,8 +5381,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_multi_role_usages_next_with_http_info(next_page_link, custom_headers = nil) - list_multi_role_usages_next_async(next_page_link, custom_headers).value! + def list_multi_role_usages_next_with_http_info(next_page_link, custom_headers:nil) + list_multi_role_usages_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -5357,11 +5397,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_multi_role_usages_next_async(next_page_link, custom_headers = nil) + def list_multi_role_usages_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5417,8 +5458,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WebAppCollection] operation results. # - def resume_next(next_page_link, custom_headers = nil) - response = resume_next_async(next_page_link, custom_headers).value! + def resume_next(next_page_link, custom_headers:nil) + response = resume_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5431,9 +5472,9 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def resume_next_async(next_page_link, custom_headers = nil) + def resume_next_async(next_page_link, custom_headers:nil) # Send request - promise = begin_resume_next_async(next_page_link, custom_headers) + promise = begin_resume_next_async(next_page_link, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -5461,8 +5502,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AppServicePlanCollection] operation results. # - def list_app_service_plans_next(next_page_link, custom_headers = nil) - response = list_app_service_plans_next_async(next_page_link, custom_headers).value! + def list_app_service_plans_next(next_page_link, custom_headers:nil) + response = list_app_service_plans_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5478,8 +5519,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_app_service_plans_next_with_http_info(next_page_link, custom_headers = nil) - list_app_service_plans_next_async(next_page_link, custom_headers).value! + def list_app_service_plans_next_with_http_info(next_page_link, custom_headers:nil) + list_app_service_plans_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -5494,11 +5535,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_app_service_plans_next_async(next_page_link, custom_headers = nil) + def list_app_service_plans_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5554,8 +5596,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WebAppCollection] operation results. # - def list_web_apps_next(next_page_link, custom_headers = nil) - response = list_web_apps_next_async(next_page_link, custom_headers).value! + def list_web_apps_next(next_page_link, custom_headers:nil) + response = list_web_apps_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5571,8 +5613,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_apps_next_with_http_info(next_page_link, custom_headers = nil) - list_web_apps_next_async(next_page_link, custom_headers).value! + def list_web_apps_next_with_http_info(next_page_link, custom_headers:nil) + list_web_apps_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -5587,11 +5629,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_apps_next_async(next_page_link, custom_headers = nil) + def list_web_apps_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5647,8 +5690,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WebAppCollection] operation results. # - def suspend_next(next_page_link, custom_headers = nil) - response = suspend_next_async(next_page_link, custom_headers).value! + def suspend_next(next_page_link, custom_headers:nil) + response = suspend_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5661,9 +5704,9 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def suspend_next_async(next_page_link, custom_headers = nil) + def suspend_next_async(next_page_link, custom_headers:nil) # Send request - promise = begin_suspend_next_async(next_page_link, custom_headers) + promise = begin_suspend_next_async(next_page_link, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -5691,8 +5734,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [CsmUsageQuotaCollection] operation results. # - def list_usages_next(next_page_link, custom_headers = nil) - response = list_usages_next_async(next_page_link, custom_headers).value! + def list_usages_next(next_page_link, custom_headers:nil) + response = list_usages_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5708,8 +5751,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_usages_next_with_http_info(next_page_link, custom_headers = nil) - list_usages_next_async(next_page_link, custom_headers).value! + def list_usages_next_with_http_info(next_page_link, custom_headers:nil) + list_usages_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -5724,11 +5767,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_usages_next_async(next_page_link, custom_headers = nil) + def list_usages_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5784,8 +5828,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WorkerPoolCollection] operation results. # - def list_worker_pools_next(next_page_link, custom_headers = nil) - response = list_worker_pools_next_async(next_page_link, custom_headers).value! + def list_worker_pools_next(next_page_link, custom_headers:nil) + response = list_worker_pools_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5801,8 +5845,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_worker_pools_next_with_http_info(next_page_link, custom_headers = nil) - list_worker_pools_next_async(next_page_link, custom_headers).value! + def list_worker_pools_next_with_http_info(next_page_link, custom_headers:nil) + list_worker_pools_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -5817,11 +5861,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_worker_pools_next_async(next_page_link, custom_headers = nil) + def list_worker_pools_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5879,8 +5924,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceMetricDefinitionCollection] operation results. # - def list_worker_pool_instance_metric_definitions_next(next_page_link, custom_headers = nil) - response = list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers).value! + def list_worker_pool_instance_metric_definitions_next(next_page_link, custom_headers:nil) + response = list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5898,8 +5943,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_worker_pool_instance_metric_definitions_next_with_http_info(next_page_link, custom_headers = nil) - list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers).value! + def list_worker_pool_instance_metric_definitions_next_with_http_info(next_page_link, custom_headers:nil) + list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -5916,11 +5961,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers = nil) + def list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -5978,8 +6024,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceMetricCollection] operation results. # - def list_worker_pool_instance_metrics_next(next_page_link, custom_headers = nil) - response = list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers).value! + def list_worker_pool_instance_metrics_next(next_page_link, custom_headers:nil) + response = list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -5997,8 +6043,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_worker_pool_instance_metrics_next_with_http_info(next_page_link, custom_headers = nil) - list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers).value! + def list_worker_pool_instance_metrics_next_with_http_info(next_page_link, custom_headers:nil) + list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -6015,11 +6061,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers = nil) + def list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6075,8 +6122,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceMetricDefinitionCollection] operation results. # - def list_web_worker_metric_definitions_next(next_page_link, custom_headers = nil) - response = list_web_worker_metric_definitions_next_async(next_page_link, custom_headers).value! + def list_web_worker_metric_definitions_next(next_page_link, custom_headers:nil) + response = list_web_worker_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6092,8 +6139,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_worker_metric_definitions_next_with_http_info(next_page_link, custom_headers = nil) - list_web_worker_metric_definitions_next_async(next_page_link, custom_headers).value! + def list_web_worker_metric_definitions_next_with_http_info(next_page_link, custom_headers:nil) + list_web_worker_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -6108,11 +6155,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_worker_metric_definitions_next_async(next_page_link, custom_headers = nil) + def list_web_worker_metric_definitions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6170,8 +6218,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceMetricCollection] operation results. # - def list_web_worker_metrics_next(next_page_link, custom_headers = nil) - response = list_web_worker_metrics_next_async(next_page_link, custom_headers).value! + def list_web_worker_metrics_next(next_page_link, custom_headers:nil) + response = list_web_worker_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6189,8 +6237,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_worker_metrics_next_with_http_info(next_page_link, custom_headers = nil) - list_web_worker_metrics_next_async(next_page_link, custom_headers).value! + def list_web_worker_metrics_next_with_http_info(next_page_link, custom_headers:nil) + list_web_worker_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -6207,11 +6255,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_worker_metrics_next_async(next_page_link, custom_headers = nil) + def list_web_worker_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6267,8 +6316,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [SkuInfoCollection] operation results. # - def list_worker_pool_skus_next(next_page_link, custom_headers = nil) - response = list_worker_pool_skus_next_async(next_page_link, custom_headers).value! + def list_worker_pool_skus_next(next_page_link, custom_headers:nil) + response = list_worker_pool_skus_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6284,8 +6333,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_worker_pool_skus_next_with_http_info(next_page_link, custom_headers = nil) - list_worker_pool_skus_next_async(next_page_link, custom_headers).value! + def list_worker_pool_skus_next_with_http_info(next_page_link, custom_headers:nil) + list_worker_pool_skus_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -6300,11 +6349,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_worker_pool_skus_next_async(next_page_link, custom_headers = nil) + def list_worker_pool_skus_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6360,8 +6410,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [UsageCollection] operation results. # - def list_web_worker_usages_next(next_page_link, custom_headers = nil) - response = list_web_worker_usages_next_async(next_page_link, custom_headers).value! + def list_web_worker_usages_next(next_page_link, custom_headers:nil) + response = list_web_worker_usages_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6377,8 +6427,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_worker_usages_next_with_http_info(next_page_link, custom_headers = nil) - list_web_worker_usages_next_async(next_page_link, custom_headers).value! + def list_web_worker_usages_next_with_http_info(next_page_link, custom_headers:nil) + list_web_worker_usages_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -6393,11 +6443,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_worker_usages_next_async(next_page_link, custom_headers = nil) + def list_web_worker_usages_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6453,8 +6504,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WebAppCollection] operation results. # - def begin_resume_next(next_page_link, custom_headers = nil) - response = begin_resume_next_async(next_page_link, custom_headers).value! + def begin_resume_next(next_page_link, custom_headers:nil) + response = begin_resume_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6470,8 +6521,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_resume_next_with_http_info(next_page_link, custom_headers = nil) - begin_resume_next_async(next_page_link, custom_headers).value! + def begin_resume_next_with_http_info(next_page_link, custom_headers:nil) + begin_resume_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -6486,11 +6537,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_resume_next_async(next_page_link, custom_headers = nil) + def begin_resume_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6556,8 +6608,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WebAppCollection] operation results. # - def begin_suspend_next(next_page_link, custom_headers = nil) - response = begin_suspend_next_async(next_page_link, custom_headers).value! + def begin_suspend_next(next_page_link, custom_headers:nil) + response = begin_suspend_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -6573,8 +6625,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_suspend_next_with_http_info(next_page_link, custom_headers = nil) - begin_suspend_next_async(next_page_link, custom_headers).value! + def begin_suspend_next_with_http_info(next_page_link, custom_headers:nil) + begin_suspend_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -6589,11 +6641,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_suspend_next_async(next_page_link, custom_headers = nil) + def begin_suspend_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -6658,12 +6711,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [AppServiceEnvironmentCollection] which provide lazy access to pages # of the response. # - def list_as_lazy(custom_headers = nil) - response = list_async(custom_headers).value! + def list_as_lazy(custom_headers:nil) + response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6682,12 +6735,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [AppServiceEnvironmentCollection] which provide lazy access to pages # of the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6709,12 +6762,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [StampCapacityCollection] which provide lazy access to pages of the # response. # - def list_capacities_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_capacities_async(resource_group_name, name, custom_headers).value! + def list_capacities_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_capacities_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_capacities_next_async(next_page_link, custom_headers) + list_capacities_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6740,12 +6793,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceMetricCollection] which provide lazy access to pages of the # response. # - def list_metrics_as_lazy(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) - response = list_metrics_async(resource_group_name, name, details, filter, custom_headers).value! + def list_metrics_as_lazy(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) + response = list_metrics_async(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_metrics_next_async(next_page_link, custom_headers) + list_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6765,12 +6818,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [WorkerPoolCollection] which provide lazy access to pages of the # response. # - def list_multi_role_pools_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_multi_role_pools_async(resource_group_name, name, custom_headers).value! + def list_multi_role_pools_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_multi_role_pools_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_multi_role_pools_next_async(next_page_link, custom_headers) + list_multi_role_pools_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6793,12 +6846,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceMetricDefinitionCollection] which provide lazy access to # pages of the response. # - def list_multi_role_pool_instance_metric_definitions_as_lazy(resource_group_name, name, instance, custom_headers = nil) - response = list_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers).value! + def list_multi_role_pool_instance_metric_definitions_as_lazy(resource_group_name, name, instance, custom_headers:nil) + response = list_multi_role_pool_instance_metric_definitions_async(resource_group_name, name, instance, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers) + list_multi_role_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6823,12 +6876,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceMetricCollection] which provide lazy access to pages of the # response. # - def list_multi_role_pool_instance_metrics_as_lazy(resource_group_name, name, instance, details = nil, custom_headers = nil) - response = list_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details, custom_headers).value! + def list_multi_role_pool_instance_metrics_as_lazy(resource_group_name, name, instance, details:nil, custom_headers:nil) + response = list_multi_role_pool_instance_metrics_async(resource_group_name, name, instance, details:details, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers) + list_multi_role_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6848,12 +6901,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceMetricDefinitionCollection] which provide lazy access to # pages of the response. # - def list_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_multi_role_metric_definitions_async(resource_group_name, name, custom_headers).value! + def list_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_multi_role_metric_definitions_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_multi_role_metric_definitions_next_async(next_page_link, custom_headers) + list_multi_role_metric_definitions_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6882,12 +6935,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceMetricCollection] which provide lazy access to pages of the # response. # - def list_multi_role_metrics_as_lazy(resource_group_name, name, start_time = nil, end_time = nil, time_grain = nil, details = nil, filter = nil, custom_headers = nil) - response = list_multi_role_metrics_async(resource_group_name, name, start_time, end_time, time_grain, details, filter, custom_headers).value! + def list_multi_role_metrics_as_lazy(resource_group_name, name, start_time:nil, end_time:nil, time_grain:nil, details:nil, filter:nil, custom_headers:nil) + response = list_multi_role_metrics_async(resource_group_name, name, start_time:start_time, end_time:end_time, time_grain:time_grain, details:details, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_multi_role_metrics_next_async(next_page_link, custom_headers) + list_multi_role_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6907,12 +6960,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [SkuInfoCollection] which provide lazy access to pages of the # response. # - def list_multi_role_pool_skus_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_multi_role_pool_skus_async(resource_group_name, name, custom_headers).value! + def list_multi_role_pool_skus_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_multi_role_pool_skus_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_multi_role_pool_skus_next_async(next_page_link, custom_headers) + list_multi_role_pool_skus_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6931,12 +6984,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [UsageCollection] which provide lazy access to pages of the response. # - def list_multi_role_usages_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_multi_role_usages_async(resource_group_name, name, custom_headers).value! + def list_multi_role_usages_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_multi_role_usages_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_multi_role_usages_next_async(next_page_link, custom_headers) + list_multi_role_usages_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6956,12 +7009,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [AppServicePlanCollection] which provide lazy access to pages of the # response. # - def list_app_service_plans_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_app_service_plans_async(resource_group_name, name, custom_headers).value! + def list_app_service_plans_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_app_service_plans_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_app_service_plans_next_async(next_page_link, custom_headers) + list_app_service_plans_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -6983,12 +7036,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [WebAppCollection] which provide lazy access to pages of the # response. # - def list_web_apps_as_lazy(resource_group_name, name, properties_to_include = nil, custom_headers = nil) - response = list_web_apps_async(resource_group_name, name, properties_to_include, custom_headers).value! + def list_web_apps_as_lazy(resource_group_name, name, properties_to_include:nil, custom_headers:nil) + response = list_web_apps_async(resource_group_name, name, properties_to_include:properties_to_include, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_web_apps_next_async(next_page_link, custom_headers) + list_web_apps_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -7012,12 +7065,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [CsmUsageQuotaCollection] which provide lazy access to pages of the # response. # - def list_usages_as_lazy(resource_group_name, name, filter = nil, custom_headers = nil) - response = list_usages_async(resource_group_name, name, filter, custom_headers).value! + def list_usages_as_lazy(resource_group_name, name, filter:nil, custom_headers:nil) + response = list_usages_async(resource_group_name, name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_usages_next_async(next_page_link, custom_headers) + list_usages_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -7037,12 +7090,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [WorkerPoolCollection] which provide lazy access to pages of the # response. # - def list_worker_pools_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_worker_pools_async(resource_group_name, name, custom_headers).value! + def list_worker_pools_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_worker_pools_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_worker_pools_next_async(next_page_link, custom_headers) + list_worker_pools_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -7066,12 +7119,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceMetricDefinitionCollection] which provide lazy access to # pages of the response. # - def list_worker_pool_instance_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, instance, custom_headers = nil) - response = list_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers).value! + def list_worker_pool_instance_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, instance, custom_headers:nil) + response = list_worker_pool_instance_metric_definitions_async(resource_group_name, name, worker_pool_name, instance, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers) + list_worker_pool_instance_metric_definitions_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -7101,12 +7154,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceMetricCollection] which provide lazy access to pages of the # response. # - def list_worker_pool_instance_metrics_as_lazy(resource_group_name, name, worker_pool_name, instance, details = nil, filter = nil, custom_headers = nil) - response = list_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details, filter, custom_headers).value! + def list_worker_pool_instance_metrics_as_lazy(resource_group_name, name, worker_pool_name, instance, details:nil, filter:nil, custom_headers:nil) + response = list_worker_pool_instance_metrics_async(resource_group_name, name, worker_pool_name, instance, details:details, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers) + list_worker_pool_instance_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -7127,12 +7180,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceMetricDefinitionCollection] which provide lazy access to # pages of the response. # - def list_web_worker_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, custom_headers = nil) - response = list_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers).value! + def list_web_worker_metric_definitions_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:nil) + response = list_web_worker_metric_definitions_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_web_worker_metric_definitions_next_async(next_page_link, custom_headers) + list_web_worker_metric_definitions_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -7161,12 +7214,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceMetricCollection] which provide lazy access to pages of the # response. # - def list_web_worker_metrics_as_lazy(resource_group_name, name, worker_pool_name, details = nil, filter = nil, custom_headers = nil) - response = list_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details, filter, custom_headers).value! + def list_web_worker_metrics_as_lazy(resource_group_name, name, worker_pool_name, details:nil, filter:nil, custom_headers:nil) + response = list_web_worker_metrics_async(resource_group_name, name, worker_pool_name, details:details, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_web_worker_metrics_next_async(next_page_link, custom_headers) + list_web_worker_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -7187,12 +7240,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [SkuInfoCollection] which provide lazy access to pages of the # response. # - def list_worker_pool_skus_as_lazy(resource_group_name, name, worker_pool_name, custom_headers = nil) - response = list_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers).value! + def list_worker_pool_skus_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:nil) + response = list_worker_pool_skus_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_worker_pool_skus_next_async(next_page_link, custom_headers) + list_worker_pool_skus_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -7212,12 +7265,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [UsageCollection] which provide lazy access to pages of the response. # - def list_web_worker_usages_as_lazy(resource_group_name, name, worker_pool_name, custom_headers = nil) - response = list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers).value! + def list_web_worker_usages_as_lazy(resource_group_name, name, worker_pool_name, custom_headers:nil) + response = list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_web_worker_usages_next_async(next_page_link, custom_headers) + list_web_worker_usages_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -7237,12 +7290,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [WebAppCollection] which provide lazy access to pages of the # response. # - def begin_resume_as_lazy(resource_group_name, name, custom_headers = nil) - response = begin_resume_async(resource_group_name, name, custom_headers).value! + def begin_resume_as_lazy(resource_group_name, name, custom_headers:nil) + response = begin_resume_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - begin_resume_next_async(next_page_link, custom_headers) + begin_resume_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -7262,12 +7315,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [WebAppCollection] which provide lazy access to pages of the # response. # - def begin_suspend_as_lazy(resource_group_name, name, custom_headers = nil) - response = begin_suspend_async(resource_group_name, name, custom_headers).value! + def begin_suspend_as_lazy(resource_group_name, name, custom_headers:nil) + response = begin_suspend_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - begin_suspend_next_async(next_page_link, custom_headers) + begin_suspend_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb index 179b4e6a8..a93669817 100644 --- a/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb +++ b/management/azure_mgmt_web/lib/2016-09-01/generated/azure_mgmt_web/app_service_plans.rb @@ -35,8 +35,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list(detailed = nil, custom_headers = nil) - first_page = list_as_lazy(detailed, custom_headers) + def list(detailed:nil, custom_headers:nil) + first_page = list_as_lazy(detailed:detailed, custom_headers:custom_headers) first_page.get_all_items end @@ -54,8 +54,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(detailed = nil, custom_headers = nil) - list_async(detailed, custom_headers).value! + def list_with_http_info(detailed:nil, custom_headers:nil) + list_async(detailed:detailed, custom_headers:custom_headers).value! end # @@ -72,12 +72,13 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(detailed = nil, custom_headers = nil) + def list_async(detailed:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -134,8 +135,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(resource_group_name, custom_headers:nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) first_page.get_all_items end @@ -151,8 +152,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) + list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! end # @@ -167,7 +168,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(resource_group_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -177,6 +178,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -234,8 +236,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AppServicePlan] operation results. # - def get(resource_group_name, name, custom_headers = nil) - response = get_async(resource_group_name, name, custom_headers).value! + def get(resource_group_name, name, custom_headers:nil) + response = get_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -252,8 +254,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, name, custom_headers = nil) - get_async(resource_group_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, name, custom_headers:nil) + get_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -269,7 +271,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, name, custom_headers = nil) + def get_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -280,6 +282,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -338,8 +341,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AppServicePlan] operation results. # - def create_or_update(resource_group_name, name, app_service_plan, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, app_service_plan, custom_headers).value! + def create_or_update(resource_group_name, name, app_service_plan, custom_headers:nil) + response = create_or_update_async(resource_group_name, name, app_service_plan, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -354,9 +357,9 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, name, app_service_plan, custom_headers = nil) + def create_or_update_async(resource_group_name, name, app_service_plan, custom_headers:nil) # Send request - promise = begin_create_or_update_async(resource_group_name, name, app_service_plan, custom_headers) + promise = begin_create_or_update_async(resource_group_name, name, app_service_plan, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -384,8 +387,8 @@ module Azure::Web::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def delete(resource_group_name, name, custom_headers = nil) - response = delete_async(resource_group_name, name, custom_headers).value! + def delete(resource_group_name, name, custom_headers:nil) + response = delete_async(resource_group_name, name, custom_headers:custom_headers).value! nil end @@ -402,8 +405,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, name, custom_headers = nil) - delete_async(resource_group_name, name, custom_headers).value! + def delete_with_http_info(resource_group_name, name, custom_headers:nil) + delete_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -419,7 +422,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, name, custom_headers = nil) + def delete_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -430,6 +433,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -477,8 +481,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_capabilities(resource_group_name, name, custom_headers = nil) - response = list_capabilities_async(resource_group_name, name, custom_headers).value! + def list_capabilities(resource_group_name, name, custom_headers:nil) + response = list_capabilities_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -495,8 +499,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_capabilities_with_http_info(resource_group_name, name, custom_headers = nil) - list_capabilities_async(resource_group_name, name, custom_headers).value! + def list_capabilities_with_http_info(resource_group_name, name, custom_headers:nil) + list_capabilities_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -512,7 +516,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_capabilities_async(resource_group_name, name, custom_headers = nil) + def list_capabilities_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -523,6 +527,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -598,8 +603,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [HybridConnection] operation results. # - def get_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - response = get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def get_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + response = get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -618,8 +623,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def get_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -637,7 +642,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) + def get_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -650,6 +655,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -708,8 +714,8 @@ module Azure::Web::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def delete_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - response = delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def delete_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + response = delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! nil end @@ -728,8 +734,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def delete_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -747,7 +753,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) + def delete_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -760,6 +766,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -809,8 +816,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [HybridConnectionKey] operation results. # - def list_hybrid_connection_keys(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - response = list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def list_hybrid_connection_keys(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + response = list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -829,8 +836,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_hybrid_connection_keys_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def list_hybrid_connection_keys_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -848,7 +855,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) + def list_hybrid_connection_keys_async(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -861,6 +868,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -920,8 +928,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_web_apps_by_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - first_page = list_web_apps_by_hybrid_connection_as_lazy(resource_group_name, name, namespace_name, relay_name, custom_headers) + def list_web_apps_by_hybrid_connection(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + first_page = list_web_apps_by_hybrid_connection_as_lazy(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers) first_page.get_all_items end @@ -940,8 +948,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_apps_by_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - list_web_apps_by_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def list_web_apps_by_hybrid_connection_with_http_info(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + list_web_apps_by_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! end # @@ -959,7 +967,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_apps_by_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) + def list_web_apps_by_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -972,6 +980,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1029,8 +1038,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [HybridConnectionLimits] operation results. # - def get_hybrid_connection_plan_limit(resource_group_name, name, custom_headers = nil) - response = get_hybrid_connection_plan_limit_async(resource_group_name, name, custom_headers).value! + def get_hybrid_connection_plan_limit(resource_group_name, name, custom_headers:nil) + response = get_hybrid_connection_plan_limit_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1047,8 +1056,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_hybrid_connection_plan_limit_with_http_info(resource_group_name, name, custom_headers = nil) - get_hybrid_connection_plan_limit_async(resource_group_name, name, custom_headers).value! + def get_hybrid_connection_plan_limit_with_http_info(resource_group_name, name, custom_headers:nil) + get_hybrid_connection_plan_limit_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1064,7 +1073,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_hybrid_connection_plan_limit_async(resource_group_name, name, custom_headers = nil) + def get_hybrid_connection_plan_limit_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1075,6 +1084,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1132,8 +1142,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_hybrid_connections(resource_group_name, name, custom_headers = nil) - first_page = list_hybrid_connections_as_lazy(resource_group_name, name, custom_headers) + def list_hybrid_connections(resource_group_name, name, custom_headers:nil) + first_page = list_hybrid_connections_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -1150,8 +1160,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_hybrid_connections_with_http_info(resource_group_name, name, custom_headers = nil) - list_hybrid_connections_async(resource_group_name, name, custom_headers).value! + def list_hybrid_connections_with_http_info(resource_group_name, name, custom_headers:nil) + list_hybrid_connections_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1167,7 +1177,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_hybrid_connections_async(resource_group_name, name, custom_headers = nil) + def list_hybrid_connections_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1178,6 +1188,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1237,8 +1248,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_metric_defintions(resource_group_name, name, custom_headers = nil) - first_page = list_metric_defintions_as_lazy(resource_group_name, name, custom_headers) + def list_metric_defintions(resource_group_name, name, custom_headers:nil) + first_page = list_metric_defintions_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end @@ -1257,8 +1268,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_defintions_with_http_info(resource_group_name, name, custom_headers = nil) - list_metric_defintions_async(resource_group_name, name, custom_headers).value! + def list_metric_defintions_with_http_info(resource_group_name, name, custom_headers:nil) + list_metric_defintions_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1276,7 +1287,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_defintions_async(resource_group_name, name, custom_headers = nil) + def list_metric_defintions_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1287,6 +1298,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1350,8 +1362,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_metrics(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) - first_page = list_metrics_as_lazy(resource_group_name, name, details, filter, custom_headers) + def list_metrics(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) + first_page = list_metrics_as_lazy(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers) first_page.get_all_items end @@ -1374,8 +1386,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_with_http_info(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) - list_metrics_async(resource_group_name, name, details, filter, custom_headers).value! + def list_metrics_with_http_info(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) + list_metrics_async(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers).value! end # @@ -1397,7 +1409,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_async(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) + def list_metrics_async(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1408,6 +1420,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1469,8 +1482,8 @@ module Azure::Web::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def restart_web_apps(resource_group_name, name, soft_restart = nil, custom_headers = nil) - response = restart_web_apps_async(resource_group_name, name, soft_restart, custom_headers).value! + def restart_web_apps(resource_group_name, name, soft_restart:nil, custom_headers:nil) + response = restart_web_apps_async(resource_group_name, name, soft_restart:soft_restart, custom_headers:custom_headers).value! nil end @@ -1491,8 +1504,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def restart_web_apps_with_http_info(resource_group_name, name, soft_restart = nil, custom_headers = nil) - restart_web_apps_async(resource_group_name, name, soft_restart, custom_headers).value! + def restart_web_apps_with_http_info(resource_group_name, name, soft_restart:nil, custom_headers:nil) + restart_web_apps_async(resource_group_name, name, soft_restart:soft_restart, custom_headers:custom_headers).value! end # @@ -1512,7 +1525,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def restart_web_apps_async(resource_group_name, name, soft_restart = nil, custom_headers = nil) + def restart_web_apps_async(resource_group_name, name, soft_restart:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1523,6 +1536,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1577,8 +1591,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_web_apps(resource_group_name, name, skip_token = nil, filter = nil, top = nil, custom_headers = nil) - first_page = list_web_apps_as_lazy(resource_group_name, name, skip_token, filter, top, custom_headers) + def list_web_apps(resource_group_name, name, skip_token:nil, filter:nil, top:nil, custom_headers:nil) + first_page = list_web_apps_as_lazy(resource_group_name, name, skip_token:skip_token, filter:filter, top:top, custom_headers:custom_headers) first_page.get_all_items end @@ -1602,8 +1616,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_apps_with_http_info(resource_group_name, name, skip_token = nil, filter = nil, top = nil, custom_headers = nil) - list_web_apps_async(resource_group_name, name, skip_token, filter, top, custom_headers).value! + def list_web_apps_with_http_info(resource_group_name, name, skip_token:nil, filter:nil, top:nil, custom_headers:nil) + list_web_apps_async(resource_group_name, name, skip_token:skip_token, filter:filter, top:top, custom_headers:custom_headers).value! end # @@ -1626,7 +1640,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_apps_async(resource_group_name, name, skip_token = nil, filter = nil, top = nil, custom_headers = nil) + def list_web_apps_async(resource_group_name, name, skip_token:nil, filter:nil, top:nil, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1637,6 +1651,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1695,8 +1710,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_vnets(resource_group_name, name, custom_headers = nil) - response = list_vnets_async(resource_group_name, name, custom_headers).value! + def list_vnets(resource_group_name, name, custom_headers:nil) + response = list_vnets_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1713,8 +1728,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_vnets_with_http_info(resource_group_name, name, custom_headers = nil) - list_vnets_async(resource_group_name, name, custom_headers).value! + def list_vnets_with_http_info(resource_group_name, name, custom_headers:nil) + list_vnets_async(resource_group_name, name, custom_headers:custom_headers).value! end # @@ -1730,7 +1745,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_vnets_async(resource_group_name, name, custom_headers = nil) + def list_vnets_async(resource_group_name, name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1741,6 +1756,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1815,8 +1831,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [VnetInfo] operation results. # - def get_vnet_from_server_farm(resource_group_name, name, vnet_name, custom_headers = nil) - response = get_vnet_from_server_farm_async(resource_group_name, name, vnet_name, custom_headers).value! + def get_vnet_from_server_farm(resource_group_name, name, vnet_name, custom_headers:nil) + response = get_vnet_from_server_farm_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1834,8 +1850,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_vnet_from_server_farm_with_http_info(resource_group_name, name, vnet_name, custom_headers = nil) - get_vnet_from_server_farm_async(resource_group_name, name, vnet_name, custom_headers).value! + def get_vnet_from_server_farm_with_http_info(resource_group_name, name, vnet_name, custom_headers:nil) + get_vnet_from_server_farm_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! end # @@ -1852,7 +1868,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_vnet_from_server_farm_async(resource_group_name, name, vnet_name, custom_headers = nil) + def get_vnet_from_server_farm_async(resource_group_name, name, vnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1864,6 +1880,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1924,8 +1941,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [VnetGateway] operation results. # - def get_vnet_gateway(resource_group_name, name, vnet_name, gateway_name, custom_headers = nil) - response = get_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers).value! + def get_vnet_gateway(resource_group_name, name, vnet_name, gateway_name, custom_headers:nil) + response = get_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -1945,8 +1962,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_vnet_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, custom_headers = nil) - get_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers).value! + def get_vnet_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, custom_headers:nil) + get_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers:custom_headers).value! end # @@ -1965,7 +1982,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers = nil) + def get_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -1978,6 +1995,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2039,8 +2057,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [VnetGateway] operation results. # - def update_vnet_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil) - response = update_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers).value! + def update_vnet_gateway(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) + response = update_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2061,8 +2079,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_vnet_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil) - update_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers).value! + def update_vnet_gateway_with_http_info(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) + update_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:custom_headers).value! end # @@ -2082,7 +2100,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers = nil) + def update_vnet_gateway_async(resource_group_name, name, vnet_name, gateway_name, connection_envelope, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2096,7 +2114,6 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2165,8 +2182,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def list_routes_for_vnet(resource_group_name, name, vnet_name, custom_headers = nil) - response = list_routes_for_vnet_async(resource_group_name, name, vnet_name, custom_headers).value! + def list_routes_for_vnet(resource_group_name, name, vnet_name, custom_headers:nil) + response = list_routes_for_vnet_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2186,8 +2203,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_routes_for_vnet_with_http_info(resource_group_name, name, vnet_name, custom_headers = nil) - list_routes_for_vnet_async(resource_group_name, name, vnet_name, custom_headers).value! + def list_routes_for_vnet_with_http_info(resource_group_name, name, vnet_name, custom_headers:nil) + list_routes_for_vnet_async(resource_group_name, name, vnet_name, custom_headers:custom_headers).value! end # @@ -2206,7 +2223,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_routes_for_vnet_async(resource_group_name, name, vnet_name, custom_headers = nil) + def list_routes_for_vnet_async(resource_group_name, name, vnet_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2218,6 +2235,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2293,8 +2311,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Array] operation results. # - def get_route_for_vnet(resource_group_name, name, vnet_name, route_name, custom_headers = nil) - response = get_route_for_vnet_async(resource_group_name, name, vnet_name, route_name, custom_headers).value! + def get_route_for_vnet(resource_group_name, name, vnet_name, route_name, custom_headers:nil) + response = get_route_for_vnet_async(resource_group_name, name, vnet_name, route_name, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2313,8 +2331,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_route_for_vnet_with_http_info(resource_group_name, name, vnet_name, route_name, custom_headers = nil) - get_route_for_vnet_async(resource_group_name, name, vnet_name, route_name, custom_headers).value! + def get_route_for_vnet_with_http_info(resource_group_name, name, vnet_name, route_name, custom_headers:nil) + get_route_for_vnet_async(resource_group_name, name, vnet_name, route_name, custom_headers:custom_headers).value! end # @@ -2332,7 +2350,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_route_for_vnet_async(resource_group_name, name, vnet_name, route_name, custom_headers = nil) + def get_route_for_vnet_async(resource_group_name, name, vnet_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2345,6 +2363,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2421,8 +2440,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [VnetRoute] operation results. # - def create_or_update_vnet_route(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil) - response = create_or_update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers).value! + def create_or_update_vnet_route(resource_group_name, name, vnet_name, route_name, route, custom_headers:nil) + response = create_or_update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2442,8 +2461,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_vnet_route_with_http_info(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil) - create_or_update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers).value! + def create_or_update_vnet_route_with_http_info(resource_group_name, name, vnet_name, route_name, route, custom_headers:nil) + create_or_update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers:custom_headers).value! end # @@ -2462,7 +2481,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil) + def create_or_update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2476,7 +2495,6 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2543,8 +2561,8 @@ module Azure::Web::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def delete_vnet_route(resource_group_name, name, vnet_name, route_name, custom_headers = nil) - response = delete_vnet_route_async(resource_group_name, name, vnet_name, route_name, custom_headers).value! + def delete_vnet_route(resource_group_name, name, vnet_name, route_name, custom_headers:nil) + response = delete_vnet_route_async(resource_group_name, name, vnet_name, route_name, custom_headers:custom_headers).value! nil end @@ -2563,8 +2581,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_vnet_route_with_http_info(resource_group_name, name, vnet_name, route_name, custom_headers = nil) - delete_vnet_route_async(resource_group_name, name, vnet_name, route_name, custom_headers).value! + def delete_vnet_route_with_http_info(resource_group_name, name, vnet_name, route_name, custom_headers:nil) + delete_vnet_route_async(resource_group_name, name, vnet_name, route_name, custom_headers:custom_headers).value! end # @@ -2582,7 +2600,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_vnet_route_async(resource_group_name, name, vnet_name, route_name, custom_headers = nil) + def delete_vnet_route_async(resource_group_name, name, vnet_name, route_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2595,6 +2613,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2645,8 +2664,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [VnetRoute] operation results. # - def update_vnet_route(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil) - response = update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers).value! + def update_vnet_route(resource_group_name, name, vnet_name, route_name, route, custom_headers:nil) + response = update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2666,8 +2685,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_vnet_route_with_http_info(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil) - update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers).value! + def update_vnet_route_with_http_info(resource_group_name, name, vnet_name, route_name, route, custom_headers:nil) + update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers:custom_headers).value! end # @@ -2686,7 +2705,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers = nil) + def update_vnet_route_async(resource_group_name, name, vnet_name, route_name, route, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2700,7 +2719,6 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2767,8 +2785,8 @@ module Azure::Web::Mgmt::V2016_09_01 # will be added to the HTTP request. # # - def reboot_worker(resource_group_name, name, worker_name, custom_headers = nil) - response = reboot_worker_async(resource_group_name, name, worker_name, custom_headers).value! + def reboot_worker(resource_group_name, name, worker_name, custom_headers:nil) + response = reboot_worker_async(resource_group_name, name, worker_name, custom_headers:custom_headers).value! nil end @@ -2787,8 +2805,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def reboot_worker_with_http_info(resource_group_name, name, worker_name, custom_headers = nil) - reboot_worker_async(resource_group_name, name, worker_name, custom_headers).value! + def reboot_worker_with_http_info(resource_group_name, name, worker_name, custom_headers:nil) + reboot_worker_async(resource_group_name, name, worker_name, custom_headers:custom_headers).value! end # @@ -2806,7 +2824,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def reboot_worker_async(resource_group_name, name, worker_name, custom_headers = nil) + def reboot_worker_async(resource_group_name, name, worker_name, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2818,6 +2836,7 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -2866,8 +2885,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AppServicePlan] operation results. # - def begin_create_or_update(resource_group_name, name, app_service_plan, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, name, app_service_plan, custom_headers).value! + def begin_create_or_update(resource_group_name, name, app_service_plan, custom_headers:nil) + response = begin_create_or_update_async(resource_group_name, name, app_service_plan, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -2885,8 +2904,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, name, app_service_plan, custom_headers = nil) - begin_create_or_update_async(resource_group_name, name, app_service_plan, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, name, app_service_plan, custom_headers:nil) + begin_create_or_update_async(resource_group_name, name, app_service_plan, custom_headers:custom_headers).value! end # @@ -2903,7 +2922,7 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, name, app_service_plan, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, name, app_service_plan, custom_headers:nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 @@ -2915,7 +2934,6 @@ module Azure::Web::Mgmt::V2016_09_01 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers @@ -2990,8 +3008,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AppServicePlanCollection] operation results. # - def list_next(next_page_link, custom_headers = nil) - response = list_next_async(next_page_link, custom_headers).value! + def list_next(next_page_link, custom_headers:nil) + response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3007,8 +3025,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers = nil) - list_next_async(next_page_link, custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers:nil) + list_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -3023,11 +3041,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers = nil) + def list_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3083,8 +3102,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [AppServicePlanCollection] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers = nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers:nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3100,8 +3119,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) - list_by_resource_group_next_async(next_page_link, custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -3116,11 +3135,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers = nil) + def list_by_resource_group_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3176,8 +3196,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceCollection] operation results. # - def list_web_apps_by_hybrid_connection_next(next_page_link, custom_headers = nil) - response = list_web_apps_by_hybrid_connection_next_async(next_page_link, custom_headers).value! + def list_web_apps_by_hybrid_connection_next(next_page_link, custom_headers:nil) + response = list_web_apps_by_hybrid_connection_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3193,8 +3213,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_apps_by_hybrid_connection_next_with_http_info(next_page_link, custom_headers = nil) - list_web_apps_by_hybrid_connection_next_async(next_page_link, custom_headers).value! + def list_web_apps_by_hybrid_connection_next_with_http_info(next_page_link, custom_headers:nil) + list_web_apps_by_hybrid_connection_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -3209,11 +3229,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_apps_by_hybrid_connection_next_async(next_page_link, custom_headers = nil) + def list_web_apps_by_hybrid_connection_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3269,8 +3290,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [HybridConnectionCollection] operation results. # - def list_hybrid_connections_next(next_page_link, custom_headers = nil) - response = list_hybrid_connections_next_async(next_page_link, custom_headers).value! + def list_hybrid_connections_next(next_page_link, custom_headers:nil) + response = list_hybrid_connections_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3286,8 +3307,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_hybrid_connections_next_with_http_info(next_page_link, custom_headers = nil) - list_hybrid_connections_next_async(next_page_link, custom_headers).value! + def list_hybrid_connections_next_with_http_info(next_page_link, custom_headers:nil) + list_hybrid_connections_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -3302,11 +3323,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_hybrid_connections_next_async(next_page_link, custom_headers = nil) + def list_hybrid_connections_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3364,8 +3386,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceMetricDefinitionCollection] operation results. # - def list_metric_defintions_next(next_page_link, custom_headers = nil) - response = list_metric_defintions_next_async(next_page_link, custom_headers).value! + def list_metric_defintions_next(next_page_link, custom_headers:nil) + response = list_metric_defintions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3383,8 +3405,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metric_defintions_next_with_http_info(next_page_link, custom_headers = nil) - list_metric_defintions_next_async(next_page_link, custom_headers).value! + def list_metric_defintions_next_with_http_info(next_page_link, custom_headers:nil) + list_metric_defintions_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -3401,11 +3423,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metric_defintions_next_async(next_page_link, custom_headers = nil) + def list_metric_defintions_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3461,8 +3484,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [ResourceMetricCollection] operation results. # - def list_metrics_next(next_page_link, custom_headers = nil) - response = list_metrics_next_async(next_page_link, custom_headers).value! + def list_metrics_next(next_page_link, custom_headers:nil) + response = list_metrics_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3478,8 +3501,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_metrics_next_with_http_info(next_page_link, custom_headers = nil) - list_metrics_next_async(next_page_link, custom_headers).value! + def list_metrics_next_with_http_info(next_page_link, custom_headers:nil) + list_metrics_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -3494,11 +3517,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_metrics_next_async(next_page_link, custom_headers = nil) + def list_metrics_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3554,8 +3578,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [WebAppCollection] operation results. # - def list_web_apps_next(next_page_link, custom_headers = nil) - response = list_web_apps_next_async(next_page_link, custom_headers).value! + def list_web_apps_next(next_page_link, custom_headers:nil) + response = list_web_apps_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end @@ -3571,8 +3595,8 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_web_apps_next_with_http_info(next_page_link, custom_headers = nil) - list_web_apps_next_async(next_page_link, custom_headers).value! + def list_web_apps_next_with_http_info(next_page_link, custom_headers:nil) + list_web_apps_next_async(next_page_link, custom_headers:custom_headers).value! end # @@ -3587,11 +3611,12 @@ module Azure::Web::Mgmt::V2016_09_01 # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_web_apps_next_async(next_page_link, custom_headers = nil) + def list_web_apps_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} + request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -3650,12 +3675,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [AppServicePlanCollection] which provide lazy access to pages of the # response. # - def list_as_lazy(detailed = nil, custom_headers = nil) - response = list_async(detailed, custom_headers).value! + def list_as_lazy(detailed:nil, custom_headers:nil) + response = list_async(detailed:detailed, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers) + list_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3674,12 +3699,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [AppServicePlanCollection] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) + response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3701,12 +3726,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceCollection] which provide lazy access to pages of the # response. # - def list_web_apps_by_hybrid_connection_as_lazy(resource_group_name, name, namespace_name, relay_name, custom_headers = nil) - response = list_web_apps_by_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers).value! + def list_web_apps_by_hybrid_connection_as_lazy(resource_group_name, name, namespace_name, relay_name, custom_headers:nil) + response = list_web_apps_by_hybrid_connection_async(resource_group_name, name, namespace_name, relay_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_web_apps_by_hybrid_connection_next_async(next_page_link, custom_headers) + list_web_apps_by_hybrid_connection_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3726,12 +3751,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [HybridConnectionCollection] which provide lazy access to pages of # the response. # - def list_hybrid_connections_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_hybrid_connections_async(resource_group_name, name, custom_headers).value! + def list_hybrid_connections_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_hybrid_connections_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_hybrid_connections_next_async(next_page_link, custom_headers) + list_hybrid_connections_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3753,12 +3778,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceMetricDefinitionCollection] which provide lazy access to # pages of the response. # - def list_metric_defintions_as_lazy(resource_group_name, name, custom_headers = nil) - response = list_metric_defintions_async(resource_group_name, name, custom_headers).value! + def list_metric_defintions_as_lazy(resource_group_name, name, custom_headers:nil) + response = list_metric_defintions_async(resource_group_name, name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_metric_defintions_next_async(next_page_link, custom_headers) + list_metric_defintions_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3784,12 +3809,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [ResourceMetricCollection] which provide lazy access to pages of the # response. # - def list_metrics_as_lazy(resource_group_name, name, details = nil, filter = nil, custom_headers = nil) - response = list_metrics_async(resource_group_name, name, details, filter, custom_headers).value! + def list_metrics_as_lazy(resource_group_name, name, details:nil, filter:nil, custom_headers:nil) + response = list_metrics_async(resource_group_name, name, details:details, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_metrics_next_async(next_page_link, custom_headers) + list_metrics_next_async(next_page_link, custom_headers:custom_headers) end page end @@ -3816,12 +3841,12 @@ module Azure::Web::Mgmt::V2016_09_01 # @return [WebAppCollection] which provide lazy access to pages of the # response. # - def list_web_apps_as_lazy(resource_group_name, name, skip_token = nil, filter = nil, top = nil, custom_headers = nil) - response = list_web_apps_async(resource_group_name, name, skip_token, filter, top, custom_headers).value! + def list_web_apps_as_lazy(resource_group_name, name, skip_token:nil, filter:nil, top:nil, custom_headers:nil) + response = list_web_apps_async(resource_group_name, name, skip_token:skip_token, filter:filter, top:top, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_web_apps_next_async(next_page_link, custom_headers) + list_web_apps_next_async(next_page_link, custom_headers:custom_headers) end page end diff --git a/management/azure_mgmt_web/lib/profiles/latest/modules/web_profile_module.rb b/management/azure_mgmt_web/lib/profiles/latest/modules/web_profile_module.rb index 3981559f3..0e97ddf72 100644 --- a/management/azure_mgmt_web/lib/profiles/latest/modules/web_profile_module.rb +++ b/management/azure_mgmt_web/lib/profiles/latest/modules/web_profile_module.rb @@ -311,45 +311,45 @@ module Azure::Web::Profiles::Latest @base_url = options[:base_url].nil? ? nil:options[:base_url] @options = options[:options].nil? ? nil:options[:options] - client_0 = Azure::Web::Mgmt::V2015_04_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) - if(client_0.respond_to?(:subscription_id)) - client_0.subscription_id = configurable.subscription_id + @client_0 = Azure::Web::Mgmt::V2015_04_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) + if(@client_0.respond_to?(:subscription_id)) + @client_0.subscription_id = configurable.subscription_id end - add_telemetry(client_0) - @domains = client_0.domains - @top_level_domains = client_0.top_level_domains + add_telemetry(@client_0) + @domains = @client_0.domains + @top_level_domains = @client_0.top_level_domains - client_1 = Azure::Web::Mgmt::V2015_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) - if(client_1.respond_to?(:subscription_id)) - client_1.subscription_id = configurable.subscription_id + @client_1 = Azure::Web::Mgmt::V2015_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) + if(@client_1.respond_to?(:subscription_id)) + @client_1.subscription_id = configurable.subscription_id end - add_telemetry(client_1) - @app_service_certificate_orders = client_1.app_service_certificate_orders + add_telemetry(@client_1) + @app_service_certificate_orders = @client_1.app_service_certificate_orders - client_2 = Azure::Web::Mgmt::V2016_03_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) - if(client_2.respond_to?(:subscription_id)) - client_2.subscription_id = configurable.subscription_id + @client_2 = Azure::Web::Mgmt::V2016_03_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) + if(@client_2.respond_to?(:subscription_id)) + @client_2.subscription_id = configurable.subscription_id end - add_telemetry(client_2) - @certificates = client_2.certificates - @deleted_web_apps = client_2.deleted_web_apps - @provider = client_2.provider - @recommendations = client_2.recommendations + add_telemetry(@client_2) + @certificates = @client_2.certificates + @deleted_web_apps = @client_2.deleted_web_apps + @provider = @client_2.provider + @recommendations = @client_2.recommendations - client_3 = Azure::Web::Mgmt::V2016_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) - if(client_3.respond_to?(:subscription_id)) - client_3.subscription_id = configurable.subscription_id + @client_3 = Azure::Web::Mgmt::V2016_08_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) + if(@client_3.respond_to?(:subscription_id)) + @client_3.subscription_id = configurable.subscription_id end - add_telemetry(client_3) - @web_apps = client_3.web_apps + add_telemetry(@client_3) + @web_apps = @client_3.web_apps - client_4 = Azure::Web::Mgmt::V2016_09_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) - if(client_4.respond_to?(:subscription_id)) - client_4.subscription_id = configurable.subscription_id + @client_4 = Azure::Web::Mgmt::V2016_09_01::WebSiteManagementClient.new(configurable.credentials, base_url, options) + if(@client_4.respond_to?(:subscription_id)) + @client_4.subscription_id = configurable.subscription_id end - add_telemetry(client_4) - @app_service_environments = client_4.app_service_environments - @app_service_plans = client_4.app_service_plans + add_telemetry(@client_4) + @app_service_environments = @client_4.app_service_environments + @app_service_plans = @client_4.app_service_plans @model_classes = ModelClasses.new end @@ -359,6 +359,22 @@ module Azure::Web::Profiles::Latest client.add_user_agent_information(profile_information) end + def method_missing(method, *args) + if @client_4.respond_to?method + @client_4.send(method, *args) + elsif @client_3.respond_to?method + @client_3.send(method, *args) + elsif @client_2.respond_to?method + @client_2.send(method, *args) + elsif @client_1.respond_to?method + @client_1.send(method, *args) + elsif @client_0.respond_to?method + @client_0.send(method, *args) + else + super + end + end + end class ModelClasses